Animation not working in roblox studio

Hello dear developers,
so recently my friend have created animations for my game. However, in his game everything works perfectly but when I try to copy in my game nothing seem to work. On top of that, when I click edit in his game, animation does not work it only works in actual game can someone help to solve this problem.

Thanks a lot!

1 Like

Hello there!

I think there is a little fault and I think my script should work!

local animation = script:WaitForChild("animation")
local humanoid = script.Parent:WaitForChild("Humanoid")
local dance = humanoid:LoadAnimation(animation)
dance.Looped = true -- if it is not a 'dance' change it to false.

If this don’t work make sure the Humanoid is R6 or R15. Even u need to know if you made the Animation for R15 or R6.

This can be too the problem.

Kind regards,

1 Like

animations are owner locked, meaning you can’t use them unless you’ve uploaded them yourself. ask your friend to give u their rigs with the unexported animation, then upload them to your own account. use those animation ids instead of the ones ur friend gave u.