Advertisement
PedroH6159

ProcessScript.GenerateTool

Jun 9th, 2023
972
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.54 KB | None | 0 0
  1. local function script1()
  2.     {{CODE1}}
  3. end
  4.  
  5. local function script2()
  6.     {{CODE2}}
  7. end
  8.  
  9. local altenancia = {{CODE3}}
  10. local toggle = true
  11.  
  12. local p = game:GetService('Players').{{KSPLOITNAME}}
  13. p.CharacterAdded:Connect(function(c)
  14.     local t = Instance.new("Tool")
  15.     t.Name = "{{toolStripTextBox3}}"
  16.     t.RequiresHandle = false
  17.     t.Activated:Connect(function()
  18.         if altenancia then
  19.             if toggle then
  20.                 script1()
  21.                 toggle = false
  22.             else
  23.                 script2()
  24.                 toggle = true
  25.             end
  26.         else
  27.             script1()
  28.         end
  29.     end)
  30.     t.Parent = p.Backpack
  31. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement