Rope Issue Cant Move

There we go:

local plr = game.Players.LocalPlayer
local char = plr.Character
local hum = char:WaitForChild("Humanoid")
local humrp = char:WaitForChild("HumanoidRootPart")
local Mouse = plr:GetMouse()
local UIS = game:GetService("UserInputService")
local IsAir = false

local replicatedStorage = game:GetService("ReplicatedStorage")

local ropeEvent = replicatedStorage:WaitForChild("RopeEvent")

--// Arm Stuff
local LeftArm = char:WaitForChild("Left Arm")
local RightArm = char:WaitForChild("Right Arm")
local charAttach = Instance.new("Attachment", humrp)
charAttach.Name = "SilkAttachment"
----------------------------------------------------------------------

function WebShoot(hit,target)
	local dupe = target:FindFirstChild("buildingAttachment")
	
	if target == nil then return end
	if hit == nil then return end
	---------------- Create Attachment
	local BuildingAttachment = Instance.new("Attachment")
	if target:FindFirstChild("buildingAttachment") then
	   dupe:Destroy()
	end
		BuildingAttachment.Name = "buildingAttachment"
		BuildingAttachment.CFrame = target.CFrame:ToObjectSpace(hit)
		BuildingAttachment.Parent = target
	    BuildingAttachment.Visible = true
	    -----------------------------------
	local dupe2 = game.Workspace:FindFirstChild("Silk")
	local Web = Instance.new("RopeConstraint")
		Web.Name = "Silk"
		Web.Length = 3 --(humrp.Position - BuildingAttachment.WorldPosition).Magnitude i changed your script like this so don't change this part
		Web.Visible = true
		Web.Color = BrickColor.new("Really black")
		Web.Thickness = 0.15
		Web.Restitution = 1
		Web.Parent = humrp
		Web.Attachment0 = BuildingAttachment
		Web.Attachment1 = charAttach
end
UIS.InputBegan:Connect(function(input, gameProccessed)
	if input.UserInputType == Enum.UserInputType.MouseButton1 then
			WebShoot(Mouse.Hit, Mouse.Target)
	end
end)

while wait(5) do 
	charAttach.WorldPosition = LeftArm.LeftGripAttachment.WorldPosition
end

How is it working I don’t get it

This will prevent from making a lot of ropes in a single object

I worked A lot on this, did you try itt?

No but I still dont get why mine didnt work but yours did??

But it’s not complete yet i mean the dupe system, for example if u try to cast another rope on another wall it’s going to be glitchy i didn’t work on that

Alright It’s fine I still dont get how yours is working but mine isnt I legit looked at the code everything is basically the same

well not everything i tried to change the parent of the rope and attachment if you look a little bit closer

Yeah welp I dont even care anymore I’m just gonna use a remoteevent

it’s a good thing then but make sure to make a anti dupe function so it won’t be glitchy
i mean a system that prevents from casting multi ropes on a single object

change the title of the topic like this : [Solved]… So people won’t come here by misunderstanding btw

I dont even know what solution to pick to be honest

i thought that you are going to use remote events :thinking:

Yessir I did thanks
[30 Characters]

ok then so this topic is going to be locked?

have a great time, i’m glad that your problem just solved!

1 Like

Thanks man couldnt have done it without your help!

1 Like

i have done nothing! Just doing my work to help others :+1:

1 Like

Hey I really like your web swing script but I wanted to ask what would I have to do so that every time the user clicks the space bar the web line part disappears.

Hey I could help you sorry I didnt reply on the othe post

1 Like