Rope Issue Cant Move

can you send the full script? 30 characters

1 Like

Yessir I can

function WebShoot(hit,target)
	if target == nil then return end
	if hit == nil then return end
	if target.Name == "Building" then
		game.Workspace.Sling:Play()
		print("We can attach to this surface.")
		---------------- Create Attachment
		local BuildingAttachment = Instance.new("Attachment")
		BuildingAttachment.Name = "buildingAttachment"
		BuildingAttachment.CFrame = target.CFrame:ToObjectSpace(hit)
		BuildingAttachment.Parent = target
		BuildingAttachment.Visible = true
		------------------------------------
		local Web = Instance.new("RopeConstraint")
		Web.Name = "Silk"
		Web.Length = (humrp.Position - BuildingAttachment.WorldPosition).Magnitude
		Web.Visible = true
		Web.Color = BrickColor.new("Really black")
		Web.Thickness = 0.15
		Web.Restitution = 1
		Web.Parent = humrp
		Web.Attachment0 = game.Workspace.Att
		Web.Attachment1 = BuildingAttachment
	end
end
1 Like

you’re still having the building as the attachment1

edit: one more thing you want the rope to cast from the left hand or right hand?

1 Like

try this one:

Web.Attachment0 = BuildingAttachment
Web.Attachment1 = LeftGripAttachment

edit: oops this new one xD

2 Likes

Im using R6 model for dis onee

1 Like

i tried it on a R6 Rig and It Took A little bit to get to the wall this time but on soulder attachment
Edit: It worked on left grip too

2 Likes

did you made the character variable?

1 Like

ye i made the character variable

2 Likes

can you show it to me? 30 char

1 Like
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

--// Arm Stuff
local LeftArm = char:WaitForChild("Left Arm")
local RightArm = char:WaitForChild("Right Arm")

local webShooterR = RightArm:WaitForChild("webShooterR")
local webShooterL = LeftArm:WaitForChild("webShooterL")

local RightArmAttachment = RightArm:WaitForChild("AttachRight")
local LeftArmAttachment = LeftArm:WaitForChild("AttachLeft")
----------------------------------------------------------------------


function WebShoot(hit,target)
	if target == nil then return end
	if hit == nil then return end
	if target.Name == "Building" then
		game.Workspace.Sling:Play()
		print("We can attach to this surface.")
		---------------- Create Attachment
		local BuildingAttachment = Instance.new("Attachment")
		BuildingAttachment.Name = "buildingAttachment"
		BuildingAttachment.CFrame = target.CFrame:ToObjectSpace(hit)
		BuildingAttachment.Parent = target
		BuildingAttachment.Visible = true
		------------------------------------
		local Web = Instance.new("RopeConstraint")
		Web.Name = "Silk"
		Web.Length = (humrp.Position - BuildingAttachment.WorldPosition).Magnitude
		Web.Visible = true
		Web.Color = BrickColor.new("Really black")
		Web.Thickness = 0.15
		Web.Restitution = 1
		Web.Parent = humrp
		Web.Attachment0 = game.Workspace.spiderweb1.Attachment
		Web.Attachment1 = BuildingAttachment
	end
end
1 Like

Well i Changed Your Script A little Bit

local player = game.Players.LocalPlayer or game.Players.PlayerAdded:Wait()
local character = player.Character or player.CharacterAdded:Wait()
local arm = character:WaitForChild("LeftArm"):WaitForChild("LeftGripAttachment")

    function WebShoot(hit,target)
    	if target == nil then return end
    	if hit == nil then return end
    	if target.Name == "Building" then
    		game.Workspace.Sling:Play()
    		print("We can attach to this surface.")
    		---------------- Create Attachment
    		local BuildingAttachment = Instance.new("Attachment")
    		BuildingAttachment.Name = "buildingAttachment"
    		BuildingAttachment.CFrame = target.CFrame:ToObjectSpace(hit)
    		BuildingAttachment.Parent = target
    		BuildingAttachment.Visible = true
    		------------------------------------
    		local Web = Instance.new("RopeConstraint")
    		Web.Name = "Silk"
    		Web.Length = (humrp.Position - BuildingAttachment.WorldPosition).Magnitude
    		Web.Visible = true
    		Web.Color = BrickColor.new("Really black")
    		Web.Thickness = 0.15
    		Web.Restitution = 1
    		Web.Parent = humrp
    		Web.Attachment0 = BuildingAttachment
    		Web.Attachment1 = arm
    	end
    end
1 Like

That still didnt seem to work oof

1 Like

this is soo interesting 30 character

1 Like

I know right like it makes no sense

1 Like

oh gimme a sec i guess i got it

1 Like

Wait what seriously :octopus:
[30 Characters]

1 Like

replace this character variables with your old ones

local player = game.Players.LocalPlayer or game.Players.PlayerAdded:Wait()
local character = player.Character or player.CharacterAdded:Wait()
local arm = character:WaitForChild("Left Arm"):WaitForChild("LeftGripAttachment")
1 Like

if this didn’t worked then we have to use our plan B

1 Like

and make sure the attachment0 is the building and the attachment1 is the arm(the variable)
It’s better to set the parent of the rope to LeftArm

1 Like

It still doesnt seem to be working at all and keeps doing this


1 Like