Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Variável para controlar o cooldown
- local isCooldown = false
- local cooldownTime = 1 -- Tempo de espera em segundos
- -- Função que executa os quatro scripts fornecidos em sequência
- local function executeScriptsInSequence()
- -- Verifica se ainda está em cooldown
- if isCooldown then
- return
- end
- -- Inicia o cooldown
- isCooldown = true
- -- Executa o comando do DismantleService
- local dismantleArgs = {
- [1] = false
- }
- game:GetService("ReplicatedStorage").Knit.Knit.Services.DismantleService.RE.Activated:FireServer(unpack(dismantleArgs))
- -- Executa o comando do RushService
- local rushArgs = {
- [1] = false
- }
- game:GetService("ReplicatedStorage").Knit.Knit.Services.RushService.RE.Activated:FireServer(unpack(rushArgs))
- -- Executa o comando do FlameArrowService
- local flameArrowArgs = {
- [1] = false
- }
- game:GetService("ReplicatedStorage").Knit.Knit.Services.FlameArrowService.RE.Activated:FireServer(unpack(flameArrowArgs))
- -- Executa o comando do ItadoriService (RightActivated) 3 vezes
- for i = 1, 3 do
- game:GetService("ReplicatedStorage").Knit.Knit.Services.ItadoriService.RE.RightActivated:FireServer()
- task.wait(0.5) -- Pequeno delay entre as execuções para evitar sobrecarga
- end
- -- Aguarda o tempo de cooldown antes de permitir outra execução
- task.wait(cooldownTime)
- isCooldown = false
- end
- -- Função para criar o botão
- local function createButton()
- -- Remove o botão antigo se existir
- if game.Players.LocalPlayer.PlayerGui:FindFirstChild("ExecuteButtonGui") then
- game.Players.LocalPlayer.PlayerGui.ExecuteButtonGui:Destroy()
- end
- -- Criação da interface do botão
- local ScreenGui = Instance.new("ScreenGui")
- local UICorner = Instance.new("UICorner")
- local TextButton = Instance.new("TextButton")
- -- Configurações da interface
- ScreenGui.Name = "ExecuteButtonGui"
- ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- TextButton.Parent = ScreenGui
- TextButton.BackgroundColor3 = Color3.fromRGB(30, 30, 30) -- Cor cinza mais escura
- TextButton.BackgroundTransparency = 0.5 -- Transparência (0.5 = 50% transparente)
- TextButton.Position = UDim2.new(1, -260, 0, 10) -- Posição mais à esquerda
- TextButton.Size = UDim2.new(0, 75, 0, 75) -- Tamanho menor do botão
- TextButton.Text = "Go/Jo" -- Texto no botão
- TextButton.TextColor3 = Color3.fromRGB(255, 255, 255) -- Cor do texto
- TextButton.TextScaled = true -- Escala do texto
- -- Torna o botão redondo
- UICorner.CornerRadius = UDim.new(1, 0)
- UICorner.Parent = TextButton
- -- Função para executar os scripts ao clicar no botão
- TextButton.MouseButton1Click:Connect(function()
- executeScriptsInSequence()
- end)
- end
- -- Conecta a função createButton ao evento CharacterAdded
- game.Players.LocalPlayer.CharacterAdded:Connect(createButton)
- -- Cria o botão pela primeira vez
- createButton()
Advertisement
Add Comment
Please, Sign In to add comment