Hi,
I’m a scripter, I’m working on big projects and they’ll be out soon! I’m making a tool that I want to animate, but I’m having a problem with it
Issue:
I have an Animation script inside a tool that’s in StarterPack, but the script isn’t working.
This is where my Tool is and what it contains:
here is the error I get on the output:
I have tried different ways of the scripts, I also tried to put a script inside the StarterCharacterScript, the
StarterCharacterScript doesn’t give me any errors but it doesn’t work, and for the script inside the tool it gives me the error above.
I also tried Humanoid.Animator:LoadAnimation like in the script but it doesn’t work and it gives me an error saying attempt to index nil with ‘Humanoid’
Scripts:
local Player = game.Players.LocalPlayer
local Character = Player.Character
local Animation = script.Parent:WaitForChild("Attack")
local AttackAnim = Character.Humanoid.Animator:LoadAnimation(Animation)
script.Parent.Activated:Connect(function()
AttackAnim:Play()
end)
I hope you can help me
Shieldmr.