I have made loops for other things similar to this, but I just need to know the general format for going through each tool in a player's current backpack (not starterpack!) and turning off their "Enabled" property. Thanks in advance.
1 | game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false ) |
This line of code will allow you to disable every tool. You can use this again and set "false" to "true" at any time to re-enable all tools.
I don't get what you mean but maybe this thing will work
1 | local Player = game.Players [ "" ] -- Your player |
2 |
3 | for i, Toolsxd in pairs (Player.Backpack:GetChildren()) do |
4 | if Toolsxd:IsA( "Tool" ) then |
5 | Toolsxd.Enabled = false |
6 | end |
7 | end |