Im making a script that changes everyones max health to 50 but it did not work help?
game.Workspace.Player.Character.Humanoid.MaxHealth = 50
First the Player data is not stored in Workspace, Its stored in Players. And second you have to get all the players to do this you do:
players=game.Players:GetPlayers() for i=1,#players do players[i].Character.Humanoid.MaxHealth = 50 end
This should work
I'm not a good scripter, but I don't think you need Character and Humanoid. Try this. If it doesn't work, sorry. I suck at scripting..
game.Workspace.Player.Humanoid.MaxHealth = 50
Best of luck!