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 7 years ago
Edited 7 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.


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)

1 answer

Log in to vote
0
Answered by 7 years ago

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)
0
Please edit your answer to let the asker know what you did change! Filipalla 504 — 7y
0
Thanks!! MrRichGuy0210 17 — 7y
0
Im preatty sure I did in the code section DrPredablox 153 — 7y
Ad

Answer this question