Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How come I wait for the folder to load yet it still has an error?

Asked by 4 years ago

I have a little knife tool that has a folder for all it's animations. I figured out that animations load super slow and it takes a little time for them to adjust.

I tried using WaitForChild yet it still had an error. Next I used a while not Tool.Animations do wait() end structure but that did not work either. The error the output is giving me is Animations is not a valid member of Tool

I'm not sure what to do but it gives me these errors even though I yield the script for it.

Thanks for viewing this!

0
How did you use WaitForChild()? chatiii 6 — 4y
0
I used waitforchild like this: local Animations = Tool:WaitForChild("Animations") 123nabilben123 499 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

You should be able to just do

local Animations = Tool:WaitForChild("Animations")

But since you already tried that, I'm not sure what could be causing the script to not pick up the folder. I suppose just double check that the folder's name is "Animations" and nothing else.

0
I double-checked and rewrote the line and its still gives me the same error which is weird 123nabilben123 499 — 4y
Ad

Answer this question