Stretching Arm Feature

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I want to make stretching arm feature like in glass shatter obby.
  2. What is the issue? Include screenshots / videos if possible!
    I don’t know how to make it.
  3. What solutions have you tried so far
    This is the solution I tried
Zusammenfassung

local function Point_C0_To_Mouse(Motor6D, WorldCFrame)
local Part1_CFrame = Motor6D.Part1.CFrame
local Stored_C1 = Motor6D.C1
local Stored_C0 = Motor6D.C0
local RelativeTo_Part1 = Stored_C0 * Stored_C1:Inverse() * Part1_CFrame:Inverse() * WorldCFrame * Stored_C1
RelativeTo_Part1 -= RelativeTo_Part1.Position

local Goal_C0 = RelativeTo_Part1 + Stored_C0.Position
return Goal_C0

end
local RightShoulder = torso[“Right Shoulder”]
local LeftShoulder = torso[“Left Shoulder”]
–local Mouse = game.Players.LocalPlayer:GetMouse()
local RightArm = script.Parent:WaitForChild(“Right Arm”)
local LeftArm = script.Parent:WaitForChild(“Left Arm”)

RunService.Stepped:Connect(function()
local Mouse_Pos = workspace.Model.Right.Red.WorldPosition
RightShoulder.C0 = Point_C0_To_Mouse(RightShoulder, CFrame.lookAt(RightArm.Position, Mouse_Pos)) * CFrame.Angles(0,0, math.deg(-90))
RightArm.Size = Vector3.new(1,((torso.CFrameRightShoulder.C0).Position-Mouse_Pos).Magnitude,1)
local Mouse_Pos = workspace.Model.Left.Red.WorldPosition
LeftShoulder.C0 = Point_C0_To_Mouse(LeftShoulder, CFrame.lookAt(LeftArm.Position, Mouse_Pos)) * CFrame.Angles(0,0, math.deg(90))
LeftArm.Size = Vector3.new(1,((torso.CFrame
LeftShoulder.C0).Position-Mouse_Pos).Magnitude,1)
end)