Alright so i’m trying to get this attachment to position itself inside of the web shooter I welded to the characters arms, but I’ve tried World Position and CFrame and it doesnt work at all and if the player is moving it’s even worse, I’m not very good with CFrame and that kinds of stuff, hopefully someone can help, Thanks!
In action :
The code
Web.OnServerEvent:Connect(function(plr, hit, letter)
print(hit)
local LeftHand = plr.Character:WaitForChild("Left Arm")
local RightHand = plr.Character:WaitForChild("Right Arm")
local webShooterR = RightHand:WaitForChild("webShooterR")
local webShooterL = LeftHand:WaitForChild("webShooterL")
local function SlingWeb(actualarm,webshooter, ropename, attach1name)
local Attachment0 = Instance.new("Attachment")
Attachment0.Name = attach1name
Attachment0.Visible = true
Attachment0.WorldPosition = actualarm.Position --- Problem
Attachment0.Parent = webshooter
local Rope = Instance.new("RopeConstraint")
Rope.Name = ropename
Rope.Parent = workspace
Rope.Color = BrickColor.new("Institutional white")
Rope.Enabled = true
Rope.Attachment0 = Attachment0
game:GetService("Debris"):AddItem(Rope, 3)
end
if letter == 1 and not Enabled then
Enabled = true
SlingWeb(LeftHand,webShooterL, "LeftWeb", "leftArmAttach")
print("This is the left hand and ".. plr.Name.. " pressed Q.")
end