Animation is not a valid member of LocalScript

I am making it so that when a player clicks the mouseButton1 an animation plays, but it says that animation is not a valid member of the script.

local anim = script.Animation

https://gyazo.com/dc909a3f17421e267f2081738ec2a00b
https://gyazo.com/3866feeaed0e2d593d4cdd5170f3c789

The second picture says something about a dummy, maybe it’s the dummy that’s giving me errors? Any ideas on how to fix it?

1 Like

I already fixed the names, and fixed the problem also, the animation hadn’t loaded yet. Just added wait(2), imma set your answer as solution anyway

4 Likes