A Gui for a testing place
Key RequiredUniversal

A Gui for a testing place

Universal ScriptVensixVensix 2.8K views 48 executesUpdated Apr 26, 2025
Unrated
00
Lua Script•318 lines (7922 chars)
--[[
Warning: This Script only works in this game: 
https://www.roblox.com/games/8848688858/AI-Test

--]]

-- Join our discord: https://discord.gg/yytmQfPr




local InsertService = game:GetService("InsertService")
local Ws = game:GetService("Workspace")
local NPC_folder = Ws:FindFirstChild("NPCs")
local Player = game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
local T = Ws:WaitForChild("TouchTestParts")
local Char = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait()
local W_1 = T:FindFirstChild("WantedParts")['1']
local W_5 = T:FindFirstChild("WantedParts")['5']

local Hum = Char:WaitForChild("Humanoid") --// Mostly for getting the local-players health :p
local Vest = T:WaitForChild("Vest")

local PlayerPos = Player.Position

local Drops = Ws.Drops
local connect;
local function W1()
	if not Char or not Player then return end
	local success, err = pcall(function()
		firetouchinterest(Player, W_1, 1)
		wait(0.1)
		firetouchinterest(Player, W_1, 0)
	end)
	if not success then
		warn("Error touching wanted part: " .. err)
	end
end
local function W5()
	if not Char or not Player then return end
	local success, err = pcall(function()
		firetouchinterest(Player, W_5, 1)
		wait(0.1)
		firetouchinterest(Player, W_5, 0)
	end)
	if not success then
		warn("Error touching wanted part: " .. err)
	end
end
local function touch()
	if not Char or not Player or not Vest then return end --// Checks (Ts was so damn stressful to write + errors )
	if not Char:IsDescendantOf(workspace) or not Player:IsDescendantOf(workspace) then return end
	if Player and Char then
		local success, err = pcall(function()
			firetouchinterest(Player, Vest, 1)
			wait(0.1)
			firetouchinterest(Player, Vest, 0)
		end)
		if not success then
			warn("Error touching vest: " .. err)
		end
	end
end
local function ResizeNPCHead(N, Input, ISize)
	if not N then return end
	if N:IsA("Model") then
		local head = N:FindFirstChild("Head") or N:WaitForChild("Head", 5)
		if head and head:IsA("MeshPart") then
			local ISize = Vector3.new(Input, Input, Input) --// 
			head.Size = ISize
			head.Transparency = 0.5
			head.CanCollide = false
		end
	end
end
local ReGui = loadstring(game:HttpGet('https://raw.githubusercontent.com/depthso/Dear-ReGui/refs/heads/main/ReGui.lua'))()
local PrefabsId = "rbxassetid://" .. ReGui.PrefabsId
ReGui:Init({
	Prefabs = InsertService:LoadLocalAsset(PrefabsId)
})
local Window = ReGui:TabsWindow({
	Title = "LOL",
	Size = UDim2.fromOffset(300, 200)
})
local Tab = Window:CreateTab({Name = "NPC Misc"})
Tab:Label({
	Text = 'Input number to resize NPC head'
})
local txtin = Tab:InputText({
	Label = "Input Number",
	Value = "Example: 10",
})
local b = Tab:Button({
	Text = "Execute",
	Callback = function(self)
		local Input = tonumber(txtin.Value)
		if not Input then
			txtin.Value = "Invalid input enter a number!"
			return warn("Invalid input!")
		end
		local ISize = Vector3.new(Input, Input, Input) 
		for _, N in pairs(NPC_folder:GetChildren()) do
			if N:IsDescendantOf(Ws) then
				local head = N:FindFirstChild("Head") or N:WaitForChild("Head", 5)

				head:GetPropertyChangedSignal("Size"):Connect(function()
					if head.Size ~= ISize then
						ResizeNPCHead(N, Input)
					end
				end)


				if head then
					repeat
						ResizeNPCHead(N, Input)
						task.wait(0.1)
					until head.Size == ISize
				end
			end
		end
		NPC_folder.ChildAdded:Connect(function(N)
			if N:IsDescendantOf(Ws) then
				print(N.Name)
				local head = N:FindFirstChild("Head") or N:WaitForChild("Head", 5)
				if head then
					print(head)
					ResizeNPCHead(N, Input)
					if head.Size ~= ISize  then
						print("Size validiaetd")
						ResizeNPCHead(N, Input)
					end
				end
			end
		end)
	end

})



local Tab2 = Window:CreateTab({Name = "Player Misc"}) 

local b2 =Tab2:Button({
	Text = "Inf Vest Off",
	Callback = function(self)
		function checkHealth()
			local success, err = pcall(function()
				if Hum.Health <= 5 then  
					connect:Disconnect()
					print("Disconnected" .. Player.Name .. Hum.Health)
					--// dis
					connect = nil
				end
			end)
			if not success then
				warn("Err Disconnecting: " .. err)
			end
		end
	end
})

