Creating a rope between two accessories

Hi! I’m currently inserting 2 accessories into the player character and I want them to have a cable linking them together. But for some reason it isn’t appearing, does anyone know why?

local Backpack = game.ServerStorage.Backpack
local backpackCable = Backpack.Gear.RopeStart
local ghostHandle = game.ServerStorage["Ghost Handle"]
local handleCable = ghostHandle.Handle.RopeEnd
local Players = game:GetService("Players")

local Cable = Instance.new("RopeConstraint")

Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(char)
		local Humanoid = char:WaitForChild("Humanoid")
		
		Humanoid:AddAccessory(Backpack:Clone())
		Humanoid:AddAccessory(ghostHandle:Clone())
		
		Cable.Parent = Backpack.Gear
		Cable.Color = BrickColor.new(302)
		Cable.Thickness = 0.2
		print("Set thickness")
		Cable.Attachment0 = backpackCable
		Cable.Attachment1 = handleCable
		Cable.Visible = true
	end)
end)

This is my code, I’ve tried to set the cable visible to true and some other things but it hasn’t worked.

THIS SCRIPT IS A SERVER SCRIPT IN SERVER SCRIPT STORAGE

You need attachments in each part.

RopeStart and RopeEnd are attachments.

local Backpack = game.ServerStorage.Backpack
local backpackCable = Backpack.Gear.RopeStart
local ghostHandle = game.ServerStorage["Ghost Handle"]
local handleCable = ghostHandle.Handle.RopeEnd
local Players = game:GetService("Players")

image

Well, then you’re not able to use RopeConstraint in ServerStorage.


So, you didn’t make variables for these clones after parenting the RopeConstrain, that’s what i mean.

I found the issue, I was doing it after putting the accessories in the player, so the rope wasn’t being added, it works mostly now but for some reason the second attachment isn’t being set.
image

GhostHandle isn’t in the workspace i guess.