So i have a simple leaderboard and leaderboard save script -> https://pastebin.com/F1uH28eh
And what im trying to do is make it so you click a GUI button and it adds +1 to the leaderboard. When I add a local script the button vvvv
local plr = game.Players.LocalPlayer
local debounce = false
script.Parent.Activated:Connect(function()
if debounce == false then
debounce = true
plr.leaderstats.Money.Value +=1
debounce = false
end
end)
It works but doesn't save the money on rejoin because its a local script. I tried many time with normal scripts and different codes but I cant get it to work. Any help is very appreciated !
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
** You are now Level 1! **
