I have made a GUI that is meant to increase the player's max health by 10 each time I click it but it's not working, here is the script
✓ ANSWER ACCEPTED
How can i increase the players MaxHealth by 10 everytime i click the GUI? [Solved]
2 answers
✓ Accepted answer
First of all use Lua code block, you can't change that information with local script you will have to send RemoteEvent to the server and server would chamge it.
This could help:https://developer.roblox.com/en-us/articles/Remote-Functions-and-Events
script.Parent.MouseButton1Click:Connect(function()
game.Players.LocalPlayer.Character.MaxHealth = MaxHealth +10
end
1 comment
0
This wouldn't work (this is local script so only client would see the change)
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
thank you
mark his post as the answer :))
He should accept it or chnage title to [Solved] so people don't come to this post anymore