Character's position is different on client and server

Hello, as you can see this is my very first topic on the devforums.

So I have this teleport script that moves the player’s HumanoidRootPart’s position to a certain part position. On the client it seems normal, but on the server-side the character’s position is completely different from the client.

Also I don’t know how to explain this, but when the character moves even a little bit, on the server tab it looks like they are walking super fast. (This only happens after I move the player to a certain position.)


What the server sees:

Script: (this is from a RemoteEvent that is fired on the server when a gui button is pressed)

local Character = Player.Character or Player.CharacterAdded:Wait()
local HRP = Character:FindFirstChildWhichIsA("BasePart")
HRP.Position = BossPad.MorePads:FindFirstChild("ExitPart").Position

This has been bugging me and I want to find out the problem. Any help is greatly appreciated.

This is the issue. To fix that you should modify CFrame property of HRP instead of modifying Position property of HRP.

My bad, thanks. I did not know simple modifications can fix such a confusing issue.

1 Like

hey @MikeartsRBLX i think i have the same issue as you, did this fix ur problem?

1 Like

Yep, just do what the guy said, change Position into CFrame.

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