Offset messing with Size

image

I’ve been making a pickup system thingy and have gotten it to work mostly but I haven’t been able to figure out how to get the size to touch both attachments (the two attached to the rope)

Its like 1 am so I’m tired so this is probably pure stupidness but help would be appreciated!

code:

local middlePos = (self.ShoulderAtt.WorldPosition+self.TargetAtt.WorldPosition)/2
local grabModelCF = CFrame.lookAt(middlePos,self.TargetAtt.WorldPosition,Vector3.new(0,1,0))*CFrame.Angles(math.rad(90),0,0)
local shoulderOffset = grabModelCF.UpVector.Unit/2
local distance = (self.ShoulderAtt.WorldPosition-self.TargetAtt.WorldPosition).Magnitude
local grabModelSize = Vector3.new(1,distance,1)
		
self.GrabModel.CFrame = grabModelCF+shoulderOffset
self.GrabModel.Size = grabModelSize

Im like 99% sure its with the shouldOffset variable not going with the distance variable but I havent been able to make it actually work.

Got it! I was just being stupid afterall. :nerd_face:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.