Hello, I have a Weld script, but I can't get it to work even when a player hasn't taken it. Is there a way to solve it, allowing the tool to be welded from the start? Also, is it possible to make this script smaller?
I will use this to make guns that can be seen when dropped.
Here's the entire script.
local Gun = script.Parent
local Handle = Gun.Handle
local Body = Gun.Body
local Barrel = Gun.Barrel
function Weld()
local W1 = Instance.new("Weld", Handle)
W1.Part0 = Handle
W1.Part1 = Body
W1.C1 = CFrame.Angles(ANGLE IN RADIANS) * CFrame.new(POSITION IN STUDS)
local W2 = Instance.new("Weld", Handle)
W2.Part0 = Handle
W2.Part1 = Body
W2.C1 = CFrame.Angles(ANGLE IN RADIANS) * CFrame.new(POSITION IN STUDS)
local W3 = Instance.new("Weld", Handle)
W3.Part0 = Handle
W3.Part1 = Barrel
W3.C1 = CFrame.Angles(ANGLE IN RADIANS) * CFrame.new(POSITION IN STUDS)
end
Gun.Equipped:connect(Weld)
Gun.Unequipped:connect(Weld)

1 comment
I'm sorry but I can't get it to work. Does it only work to make 1 weld? Because I need to make 3 welds actually :P