#ability system

1 messages · Page 1 of 1 (latest)

outer gazelle
#

i am trying to make a ability system for my asym game, however when handling the cooldown it always returns a error saying: "Players.Spartak_Earth2020.PlayerGui.abilities.LocalScript:32: attempt to index nil with 'cooldown'"

#

my message could not be sent so i have to take a screenshot of code instead

sick ember
#

You used the loop variable i inside a task.spawn, which caused scope issues as the loop finished before execution. You also shadowed the variable i in your inner loop and forgot the negative step in your countdown, making the cooldown logic fail to index correctly.

#

heres fix one

outer gazelle
#

got it