How? so that u say Value = Value + 1 wait()
so that it would wait a lil before increasing again...
How? so that u say Value = Value + 1 wait()
so that it would wait a lil before increasing again...
You mean, how long the player is stepping on it, or how many times its been Stepped on?
-- ANSWER --
--Sorry if this script doesn't work, my Studio is broken to I can't test any scripts., so I'm scripting from memory.
local NotTouch=true
script.Parent.Touched:connect(function()
if script:FindFirstChild("WHATEVER NAME HERE") and Touch then
NotTouch=false
repeat wait(1) script.WHATEVERNAMEHERE.Value=script.WHATEVERNAMEHERE+1 until nil --You can change nil to the amount you want it to stop at
end end)
script.Parent.TouchEnded:connect(function()
NotTouch=true
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
how long, just like regenerating health if u step on a Medkit in BF
Oh.. So it keeps adding on until not touching?