I’m looking to move the player into a duplicate room at the same position, moving them results in the first physics frame of the character in the right position and then next they snap down into the floor.
I’ve tried using :PivotTo()
and my current method is editing the CFrame.
-- this is part of larger code but for brevity i cut that out.
for _, player in pairs(peopleInDeconZone) do
local character = player.Character
if character then
local humanoidRootPart = character:FindFirstChild("HumanoidRootPart")
if humanoidRootPart then
local offset = humanoidRootPart.Position - originPosition
local newPosition = destinationPosition + offset
humanoidRootPart.Anchored = true
print(newPosition)
humanoidRootPart.CFrame = CFrame.new(newPosition)
end
end
end
1st frame
2nd frame (after manually unanchoring the character)