Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

I need Help Creating a Script That When I press K it changes that players Health output and stuff?

So I need a script so when I press the key "K" it either I Get a max Hp of 200 while it depletes at a rate of 10 per second, OR if that can't happen then Increase Max Hp to 200 and increase the damage it does to others, The second one is what I really wanted but I'm not sure if that's a possible script.

1 answer

We don't make scripts for you on here, we answer questions about premade scripts. To do this you'd need to user UserInputServer.InputBegan, that event returns a KeyObject, check if that KeyObject.KeyCode is Enum.KeyCode.K, if so fire a remote event. then handle the whole increase health and deplete health on the server side.

This discussion is preserved as it was. New answers, comments, and votes are closed.