TweenService not working correctly

So I tried to tween HumanoidRootPart but it didn’t go so well.
Basically, the player falls down and I tween their HumanoidRootPart back to their original position.
This is client view:


This is server view:

As you can see, for some reason, on the client-side it looks normal but on server-side only HumanoidRootPart was actually moved. The blocks are actually local so I don’t know if that’s the problem but I check the block’s position on the client and pass them to the server to do the tweening.
Here’s the code:

local rs = game:GetService("ReplicatedStorage")
local ts = game:GetService("TweenService")

rs.ghost.OnServerEvent:Connect(function(plr,char,des)
	char.HumanoidRootPart.Anchored = true
	for _,part in next,char:GetChildren() do
		if part:IsA("BasePart") then
			if part.Name ~= "HumanoidRootPart" then
				part.Color = Color3.new(255,255,255)
				ts:Create(part,TweenInfo.new(2),{Transparency = 0.3}):Play()
			end
		end
	end
	task.wait(2)
	char.HumanoidRootPart.Anchored = false
	ts:Create(char.HumanoidRootPart,TweenInfo.new(3),{Position = des}):Play()
	task.wait(3)
	rs.ghost:FireClient(plr)
end)

Also there’s this weird glitch that happens when it tweens:

I have tried tweening both CFrame and Position, they produced the same results.

1 Like

well you’re trying to tween something that isnt anchored and related to character physics did you try anchoring the character then tweening?

You need to move the character using its CFrame not its position. CFrame will move the whole assembly. Position only moves that specific part.

It won’t even move anymore. Weird.

After anchoring all character parts and HumanoidRootPart, only the camera moves. And I used CFrame.

Is this running on the client or the server? Character movement should be done on the client. This is because the client has ownership of the physics of the character. So if you change it on the server, the client quickly overwrites those changes.

1 Like

Only HumanoidRootPart moves, the character model teleports to it after being unanchored. This was done on client.

Is there another way to temporarily disable physics simulation on the character model?

1 Like

Did you tween the CFrame or the position? You shouldn’t need to anchor it.

1 Like