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

Animation not working????

Asked by 8 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

Humanoid = script.Parent.Parent.Parent:WaitForChild("Humanoid")
animController = script.Parent.Parent.Parent:WaitForChild("AnimationController")

function onDialogChoiceSelected(player, DialogChoice) --triggers when someone chooses a choice 
if (DialogChoice.Name == "Request") then
    wait(.1)
--animation
local animation = Instance.new("Animation")
animation.AnimationId = "http://www.roblox.com/Asset?ID=282676161"
local animTrack = animController:LoadAnimation(animation)
animTrack:Play()
--animation
end 
end 

script.Parent.DialogChoiceSelected:connect(onDialogChoiceSelected)

2 answers

Log in to vote
-1
Answered by 8 years ago

Have you tried

Turning it off and on again?

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

I am not good at animations.

Answer this question