Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why is my animtion not playing is it because of the tool?

Asked by 5 years ago
Edited 5 years ago

The head is moving/eats so the animation loads no error but the arm dosen't move i think its beacuse of the tool? but how would you fix this..

code:

local tool = script.Parent.Parent.Parent.Carrot

local sound = script.Parent.Eating

local Handle = script.Parent.Parent.Handle

local player = game.Players.LocalPlayer

local animation = script.Parent.Parent.Animation

tool.Activated:Connect(function()

wait(0.1)

local anim =

player.Character.Humanoid:loadAnimation(animation)

anim:Play()

wait(0.1)

sound:Play()

end)
0
Hey, is there an Animation ID inside the animation? RBLX_Nat 18 — 5y
0
It could be due to your variables too, I don't see anything wrong with it, unless local anim = player.blahblahblah aren't on the same line? RBLX_Nat 18 — 5y
0
is it because of the lowercase l in loadanimation? Zobot4 0 — 5y
0
or because your tool has no handle and you haven't disabled requires handle in the tool Zobot4 0 — 5y
View all comments (2 more)
0
The head is moving/eats so the animation loads no error but the arm dsoen't move i think its beacuse of the tool? but how owuld you fix this.. Freddan2006YT 88 — 5y
1
I think its your animation, make sure that the priority is set to Action... but i'm not sure awsomemike4 3 — 5y

Answer this question