So I want my tool to play an animation, although it gives me an error, That error just drive me insanse, because it makes no sense!
Error:
Portal is not a valid member of Tool “Players.octav20071.Backpack.PortalGun”
Exporer:
Portal Instance is an AnimationController
Script:
local shootAnim = script.Parent.Portal:LoadAnimation(script.Shoot)
local holdAnim = script.Parent.Portal:LoadAnimation(script.Hold)
local activateAnim = script.Parent.Portal:LoadAnimation(script.Activate)
local holdSound = workspace.World.Sounds.HoldSound
The recommended method for making the players, actually anything that has a humanoid, animate is by using the humanoid; however, that is irrelevant to the issue here. Tell me what you got from using WaitForChild.
I didn’t got the error anymore, but the animation doesn’t play;
maybe I cannot use Animations on tools?
(I think I have to re-rig the gun in order to connect the animation with the player’s character, I don’t know)