of     1   

GalaxyFPS_Studios
#225872233Monday, October 02, 2017 4:13 AM GMT

I have a small script and I dont know how to set a players health to 0 if game.Players.LocalPlayer.leaderstats.Hunger.Value == 0 then game.Players.LocalPlayer.Humanoid.Health = 0 end help????
Sukadia
#225872298Monday, October 02, 2017 4:15 AM GMT

The player's HP is in workspace. game.Workspace.LocalPlayer.Humanoid.Health = 0
GalaxyFPS_Studios
#225872464Monday, October 02, 2017 4:22 AM GMT

i couldnt get that to work :P
NexanianStudios
#225872507Monday, October 02, 2017 4:23 AM GMT

Is it in a server script?
GalaxyFPS_Studios
#225872663Monday, October 02, 2017 4:29 AM GMT

no
Sukadia
#225872697Monday, October 02, 2017 4:30 AM GMT

LocalPlayer only works on local scripts. You're going to have to change it to that.
NexanianStudios
#225872713Monday, October 02, 2017 4:30 AM GMT

Try adding a print right before the health setting line to see if it runs at all
GalaxyFPS_Studios
#225872825Monday, October 02, 2017 4:34 AM GMT

would i put the local script in starterpack/gui or in the workspace?
NexanianStudios
#225873064Monday, October 02, 2017 4:44 AM GMT

LocalScripts have to be parented under the player or character
nofascistsaloudxD
#225874432Monday, October 02, 2017 5:43 AM GMT

game.Players.LocalPlayer.Character.Humanoid.Health = 0
GalaxyFPS_Studios
#225907828Tuesday, October 03, 2017 1:13 AM GMT

None of it worked :P i dont know what im doing wrong?!

    of     1