so i have just started to do animations and i do not fully understand them yet. im trying to make a pickaxe that swings when i click and plays this new animation
the animation plays for me but when my friend clicks it fails to load, it also doesnt work in normal servers only playtest
i have looked at a lot of solutions and none of them have worked/applied to me.
im quite new so it might be might my doing and it most likely is. the animation is in the script if that helps
local Tool = script.Parent
local Animation = script:FindFirstChild("pickanim")
local debouce = false
Tool.Activated:Connect(function()
if debouce then return end
debouce = true
local Character = Tool.Parent
local Humanoid = Character.Humanoid
local AnimationTrack = Humanoid:LoadAnimation(Animation)
AnimationTrack:Play()
wait(3)
debouce = false
end)
Is this on your friends game or your game? I believe an animation doesn’t play if the game the animation is playing in isn’t the creator of the animation’s game.
How many animations are in your game? There is a bug that was reported on October 19 2019 that still isn’t fixed that limits the amount of animations allowed on a humanoid to 10.
I’m not to sure but the animations may also count Roblox’s default animations such as walking and jumping. Maybe this isn’t the issue, I’ll try and find something else.
Well if you are doing it in a local script that might explain it, as well as maybe the local variables but im pretty sure if it is in a local script then that would be the reason.