Hi!
I'm new to all of this and was using youtube tutorials to build my game. I got up to a rough working draft and published it to ROBLOX. It didn't work, at all.
The problem I have come to discover is that ROBLOX's servers don't like the word "LocalPlayer" anymore.
What I am trying to do is create a GUI for the player but a lot of my code looks like this:
game.Players.LocalPlayer.Character.Humanoid.MaxHealth = (game.Players.LocalPlayer.leaderstats.Level.Value * 15) + 100
How should I rewrite this code?
Thanks in advance

1 comment
A server does not know what a "LocalPlayer" is only a local script which runs on the clients device knows what a "LocalPlayer" is since the is only one player.