So, right now im making my custom animation but my script isnt working. Its a local script and its inside of my tool. The tool is a ball (the material is granite) and its only a single part, but it does have a particle emitter in it.
player = game.Players.LocalPlayer repeat wait(0.001) until player.Character character = player.Character Canswing = true animation = character.Humanoid:WaitForChild(script.Parent.OrbOfFury) script.Parent.animation:play(function() end)
My animationID is here: https://www.roblox.com/library/576159820/Orb-of-fury
When I test it it says: OrbOfFury is not a valid member of Tool
Please Help!
This is a common bug I experience myself, it is probably cause the Humanoid isn't loaded when the :LoadAnimation()
line is read.
Basically, to fix this all you need to do is wait for the Humanoid to load, you can do this by using the :WaitForChild()
method.