You need to use RemoteEvents or use a ServerScript, otherwise it will not work.OhManXDXD445— 3y
View all comments (6 more)
0
no it isn't, when i press it doesn't workAkorede09broth9— 3y
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.Ziffixture6913— 3y
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.Ziffixture6913— 3y
0
The 'Players' Service is apart of the data-model 'game', not of WorldRoot.Ziffixture6913— 3y
0
The 'LocalPlayer' pointer was referenced incorrectly, same goes for the Humanoid.Ziffixture6913— 3y