Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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!

2 comments

0

How did you use WaitForChild()?

0

I used waitforchild like this: local Animations = Tool:WaitForChild("Animations")

1 answer

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.

1 comment

0

I double-checked and rewrote the line and its still gives me the same error which is weird

This discussion is preserved as it was. New answers, comments, and votes are closed.