Ive had a weird bug where animations are not playing for other players but are playing for me? The game is uploaded to my profile, and all the animations are uploaded to me. However, Whenever other people join the game the animations work for me but not for them. Can anyone help?
Script Im Using:
local animation = script:WaitForChild(‘Book’)
local humanoid = script.Parent:WaitForChild(‘Humanoid’)
local dance = humanoid:LoadAnimation(animation)
dance:Play()
dance.Looped = true
I think it could be from this. Humanoid:LoadAnimation has been deprecated for a while now. You should be using Humanoid.Animator:LoadAnimation.
Try changing it to this:
local humanoid = script.Parent:WaitForChild("Humanoid")
local animator = humanoid:WaitForChild("Animator")
local dance = animator:LoadAnimation(animation)
The script itself should be underlining humanoid:LoadAnimation and telling you it is deprecated.
when class is being deprecated it being superseded by another class that has more features than deprecated class but it doesn’t mean that it cant be used in the code.
so, both Humanoid.Animator:LoadAnimation(ID) and Humanoid:LoadAnimation(ID) works but this code doesn’t solve this problem but depends where does it run
Uhh not quite, animations replicate regardless of the environment in which they are ran in. The only possible way to make an animation not replicate to others is to create the Animator object on the client side and load animations through that.