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)
