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

Why won't my animation play and am I doing this correctly?

Asked by
Xyternal 247 Moderation Voter
2 years ago

Yeah so I have a shooting animation, but I don't know how to play it. Here is my code that I got from my tutorial.

local Anim = Instance.new("Animation")
Anim.AnimationId = "rbxassetid://10857396288"
local track
tool.Equipped:Connect(function(mouse)
    track = script.Parent.Parent.Humanoid:LoadAnimation(Anim)
    track.Priority = Enum.AnimationPriority.Action
    track.Looped = false
    track:Play()
0
is your game that uses this script a group game? Xapelize 2658 — 2y
0
no Xyternal 247 — 2y

Answer this question