Ameno__GodOH

World slash jjs

Aug 28th, 2024
394
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.03 KB | None | 0 0
  1. -- Variável para controlar o cooldown
  2. local isCooldown = false
  3. local cooldownTime = 1 -- Tempo de espera em segundos
  4.  
  5. -- Função que executa os quatro scripts fornecidos em sequência
  6. local function executeScriptsInSequence()
  7. -- Verifica se ainda está em cooldown
  8. if isCooldown then
  9. return
  10. end
  11.  
  12. -- Inicia o cooldown
  13. isCooldown = true
  14.  
  15. -- Executa o comando do DismantleService
  16. local dismantleArgs = {
  17. [1] = false
  18. }
  19. game:GetService("ReplicatedStorage").Knit.Knit.Services.DismantleService.RE.Activated:FireServer(unpack(dismantleArgs))
  20.  
  21. -- Executa o comando do RushService
  22. local rushArgs = {
  23. [1] = false
  24. }
  25. game:GetService("ReplicatedStorage").Knit.Knit.Services.RushService.RE.Activated:FireServer(unpack(rushArgs))
  26.  
  27. -- Executa o comando do FlameArrowService
  28. local flameArrowArgs = {
  29. [1] = false
  30. }
  31. game:GetService("ReplicatedStorage").Knit.Knit.Services.FlameArrowService.RE.Activated:FireServer(unpack(flameArrowArgs))
  32.  
  33. -- Executa o comando do ItadoriService (RightActivated) 3 vezes
  34. for i = 1, 3 do
  35. game:GetService("ReplicatedStorage").Knit.Knit.Services.ItadoriService.RE.RightActivated:FireServer()
  36. task.wait(0.5) -- Pequeno delay entre as execuções para evitar sobrecarga
  37. end
  38.  
  39. -- Aguarda o tempo de cooldown antes de permitir outra execução
  40. task.wait(cooldownTime)
  41. isCooldown = false
  42. end
  43.  
  44. -- Função para criar o botão
  45. local function createButton()
  46. -- Remove o botão antigo se existir
  47. if game.Players.LocalPlayer.PlayerGui:FindFirstChild("ExecuteButtonGui") then
  48. game.Players.LocalPlayer.PlayerGui.ExecuteButtonGui:Destroy()
  49. end
  50.  
  51. -- Criação da interface do botão
  52. local ScreenGui = Instance.new("ScreenGui")
  53. local UICorner = Instance.new("UICorner")
  54. local TextButton = Instance.new("TextButton")
  55.  
  56. -- Configurações da interface
  57. ScreenGui.Name = "ExecuteButtonGui"
  58. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  59.  
  60. TextButton.Parent = ScreenGui
  61. TextButton.BackgroundColor3 = Color3.fromRGB(30, 30, 30) -- Cor cinza mais escura
  62. TextButton.BackgroundTransparency = 0.5 -- Transparência (0.5 = 50% transparente)
  63. TextButton.Position = UDim2.new(1, -260, 0, 10) -- Posição mais à esquerda
  64. TextButton.Size = UDim2.new(0, 75, 0, 75) -- Tamanho menor do botão
  65. TextButton.Text = "Go/Jo" -- Texto no botão
  66. TextButton.TextColor3 = Color3.fromRGB(255, 255, 255) -- Cor do texto
  67. TextButton.TextScaled = true -- Escala do texto
  68.  
  69. -- Torna o botão redondo
  70. UICorner.CornerRadius = UDim.new(1, 0)
  71. UICorner.Parent = TextButton
  72.  
  73. -- Função para executar os scripts ao clicar no botão
  74. TextButton.MouseButton1Click:Connect(function()
  75. executeScriptsInSequence()
  76. end)
  77. end
  78.  
  79. -- Conecta a função createButton ao evento CharacterAdded
  80. game.Players.LocalPlayer.CharacterAdded:Connect(createButton)
  81.  
  82. -- Cria o botão pela primeira vez
  83. createButton()
Advertisement
Add Comment
Please, Sign In to add comment