I’m making a cooldown progress bar and need to keep track of i, so I can update the bar. If I do for i = 0, 10, 1 do, it works perfectly. But when I use an attribute, it just prints 0. For anyone wondering, the path to the Cooldown attribute is defined elsewhere in the script and works fine.
Code snippet:
local cooldown = attributes.Cooldown
for i = 0, cooldown, 1 do
print(i)
task.wait(1)
end