How to do arithmetic with Vector3 positions relative to parts

I’m trying to make a part spawn 2 studs above the handle position, but it is always off and it gets even worse when walking. I have no idea how to fix this.

Code:

saberBase.Position = hilt.Position + Vector3.new(0, 2, 0)

The pivot of one of the parts/meshparts might be off a bit

1 Like

It gets more off when walking
Screenshot 2025-05-04 213203
It also doesn’t do this when taking away the addition

1 Like

I assume the part is a Cylinder part then. try changing the X value of the position instead of the Y.

saberBase.Position = hilt.Position + Vector3.new(2, 0, 0)
1 Like

Perhaps do it in the objectspace of the hilt and then convert that to worldspace?

saberBase.Position = hilt.CFrame:PointToWorldSpace(Vector3.new(0, 2, 0))
2 Likes

you could try using cframe, that works a lot for me

1 Like