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