Different position server and client

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve?
    I want the position on the client side to be the same as on the server side

  2. What is the issue?
    The problem is that the client quoted position is not the same

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    Usually people with the same problem don’t use it this way.

The Lua code:

Pl.Character:PivotTo(gen.Example:GetPivot())
local weld = Instance.new("Weld")
weld.Name = "RelierChair"
weld.Part0 = Pl.Character.HumanoidRootPart
weld.Part1 = gen.Circle
weld.C0 = Pl.Character.HumanoidRootPart.CFrame:Inverse()
weld.C1 = gen.Circle.CFrame:Inverse()
weld.Parent = Pl.Character.HumanoidRootPart
Pl.Character.HumanoidRootPart.CanCollide = true
Pl.Character.HumanoidRootPart.Anchored = false

Problem:

Client:

Server:

That’s a local script, correct?

Local scripts only affect the client, not the server

Yeah I know, that’s why I am asking.

If this is a local script, then that’s the issue. It needs to be a server script to replicate, or you can also use RemoteEvents.

I actually forgot to specify the code that I put is in a server-side script

I know, I was just giving the information of why you asked it so that the person who created the topic wouldn’t recreate the error

any local script in your game that changes the position of the player?

There are some but they are not called at this time

Oh sorry, I see

That’s pretty weird, are there any RemoteEvents that are involved with this?

1 Like

No Remote Event me too I find it quite weird

Do you think I will have to send a Remote Event to the client to teleport him too?

Are you sure the lines of code that you provided are the ones causing the difference between the server and the client? If so, I am honestly not too sure why this is happening.

Changes made on the server replicate to the clients

I think it’s not related to the script you sent. So read again your local scripts and be sure they aren’t called

1 Like

Just thinking, the character is sitting, are you calling the sitting animation? Or are they being welded to a seat and letting the seats default actions run? I’m just wondering if it is creating additional welds and causing a conflict.

The character does not sit these an animation

None of my teleports causes the player to shift to the side

I have just carried out a test at the time of the weld its shifts on the side

When on the server side I modify the rotation of the weld it modifies it on the client side but its rounded

I solved my problem, I replaced the weld with the anchored of HumanoidRootPart is its working perfectly

Glad to see this. I was all out of ideas of what could be causing this.