1. For a gun I have made I am trying to create some animations for it!
2. I know that Humaniod:LoadAnimation(Animation Here)
is depreciated but can’t figure out how to change my code to the right version
3. I have tried looking around Youtube, Here and DeveloperHub for any help but I didn’t understand it, would love if someone could explain it in simple terms or give a good link .
here is my current code
local tool = script.Parent
local shootAnim = Instance.new("Animation")
shootAnim.AnimationId = "rbxassetid://5940342945"
local track
tool.Activated:Connect(function()
track = script.Parent.Parent.Humanoid:LoadAnimation(shootAnim)
track.Priority = Enum.AnimationPriority.Action
track.Looped = false
track:Play()
end)
Thanks for the help