Paygammy

Tool Equip Spam

May 17th, 2020
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.35 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. local StarterGui = game:GetService("StarterGui")
  3.  
  4. local LocalPlayer = Players.LocalPlayer
  5. local Mouse = LocalPlayer:GetMouse()
  6. local Character = LocalPlayer.Character
  7. local Humanoid = Character:FindFirstChildOfClass("Humanoid")
  8. local Backpack = LocalPlayer.Backpack
  9.  
  10. StarterGui:SetCore("ChatMakeSystemMessage", {
  11.     Text = "Tool Spammer";
  12.     Color = Color3.new(1,1,1);
  13.     Font = Enum.Font.Cartoon;
  14.     FontSize = Enum.FontSize.Size32;
  15. })
  16. StarterGui:SetCore("ChatMakeSystemMessage", {
  17.     Text = "Created by pingsock";
  18.     Color = Color3.new(.7,.7,.7);
  19.     Font = Enum.Font.Cartoon;
  20.     FontSize = Enum.FontSize.Size28;
  21. })
  22. StarterGui:SetCore("ChatMakeSystemMessage", {
  23.     Text = "Press Q to toggle spam equip!";
  24.     Color = Color3.new(0,1,0);
  25.     Font = Enum.Font.Cartoon;
  26.     FontSize = Enum.FontSize.Size28;
  27. })
  28.  
  29. coroutine.wrap(function()
  30.     while true do
  31.         wait(.5);
  32.         if _G.SpamEquipFunction then
  33.             if not Character:FindFirstChildOfClass("Tool") then
  34.                 for i,v in pairs(Backpack:GetChildren()) do
  35.                     if v:IsA("Tool") then
  36.                         v.Parent = Character
  37.                     end
  38.                 end
  39.             else
  40.                 Humanoid:UnequipTools();
  41.             end
  42.         end
  43.     end
  44. end)();
  45.  
  46. Mouse.KeyDown:Connect(function(Key)
  47.     if Key == ("q") then
  48.         if _G.SpamEquipFunction == false then
  49.             _G.SpamEquipFunction = true;
  50.         else
  51.             _G.SpamEquipFunction = false;
  52.         end
  53.     end
  54. end)
Add Comment
Please, Sign In to add comment