How to force equip a tool (Server)?

Is there a way to force equip tools from the Server side? I’m making a game where you can’t hide your tool by putting it in your backpack. I know you can do so locally, but I’m afraid exploiters might delete that local script and hide their tool.

https://developer.roblox.com/en-us/api-reference/function/Humanoid/EquipTool

You could just call this function, and if you wanted to maybe you could loop through all the Players as well so that it forcefully each shows you what Tool they currently have in their inventory (You can only pick 1 though)

for _, Plr in pairs(game.Players:GetPlayers()) do
    local Char = Plr.Character
    local Backpack = Plr:WaitForChild("Backpack")

    if Char and Char:FindFirstChild("Humanoid") then

        for _, Object in pairs(Backpack:GetChildren()) do
            if Object:IsA("Tool") then
                print(Object)

                Char.Humanoid:EquipTool(Object)
                wait(1)
            end
        end

    end
end

This is just a suggestion though, you don’t have to do it if you don’t wanna :stuck_out_tongue:

1 Like