I made my own animation and for some reason it won't work in game, but it work in studio. Please help. This is my local script:
local p = game.Players.LocalPlayer
local c = p.Character or p.CharacterAdded:Wait()
local h = c.Humanoid
local tool = script.Parent.Parent.Parent.Parent
local animation = h:LoadAnimation(script.Parent)
animation.Priority = Enum.AnimationPriority.Action
tool.Equipped:Connect(function(Mouse) Mouse.Button1Down:Connect(function() animation:Play() end) end)

2 comments
Are you sure you saved the animation to ROBLOX? And, uploaded the animation in your games studio?
Yes.