So, I am trying to make a Local Script that changes the Player's Health if their name are in the list, I have this Local Script but doesn't seems to be working.
local player = game.Players.LocalPlayer
local char = player.Character
if player.Name == "LokiGodOfThieves" then
char.Humanoid.MaxHealth = 500
else
char.Humanoid.MaxHealth = 100
end

3 comments
It's still not working for some reason.
That should be in a server script
Sorry I didn't pay attention, Thank you very much.