So, I have a local script in a button for a verify command for this anti-exploit group I work for, yet the verify command is not working, I have it set on a else after the function to print it is having a error, here'es the lines.
local LP = game.Players.LocalPlayer toggled = false script.Parent.MouseButton1Click:connect(function(Verification) wait(1) if toggled == false then toggled = true local Billboard=Instance.new("BillboardGui") Billboard.Parent=game.Workspace:FindFirstChild(LP).head Billboard.Adornee=game.Workspace:FindFirstChild(LP).head Billboard.Size=UDim2.new(3,0,2,0) Billboard.StudsOffset=Vector3.new(0,2,0) local ImageLabel=Instance.new("ImageLabel") ImageLabel.Image = "rbxassetid://579224135" ImageLabel.Size=UDim2.new(.6,0,0.9,0) ImageLabel.Position=UDim2.new(0,25,-.25,0) ImageLabel.BackgroundTransparency = .5 ImageLabel.Parent=Billboard wait(.05) print("Verified") else print("Error to verify, please contact High Command or a Developer ERROR: 113") return end --DO NOT STEALPLEASE end)
I have checked through your script and found two problems
local LP = game.Players.LocalPlayer toggled = false script.Parent.MouseButton1Click:connect(function(Verification) wait(1) if toggled == false then toggled = true local Billboard=Instance.new("BillboardGui") Billboard.Parent=LP.Character:FindFirstChild("Head")--U need to find the first child of local player's character named 'head' Not find the player inside of workspace Billboard.Adornee=LP.Character:FindFirstChild("Head") Billboard.Size=UDim2.new(3,0,2,0) Billboard.StudsOffset=Vector3.new(0,2,0) local ImageLabel=Instance.new("ImageLabel") ImageLabel.Image = "rbxassetid://579224134"--U forgot to subtract 1! ImageLabel.Size=UDim2.new(.6,0,0.9,0) ImageLabel.Position=UDim2.new(0,25,-.25,0) ImageLabel.BackgroundTransparency = .5 ImageLabel.Parent=Billboard wait(.05) print("Verified") else print("Error to verify, please contact High Command or a Developer ERROR: 113") return end --DO NOT STEALPLEASE end)