So, I have a pretty simple animation playing script for a character. But, I’m trying to clone it into a WorldModel that is inside a viewport frame. The clone is not anchored, yet, it doesn’t play its animation. I’ve tried keeping the script disabled until I clone it but that STILL doesn’t work. If you have any answers, please tell me.
when you clone a character, its animations do not pass on because it is a different humanoid. You can apply the animation to the humanoid
well that’s what ive tried. When I tried to make it detect when its parent has changed, but it still doesn’t work. This was what I did.
script.Parent.Changed:Connect(function(property)
if property == "Parent" then
local animation = script.Parent.Animations.Idle
local humanoid = script.Parent:WaitForChild('Humanoid')
local idle = humanoid:LoadAnimation(animation)
idle:Play()
end
end)
Im not sure, but I think It’s because the script is inside cloned character and cloned character’s parent doesnt change and it just gets set at the same time the character getting cloned.
So I think you should just make the cloned character play the animation on the script
okay well, I tried that and it still didn’t play the animation. It MIGHT be because the animation script is running after being put in the frame, and it can’t run inside the frame??
Wait, It could not work because the script was Server script, Server scripts mostly won’t work inside 2DObjects, so I think that might be the problem.
if the script you are using is local script then… idk
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.