Changing CFrames on the server teleports the player under the map?

I’m making a move that lets you teleport behind a person and deal damage to them but I am facing a weird issue that I cant figure out how to fix…

When I teleport the player behind the character being hit, I teleport normally on the client but when I switch to the server view I’m suddenly under the map for no apparent reason, everything is handled on the server and I’m using the new :PivotTo and the :GetPivot functions so I’m not sure as to why this is happening

Client:

Server:

Video:

Teleport Code:

-->> This function is fired via server script inside the character that detects inputs
module.M2 = function()
    -- Sanity checks
     
    -- Teleport Part >
    local length = 3
    local taggedPivot = taggedplr:GetPivot()

	character:PivotTo(taggedPivot - (taggedPivot.LookVector * length))
end

Solutions I’ve tried so far:

  1. Teleporting on the client
  2. Changing the network owner to the server before teleporting and setting back to the player
  3. Opting for AlignPos instead of BodyPosition
  4. Anchoring the humanoid root part and unanchoring after 1 frame of teleporting

It’s important to note that this issue only happens after I teleport whilst having an AlignPos inside my character

1 Like

This is a problem with the Roblox engine itself. You need to anchor the character and then move them. Wait one frame and then unanchor.

1 Like

Nope, same issue still happens

1 Like

Interesting. Does your game have streaming enabled?

2 Likes

Yes, I have it enabled (Its on by default)

Were you able to fix it? Same problem here and I’ve tried absolutely everything. It’s really impacting my game because it’s a fighting game, I can’t find any solutions and it’s frustrating.