Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 4 years ago

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.

Closed as Not Constructive by VAHMPIN, IAmNotTheReal_MePipe, Dovydas1118, Cynical_Innovation, and JesseSong

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
1
Answered by
stef0206 125
4 years ago

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.

Ad