Hey, can anyone help make me a INF health GUI Button so when the play clicks on it the players obtains inf health.
Heres what I used already.
game.Workspace.Players.LocalPlayers.Humanoid.Health = 999999
Hey, can anyone help make me a INF health GUI Button so when the play clicks on it the players obtains inf health.
Heres what I used already.
game.Workspace.Players.LocalPlayers.Humanoid.Health = 999999
This discussion is preserved as it was. New answers, comments, and votes are closed.
10 comments
send a remote to server to make health 999999999999999999999999
I don't want to add remote servers, and I just want to make it at that certain health.
but. is it working right?
You need to use RemoteEvents or use a ServerScript, otherwise it will not work.
no it isn't, when i press it doesn't work
You need the Server to set the Humanoid's Health, otherwise it won't replicate (register). You'll have to set up a RemoteEvent in ReplicatedStorage, this will allow both the Server and Client to access this Instance.
Fire the RemoteEvent on your 'MouseButton1Click' signal of your GUIButton Object. Have the Server then use the provided Client-fired's Player Object parameter to reach its respective Humanoid, and proceed from there.
The 'Players' Service is apart of the data-model 'game', not of WorldRoot.
The 'LocalPlayer' pointer was referenced incorrectly, same goes for the Humanoid.
thanks.