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

Tool animation not playing?

Asked by 8 years ago

I coded a tool to play an animation when equipped but it does not play when equipped.Could someone explain the reason for it?

local Humanoid = game.Players.LocalPlayer.Character.Humanoid
local anim=Instance.new("Animation")
    anim.Name = "Drawanim"
    anim.AnimationId = 'http://www.roblox.com/asset/?id=305299714'
    anim.Parent = workspace

script.Parent.Equipped:connect(function (idk)
    local playanim = Humanoid:LoadAnimation(anim)
    playanim:Play()
end)
0
nvm,the script was fine,just the animation was incorrect.Sorry for posting this. alphaboy299 15 — 8y
0
Remove it then please. or put [SOLVED] in the title to spare people some time. User#9949 0 — 8y

Answer this question