When I open up the tool it works, then when I open it again it doesn't, Can anyone help me?
local Tool = script.Parent --make sure this is a Tool object local player = game.Players.LocalPlayer local char = game.Players.LocalPlayer.Character local arm = {char["Right Arm"]} local weld = Instance.new("Weld", arm[1]) Tool.Equipped:connect(function(Mouse) weld.Part0 = char.Torso weld.Part1 = weld.Parent weld.C1 = CFrame.new(-1.5,0.5,-.5)*CFrame.Angles(math.rad(45),0,0) end) Tool.Unequipped:connect(function(mouse) weld:Destroy() end)
Use Animations instead, they are more efficient, easier to use, and do not break as often as an old arm weld script. https://www.roblox.com/library/144373835/Animation-Editor Try to search up some tutorials or something on how to use it, and you will be able to also animate (assuming you are using a gun because that's what arm weld scripts were usually used for) shooting and reloading easier (and better looking) for example.