Animation doesn't load well

This is very weird, so I made a very simple animation:
robloxapp-20220415-1754189.wmv (271.0 KB)
robloxapp-20220415-1756387.wmv (919.4 KB)

The thing is, it only plays some parts (the arm). I also noticed that the animation does not play on repeat on the server and this got me very confused. It only plays once, and it doesn’t loop like in the client.

I think that the reason it doesn’t loop in the server is that I am setting a property of the animation in the client, therefore it doesn’t load for the server:

I also don’t believe I did anything wrong, if I am incorrect, then please tell me (code of the client below):

local humanoid = character:WaitForChild("Humanoid");
local animator = humanoid:WaitForChild("Animator");
local shoulderArms ="Animation");
shoulderArms.AnimationId = "rbxassetid://9378108770";
shoulderArms = animator:LoadAnimation(shoulderArms);
shoulderArms.Priority = Enum.AnimationPriority.Action;
shoulderArms.Looped = true;

I followed a tutorial: How to animate Tool Parts (Guns, Knifes etc.)

And yes, I do have the tool set to not need a handle, and I did connect the parts with a weld since I don’t need any of the others to be animated. I do have a part called BodyAttach and none of the tool’s parts are anchored, there are no other welds except the ones for the BodyAttach

Here is the server code:

	local M6D ="Motor6D", character.Torso);
	M6D.Name = "BodyAttach";
	M6D.MaxVelocity = 1;
	M6D.Part0 = character.Torso;

Here is the tool code (server):

local character;
	character = flag.Parent;
	flag.Parent:WaitForChild("Torso"):WaitForChild("BodyAttach").Part1 = flag.BodyAttach;
	character:WaitForChild("Torso"):WaitForChild("BodyAttach").Part1 = nil;
1 Like

(I only set max velocity to 1 just to see if that was the problem, because I really don’t know)

M6D.MaxVelocity = 1; --Just so you know, it doesn't have an inpact
1 Like

local player = game.Players.LocalPlayer

local Humanoid = character:WaitForChild(“Humanoid”)
local Animator = Humanoid:WaitForChild(“Animator”)

– // Animation Loader
local shoulderArms =“Animation”);
shoulderArms.AnimationId = “rbxassetid://9378108770”;
shoulderArms.Looped = true;

That errors, Looped is a property from the loaded animation, not from the original animation

You can make loop in the animator editor plugin instead .Looped.

Yes, I just said the looped problem to see if it was related, but the main problem here is that the flag doesn’t move

I also updated the client code, I forgot to add a part of it

1 Like