I'm trying to weld a gun to my characters hand in a hopperbin. The gun won't appear. This is in a local script.
player = game.Players.LocalPlayer
ra = player.Character:WaitForChild("Right Arm")
Tool = script.Parent
Tool.Selected:connect(function()
local Weld = Instance.new("Weld",script.Parent.Flintlock)
Weld.Part0 = ra
Weld.C0 = ra.CFrame:inverse()
Weld.Part1 = script.Parent.Flintlock
Weld.C1 = script.Parent.Flintlock.CFrame:inverse()
script.Parent.Flintlock.CFrame = ra.CFrame * CFrame.new(0,0,-1)
script.Parent.Flintlock.Anchored = false
end)
