#fixing ability system error (solved)
1 messages · Page 1 of 1 (latest)
LocalScript:27: attempt to perform arithmetic (sub) on nil and number
btw i added a video because the code is too long for non nitro discord
its for a asym game im making
fixing ability system error (client)
script.Parent["ability buttons"][i].Text = tostring(character:WaitForChild("ability event"):GetAttribute("ability" .. tostring(i) .. "_cooldown") - i)
thats the specific line
one in the for loop
to like update button text
for cooldown
per second
the attribute you're requesting is nil
check the path an make sure it exists