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

Animation not working????

Asked by 9 years ago

I made an animation with ROBLOX's Animation Editor, still the animation doesn't work! The animation used is here: http://www.roblox.com/Point-to-the-Side-item?id=282676161

01Humanoid = script.Parent.Parent.Parent:WaitForChild("Humanoid")
02animController = script.Parent.Parent.Parent:WaitForChild("AnimationController")
03 
04function onDialogChoiceSelected(player, DialogChoice) --triggers when someone chooses a choice
05if (DialogChoice.Name == "Request") then
06    wait(.1)
07--animation
08local animation = Instance.new("Animation")
09animation.AnimationId = "http://www.roblox.com/Asset?ID=282676161"
10local animTrack = animController:LoadAnimation(animation)
11animTrack:Play()
12--animation
13end
14end
15 
16script.Parent.DialogChoiceSelected:connect(onDialogChoiceSelected)

2 answers

Log in to vote
-1
Answered by 9 years ago

Have you tried

Turning it off and on again?

Ad
Log in to vote
-2
Answered by 9 years ago

I am not good at animations.

Answer this question