How to make animation not transfer to user when using morph

I have a morph I made and I have it standing on a base and animated it so it looks cool. But when I go to use the morph the the animation comes with it and I am wondering how I could make it so the animation does not tranfer to the player when used.

This is the script I have for the animation:

local animationId = 18197949244

game.InsertService:LoadAsset(animationId).Parent = game.ReplicatedStorage



local controller = script.Parent.Humanoid
controller:LoadAnimation(script.Animation):Play()
1 Like

What you could try is by checking to see if the morph’s parent is not a player in the game before playing the animation

local Players = game:GetService("Players")

if not Players:FindFirstChild(Morph.Parent.Name) then
   animation:Play()
end

This obviously isn’t the solution but should give you a general idea of what you can do to fix this issue.

1 Like