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

1 comment

0

You can achieve this by using UserInputService or ContextActionService if you want an example I can show you