can you send the full script? 30 characters
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
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?
try this one:
Web.Attachment0 = BuildingAttachment
Web.Attachment1 = LeftGripAttachment
edit: oops this new one xD
Im using R6 model for dis onee
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
did you made the character variable?
ye i made the character variable
can you show it to me? 30 char
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
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
That still didnt seem to work oof
this is soo interesting 30 character
I know right like it makes no sense
oh gimme a sec i guess i got it
Wait what seriously
[30 Characters]
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")
if this didn’t worked then we have to use our plan B
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