How would i go about copying the position but not the orientation

hello! i would like to know how i could set the position of a part to the position of another part but not the rotation

this is what i have tried so far

local target = script.Parent:WaitForChild("HumanoidRootPart")
local part = game.Workspace.Part
part.Position = target.Position

i haven’t gotten any errors btw, thanks in advance

Your “part” that you teleport to “humanoidrootpart” may be collision-prone, so the torso crashes into the “part” and turns it around. I hope I made myself clear.

you could go like this:

local target = script.Parent:WaitForChild(“humanoidRootPart”)
local part = game.Workspace.Part
part.Position = target.Position +,3,0)

1 Like

thanks for the suggestion, i’ll try it out

it seems as if the part just remains in place. i have received no errors once again.

Can you anchor the part to see if it actually is moving ?

i found a solution to the issue. i just had to use run service and anchor the part. thank you to everyone who has contributed!