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

Is there anyway i can edit a wait(1) while it's going down?

I wonder if there's a way to do it you see im making a game and it has a power the more you use the faster it drain's so i'm wondering if i can make this happen

local timer = 1
local DoubleDrain = false
spawn(function()
while true do
if DoubleDrain == true then
timer = 0.5
else
time = 1
end
end)

wait(timer)

1 answer

I think you mean something like this:

local delay = 1
while wait(delay) do
	print("I will keep gaining speed >:)")
	delay = delay - 0.1
	if delay <= 0 then 
break 
end
end

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