Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why is this Anti-Exploit verify button not working?

Asked by 8 years ago
Edited 8 years ago

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.

01local LP = game.Players.LocalPlayer
02toggled = false
03 
04 script.Parent.MouseButton1Click:connect(function(Verification)
05    wait(1)
06    if toggled == false then
07        toggled = true
08        local   Billboard=Instance.new("BillboardGui")
09            Billboard.Parent=game.Workspace:FindFirstChild(LP).head
10            Billboard.Adornee=game.Workspace:FindFirstChild(LP).head
11            Billboard.Size=UDim2.new(3,0,2,0)
12            Billboard.StudsOffset=Vector3.new(0,2,0)
13 
14            local ImageLabel=Instance.new("ImageLabel")
15            ImageLabel.Image = "rbxassetid://579224135"
View all 28 lines...

1 answer

Log in to vote
0
Answered by 8 years ago

I have checked through your script and found two problems

01local LP = game.Players.LocalPlayer
02toggled = false
03 
04 script.Parent.MouseButton1Click:connect(function(Verification)
05    wait(1)
06    if toggled == false then
07        toggled = true
08        local   Billboard=Instance.new("BillboardGui")
09            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
10            Billboard.Adornee=LP.Character:FindFirstChild("Head")
11            Billboard.Size=UDim2.new(3,0,2,0)
12            Billboard.StudsOffset=Vector3.new(0,2,0)
13 
14            local ImageLabel=Instance.new("ImageLabel")
15            ImageLabel.Image = "rbxassetid://579224134"--U forgot to subtract 1!
View all 28 lines...
0
Please edit your answer to let the asker know what you did change! Filipalla 504 — 8y
0
Thanks!! MrRichGuy0210 17 — 8y
0
Im preatty sure I did in the code section DrPredablox 153 — 8y
Ad

Answer this question