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

Why won't my script work? When i click it deletes all buttons. (Solved)

Asked by 4 years ago
Edited 4 years ago
Player = game.Players.LocalPlayer

mouse = Player:GetMouse()


mouse.Button1Down:connect(function()
    if Player.bin.AttributePoints.Value >= 1 then
        Player.bin.Agility.Value = Player.bin.Agility.Value + 1
        Player.bin.AttributePoints.Value = Player.bin.AttributePoints.Value - 1
    end
end)
0
Line 09 has - 1 at the end. XxmanwolfxXalt -2 — 4y
0
Found out the reason is because of on line 07.. I used ">=" instead of "<=" XxmanwolfxXalt -2 — 4y

Answer this question