I tried to make a stat giver but when i click the GUI It doesn't give me the stat! here is what i scripted that wont work for some reason
local Remote = game.ReplicatedStorage:WaitForChild("giveCash")
Remote.OnServerEvent:Connect(function(stat)
game.Players.LocalPlayer.leaderstats.Money= game.Players.LocalPlayer.leaderstats.Money+stat
print("works")
end)
But it doesnt add a stat for me! If you know how to fix this please let me know!

2 comments
This answer is not quite accurate. It's a good answer, but it's only local, and won't save.
Thanks!