Alright so. I'm unable to figure out how to make this
game.Workspace.Localplayer.Humanoid.Health = 10
but with a serversided script and changing the Localplayer variable to something that works serversided.
For example
if game.Players.Localplayer.leaderstats.Power.Value == 35 then
game.Workspace.Localplayer.Humanoid.Health = 10
-- Just for testing print(Localplayer.Name + " has 35 in power" + game.Workspace.playername.Humanoid.Health == 10)
end

3 comments
I edited the first post and you can see what i wanted todo.
This updated version will check every time the leaderstat changes if that’s what you want.
Thanks that exactly what i wanted :P