game.Players.PlayerAdded:Connect(function(plr)
    plr.CharacterAdded:Connect(function(char)

        local humrp = char:WaitForChild("HumanoidRootPart")
        
        char.ChildAdded:Connect(function(child)
            if child:IsA("Tool") then
                local sheathe = child:FindFirstChild("Sheathe")

                local sheatheMotor = Instance.new("Motor6D", humrp)
                sheatheMotor.Name = "SheatheMotor"
                sheatheMotor.Part0 = humrp
                sheatheMotor.Part1 = sheathe

                
            end
        end)
    end)
end)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: