-----------VARIABLES--------------
local player = game.Players.LocalPlayer --The player
local tool = script.Parent --The Hopperbin
local gun = game.Lighting.Flintlock --The gun itself
local ra = player.Character:WaitForChild('Right Arm') --Indentifies right arm for equip
local rl = player.Character:WaitForChild('Right Leg') --Infentifies right leg for unequip
---------MAIN SCRIPT----------------
tool.Selected:connect(function()
gun:Clone(script.Parent)
local w = Instance.new("Weld")
w.Parent = tool:WaitForChild("Flintlock")
w.Part0 = ra
w.Part1 = gun
w.Part1.CFrame = CFrame.new(5,3,17)
end)
The gun doesn't appear in the players Right Arm like I want it to. What can I do to fix it?

1 comment
This is a local script, if FE is enabled. It will not be able to place the tool into Workspace. You will need a remote function somewhere in there.