Can someone please help me fix this, I've tried many things but it's not working;
local p = game:GetService("PlayerPointService") local player = script.Parent.Parent local bankBalance = player.Bank.Value
if bankBalance == 1 then p:AwardPoints(player.userId,45) print("point awarded") while true do wait() bankBalance = 0
if bankBalance == 5 then p:AwardPoints(player.userId,125) print("points awarded") while true do wait() bankBalance = 0
if bankBalance == 10 then p:AwardPoints(player.userId,500) print("points awarded") while true do wait() bankBalance = 0
end end end end end end

1 comment
a) What does "not working mean". b) What have you tried c) Use code formatting (the Lua button). Edit your post to address all of these as soon as possible.