Tweening Character Positions Issue

I have this issue when I tween the player the server and client positions are different
and other people see you weirdly

Client :
image
image

Server :
image
image

The Tween code

local Info = TweenInfo.new(.05, Enum.EasingStyle.Linear)
local Tween = TweenService:Create(HumanoidRootPart,Info,{Position=hit})
Tween:Play()

Does anyone know the fix? I’m trying to smoothly get the player to a position

1 Like

If I could, may I get the full code so I can test it out myself? Without the full code, I will not be able to help you with your problem.

You never know what other things could be damaging your code.

1 Like
script.Parent.OnServerEvent:Connect(function(plr,hit)
	local Character = plr.Character
	local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")
	
	local Info = TweenInfo.new(.05, Enum.EasingStyle.Linear)
	local Tween = TweenService:Create(HumanoidRootPart,Info,{Position=hit})
	Tween:Play()
	
end)
1 Like

Maybe try adding the Tween:Play() into a spawn(function()?
I think you also forgot to add another Enum in the TweenInfo() section.

No that doesn’t change anything

and spawn is deprecated so use task.spawn instead

I figured out the issue

I Changed the property to CFrame instead of position

1 Like

Ohhh, duhh. Makes total sense lol

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.