local b3 =Tab2:Button({
	Text = "Inf Vest On",
	Callback = function(self)
		if connect then
			return("Already connected!")
		else
			connect = game:GetService('RunService').RenderStepped:Connect(touch)
		end
	end
})
local b5 = Tab2:Button({
	Text = "Reset Wanted Level to 1(Soon)",
	Callback = function(self)
		W1()
	end
})
local b6 = Tab2:Button({
	Text = "Set Wanted Level to 5(Soon)",
	Callback = function(self)
		W5()	
	end
})
Tab2:Error({
	Text = "Their are some bugs in these scripts most likely due to the firetouchinterest function Reading. Any solutions are welcome!"
})
Tab2:Separator({Text="Teleportation"})
Tab2:Separator()
local b4 =Tab2:Button({
	Text = "Grab AR",
	Callback = function(self) 
		for _, D in pairs(Drops:GetChildren()) do
			if D:IsA("Model") and not D:FindFirstChild('Fake_9mmx19') then
				Char:MoveTo(D:FindFirstChild("MainPart").Position)
				task.wait(0.5)
				Char:MoveTo(PlayerPos)
			else
				return warn("No AR found!")
			end
		end
	end
})
Tab2:Error({
	Text = "Kinda works but not really still working on it tho (lazy work on it)"
})
Tab2:Button({
	Text = "Grab Vest",
	Callback = function(self)
		if not Char:IsDescendantOf(Ws) then return end
		if not Player then return end
		if not Vest then return end
		local success, err = pcall(function()
			Char:SetPrimaryPartCFrame(Vest.CFrame)
			task.wait(0.5)
			Char:MoveTo(PlayerPos)
		end)
		if not success then
			warn("Error moving to vest: " .. err)
		end
	end
})

local Window2 = ReGui:TabsWindow({
	Title = "Developer Logs",
	Size = UDim2.fromOffset(300, 200)
})

local Tab_2 = Window2:CreateTab({Name = "Scripts"})


Tab_2:Button({
	Text = "Inf Yield",
	Callback = function(self)
		loadstring(game:HttpGet(('https://raw.githubusercontent.com/EdgeIY/infiniteyield/master/source'),true))()
	end
})



local Tab_1= Window2:CreateTab({Name='NPCs Info/Data'})

Tab_1:Separator({Text="NPCs Info"}) 
Tab_1:Separator()


for _, v in pairs(NPC_folder:GetChildren()) do
	if v:IsA("Model") and v:IsDescendantOf(Ws) then
		task.spawn(function() 
			local TreeNode
			local button
			local success, err = pcall(function()
				local TreeNode = Tab_1:TreeNode()
				local head = v:FindFirstChild("Head")
				TreeNode:Label({Text = v.Name})
				TreeNode:Label({
					Text = head and ("Head Size: " .. tostring(head.Size)) or "Head not found"
				})


				Button = TreeNode:SmallButton({
					Text = "Teleport",
					Callback = function(self)
						if not v:IsDescendantOf(Ws) then return end
						Char:SetPrimaryPartCFrame(head.CFrame)
					end
				})
				local function updateTree()
                    if not v:IsDescendantOf(Ws) then return end
                    
					local head = v:FindFirstChild("Head") or v:WaitForChild("Head", 5)
					if head and TreeNode and Hitbox then
						TreeNode:Label({Text = v.Name})
						TreeNode:Label({Text = "Head Size: " .. tostring(head.Size)})

						local button =TreeNode:SmallButton({
							Text = "Teleport",
							Callback = function(self)
								if not v:IsDescendantOf(Ws) then return end
								Char:SetPrimaryPartCFrame(head.CFrame)
							end
						})
					end
				end

				v.ChildAdded:Connect(updateTree)

				v.ChildRemoved:Connect(function()
					if TreeNode and head then
						TreeNode:Remove()
						button = nil
					end
				end)
			end)
			if not success then
				warn("Error TreeNode for NPC: ", err)
			end
		end)
	end
end




local ModalWindow = Window:PopupModal({
	Title = "Thanks for using my script!"
}) --> Canvas
ModalWindow:Label({
	Text = "This Script is still being in development(Made by: Kizari08)",
	TextWrapped = true
})
ModalWindow:Button({
	Text = "Cancel",
	Callback = function()
		ModalWindow:ClosePopup()
	end,
})
wait(3)
ModalWindow:ClosePopup()

Features & Information

Works for this game only: https://www.roblox.com/games/8848688858/AI-Test some of the stuff in the script doesn't working properly any suggestion in the comments
#Script Hub#Free

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts