local player = game.Players.LocalPlayer.Character if player then player.Humanoid.Health = 10 end
I don't see any errors. You might want to do this.
local player = game.Players.LocalPlayer.Character while player == nil do wait() end player.Humanoid.Health = 10
You shouldn't really say 'if player then'. I believe that was your problem as to why it was not working previously.
@l0cky2013 That didn't work either. That is meant for a local script, correct?