Character not being tweened at all

Hello. I made an E interaction rope, all the client-sided things work perfectly. Yet, the server-sided ones make some problems. The script that handles a remote event that is supposed to tween a character is not working, no errors in the output. Here is my script:

local remoteEvent = game.ReplicatedStorage.Rope;

local function server_Event(player, startedCFrame, endCFrame)
	local animation = script.Animation;
	local humanoid = player.Character.Humanoid;
	local track = humanoid:LoadAnimation(animation)
	
	track:Play()
	
	humanoid.WalkSpeed = 0
	humanoid.JumpPower = 0
	humanoid.Parent.UpperTorso.CFrame = startedCFrame

	local tweenService = game:GetService("TweenService");
	local tweenInfo = TweenInfo.new(3);
	local goal = {
		CFrame = endCFrame;
	};
	
	tweenService:Create(humanoid.Parent.LowerTorso, tweenInfo, goal):Play()
	
	wait(3)
	
	track:Stop()
		
	wait(1)
	
	humanoid.WalkSpeed = 16
	humanoid.JumpPower = 50
end;

remoteEvent.OnServerEvent:Connect(server_Event)
1 Like

The only thing that doesn’t work is the character tweening?

1 Like

Yes, there is no yield in the script (as the code that comes after the line that plays the tween are running perfectly). Do you find my code including any errors in it?

1 Like

I can’t run your code of course, you need to tell me if there are errors in the output. Try debugging such as try the print something. And try moving the HumanoidRootPart instead

1 Like

I already answered it on the first topic.

Oops sorry, try tweening the HumanoidRootPart instead.

1 Like