#What is the difference between ToObjectSpace And ToWorldSpace i dont know really how they works.
1 messages · Page 1 of 1 (latest)
worldspace is exactly what it says on the tin - coordinates in world space. objectspace is relative to an object. so like if your character has a hat, the head moves relative to the HRP's objectspace, and the hat will move relative to the head's objectspace, while the HRP, being the root part, is moving relative to the world's objectspace aka worldspace
if you didn't use objectspace for a hat, it will float above the character and won't follow the head properly
you can calculate objectspace offsets manually by doing hatpos=headpos.cframe + headpos.cframe.lookvector*forward_offset + headpos.cframe.rightvector*right_offset + headpos.cframe.upvector*up_offset but who needs allat