You can write your topic however you want, but you need to answer these questions:
-
i want to make these functions fire after each wait
-
the first three functions all fire at once, then the next four all fire at the correct interval.
-
i tried adding debounce and it did nothing.
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
local debounce = false
local length
local function toSymbol(symbol)
if not debounce then
debounce = true
length = (currentSymbol.Value - symbol)
--if length > 39 then
-- length = (currentSymbol.Value - symbol)
--end
local goal = {Value = chevrons[symbol]}
local tween = TweenService:Create(ringrotation, TweenInfo.new(math.abs(length) * 0.5, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 0, false, 0), goal)
print("current symbol is ".. currentSymbol.Value)
print("new symbol is ".. symbol)
print("length is ".. length)
print("------------------")
tween:Play()
currentSymbol.Value = symbol
task.wait(0.2)
debounce = false
end
end
-- abydos = 15, 35, 27, 24, 30, 12
print("get ready")
task.wait(2)
print("mark")
toSymbol(15)
task.wait(length*0.5 + 2)
toSymbol(35)
task.wait(length*0.5 + 2)
toSymbol(27)
task.wait(length*0.5 + 2)
toSymbol(24)
task.wait(length*0.5 + 2)
toSymbol(30)
task.wait(length*0.5 + 2)
toSymbol(12)
task.wait(length*0.5 + 2)
toSymbol(2)
the waits are not the final product so dont complain, i’m just trying to test the function and im running into this issue idk why.