Hi. I tried to make a "reset obby" gui that had inside a local script that contained this script:
local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:connect(function()
player.leaderstats.Stage.Value = 1
end)
I also tried to use a normal script but it didnt work at all. the script did work with localscript and the leaderboard showed 1 when i clicked on it but when i tried to respawn i was still on stage 2 it didnt teleport me to stage 1. How can i fix this? thank you :D

1 comment
That's because LocalPlayer is only a property that localscripts can use.