You are not saying who the actual player is add local player = game.Players.LocalPlayer and u can also do local leaderstats = player:WaitForChild("leaderstats") so do if player.leaderstats.Cool_Points.Value >= price then (rest of the code) I would also adapt the code after this so that it is like player.leaderstats.Cool_Points.Value (continued)