This script is supposed to give you a ForceField when you click the text button when you have over 1000 points. I have 100,000 points but I don't get a ForceField, I don't lose any points either.
chr = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:wait() script.Parent.MouseButton1Down:connect(function() print 'clicked' if game.Players.LocalPlayer.Points.Value > 999 then print 'Points are enough' local points = game.Players.LocalPlayer:WaitForChild("Points") local rl = chr:WaitForChild("RocksLeft") print 'loaded everything' if rl.Value < 15 then print 'cloned' points.Value = points.Value - 1000 script.Parent.Parent.Balance.Text = "Points: "..game.Players.LocalPlayer.Points.Value local f = Instance.new("ForceField",game.Players.LocalPlayer.Character) rl.Value = 15 end end end)
No errors or anything in the output either.
EDIT I've tested it a few times and it won't print 'loaded everything'
I don't know how to fix this so please help.