Item grap system

I want to make a grap system exactly like in the picture

I am having a bit of trouble making something similiar to it here is a script i made (the script isnt complete by the way)

local Character = script.Parent
local RightArm = Character["Right Arm"]
local LeftArm = Character["Left Arm"]
while task.wait() do
	
	RightArm.CanCollide = false
	RightArm.Size = Vector3.new(RightArm.Size.X,RightArm.Size.Y,(-RightArm.CFrame.UpVector-Handle.Position).Magnitude)
end

the rightarm glitches out and it looks very weird

i tried looking for anything that helps in youtube and devforum but all was about different things

i want to know how its made not a script of it