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

How can i make a chakra regen when key holding down?

Asked by 3 years ago

Ok so i am making an Anime game and when the player holds key C he regens his chakra The chakra is in:

game.Players.LocalPlayer.Stats.Chika

This is the script i want to execute when the players holds C:

while wait() do
    while Chika.Value < 10000 do
        wait(0.01)
        Chika.Value = Chika.Value + 1
    end
end
0
You can achieve this by using UserInputService or ContextActionService if you want an example I can show you DeUltimate23 142 — 3y

Answer this question