So basically I have been making a lot of random weapons. And it is all working just fine until now.
I started creating some sickles, everything is the same as the other weapons but its still not attaching the tool to the players character.
Can anyone tell me why?
Add motor6D(Server)
-- Server Script
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
local M6D = Instance.new("Motor6D", char.Torso) -- or the part that you have decieded
M6D.Name = "ToolGrip"
end)
end)
Connect the attachment(client)
local char = script.Parent
char.ChildAdded:Connect(function(child)
if child:IsA("Tool") and child:FindFirstChild("BodyAttach") then
char.Torso.ToolGrip.Part1 = child.BodyAttach
print('Attached to tool!')
else
print('Failed to attach to tool')
warn(child.Name)
end
end)
And yes, it is printing “Attached to tool!”
so can anyone tell me why this could possibly be happening?
More details.
All the parts are welded and have the right Motor6D’s
Its just not attaching it. The parts are not anchored BTW.
The parts are named the right things to function.
I have no idea why this could possibly be happening!