local function EquipTool()
    local backpack = game.Players.LocalPlayer.Backpack]
    for _, tool in ipairs(backpack:GetChildren()) do
        if tool:IsA("Tool") and tool.ToolTip == "Melee" then
            game.Players.LocalPlayer.Character.Humanoid:EquipTool(tool)
        end
    end
end

EquipTool()

Embed on website

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