Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Position property moves part above the set position if set position is part?

I have an issue where i am trying to set a parts position to the players upper torso but when it runs the part is moved on top of the player instead. The part can not be collided and its anchored. So what can i do to set the parts position to the players torso without the part being moved?

1 answer

✓ Accepted answer

In this case because the part is anchored and non-collided then you can safely use CFrame. In my experience it does not check for collision with other parts.

local yourpart
local torso -- You are setting these.

yourpart.CFrame = CFrame.new(torso.CFrame.p) -- I don't care for rotation in this situation.

This discussion is preserved as it was. New answers, comments, and votes are closed.