#Can't connect weapon to player's hand with Motor6D

1 messages · Page 1 of 1 (latest)

flat dove
#

Trying to connect a cloned weapon model to a player's hand using Motor6D, but instead of connecting it just falls to the ground. It seems the only way to connect it is by manually connecting it through studio, which is stupid
Code:

-- server
function Local.SetupWeapon(char: Model, weapon: BasePart)
    local limb: BasePart = char:FindFirstChild(`RightHand`)
    local wep = weapon:Clone()
    local motor6d = Instance.new(`Motor6D`)
    
    motor6d.Part0 = weapon
    motor6d.Part1 = limb
    
    wep.Parent = char
    motor6d.Parent = wep
end

I've tried adding waits, tried swapping Part0 and Part1 around, tried setting the C0, makes no difference

#

it's setting the parts properly, but Active is never enabled unless i set the tool again manually through explorer