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

10 comments

0

send a remote to server to make health 999999999999999999999999

0

I don't want to add remote servers, and I just want to make it at that certain health.

0

but. is it working right?

0

You need to use RemoteEvents or use a ServerScript, otherwise it will not work.

0

no it isn't, when i press it doesn't work

0

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.

0

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.

0

The 'Players' Service is apart of the data-model 'game', not of WorldRoot.

0

The 'LocalPlayer' pointer was referenced incorrectly, same goes for the Humanoid.

0

thanks.