does anyone know how i can disable the players tools in the lobby
You could do that, but you could also disable the backpack with something like this with a LocalScript:
local SGUI = game:GetService("StarterGui")
SGUI:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false) --// The tools in the backpack are not deleted when you do this
1 Like
This will work for preventing players from selecting new tools, but it won’t unequip any they currently have equipped. It would likely need to be paired with something like this:
for _,player in ipairs(game:GetService("Players"):GetPlayers()) do
local backpack = player:FindFirstChildOfClass("Backpack")
if backpack and player.Character then
local tool
repeat
tool = player.Character:FindFirstChildOfClass("Tool")
if tool then
tool.Parent = backpack
end
until (not tool)
end
end
This block is a little superfluous in that it checks for more than one tool–which shouldn’t happen in normal user-prompted equips/unequips; however multiple tools can be parented to a character via code, so it might be helpful.
1 Like