Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Unequip All Tools
- local player = game.Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local backpack = player:WaitForChild("Backpack")
- -- Function to unequip all tools
- local function unequipAllTools()
- for _, tool in ipairs(character:GetChildren()) do
- if tool:IsA("Tool") then
- tool.Parent = backpack -- Move tool back to Backpack
- end
- end
- end
- -- Call the function
- unequipAllTools()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement