Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Script by mandy_dos_candys
- -- Variável para controlar o cooldown
- local isCooldown = false
- local cooldownTime = 1 -- Tempo de espera em segundos
- -- Variável para controlar o modo de movimentação
- local isMovable = false
- -- Variável para armazenar a posição dos botões
- local savedPositionUppercut
- local savedPositionBlackFlash
- local savedPositionMoveButton
- -- Função que executa o novo script para o Black Flash
- local function executeScript()
- local args = {
- [1] = false
- }
- game:GetService("ReplicatedStorage").Knit.Knit.Services.FocusStrikeService.RE.Activated:FireServer(unpack(args))
- wait(0.32)
- game:GetService("ReplicatedStorage").Knit.Knit.Services.FocusStrikeService.RE.Activated:FireServer(unpack(args))
- end
- -- Função que executa o comando "Up" para qualquer personagem
- local function executeUpForAllCharacters()
- if isCooldown then return end
- isCooldown = true
- local services = game:GetService("ReplicatedStorage").Knit.Knit.Services
- for _, service in pairs(services:GetChildren()) do
- local reService = service:FindFirstChild("RE")
- if reService and reService:FindFirstChild("Activated") then
- local args = {"Up"}
- reService.Activated:FireServer(unpack(args))
- end
- end
- task.wait(cooldownTime)
- isCooldown = false
- end
- -- Função para criar os botões
- local function createButtons()
- local playerGui = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- local existingGui = playerGui:FindFirstChild("UppercutButtonGui")
- if existingGui then
- existingGui:Destroy()
- end
- local ScreenGui = Instance.new("ScreenGui")
- local UICorner = Instance.new("UICorner")
- local ImageButton = Instance.new("ImageButton")
- local MoveButton = Instance.new("TextButton")
- local BlackFlashButton = Instance.new("ImageButton")
- local OverlayImage = Instance.new("ImageLabel")
- local UppercutOverlay = Instance.new("ImageLabel")
- -- Configurações da interface
- ScreenGui.Name = "UppercutButtonGui"
- ScreenGui.Parent = playerGui
- -- Configura o botão Move
- MoveButton.Parent = ScreenGui
- MoveButton.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
- MoveButton.BackgroundTransparency = 0.5
- MoveButton.Position = savedPositionMoveButton or UDim2.new(1, -80, 0, 10) -- Posição inicial do botão Move
- MoveButton.Size = UDim2.new(0, 50, 0, 50)
- MoveButton.Text = "Move: Off"
- MoveButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- MoveButton.TextScaled = true
- -- Configura o botão Black Flash
- BlackFlashButton.Parent = ScreenGui
- BlackFlashButton.BackgroundTransparency = 1
- BlackFlashButton.Position = savedPositionBlackFlash or UDim2.new(1, -150, 0, 10) -- Posição inicial à esquerda do botão Move
- BlackFlashButton.Size = UDim2.new(0, 70, 0, 70)
- BlackFlashButton.Image = "rbxassetid://6256840888"
- BlackFlashButton.ScaleType = Enum.ScaleType.Crop
- BlackFlashButton.AutoButtonColor = false
- OverlayImage.Parent = BlackFlashButton
- OverlayImage.BackgroundTransparency = 1
- OverlayImage.Size = UDim2.new(0.6, 0, 0.6, 0)
- OverlayImage.Position = UDim2.new(0.2, 0, 0.2, 0)
- OverlayImage.Image = "rbxassetid://9918406832"
- OverlayImage.ImageColor3 = Color3.fromRGB(128, 0, 128) -- Alterado para roxo
- UICorner.CornerRadius = UDim.new(1, 0)
- UICorner.Parent = BlackFlashButton
- BlackFlashButton:GetPropertyChangedSignal("Position"):Connect(function()
- savedPositionBlackFlash = BlackFlashButton.Position
- end)
- BlackFlashButton.MouseButton1Click:Connect(function()
- if isCooldown then return end
- isCooldown = true
- executeScript()
- task.wait(cooldownTime)
- isCooldown = false
- end)
- -- Configura o botão Uppercut
- ImageButton.Parent = ScreenGui
- ImageButton.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
- ImageButton.BackgroundTransparency = 1
- ImageButton.Position = savedPositionUppercut or UDim2.new(1, -220, 0, 10) -- Posição inicial à esquerda do botão Black Flash
- ImageButton.Size = UDim2.new(0, 70, 0, 70)
- ImageButton.Image = "rbxassetid://6256840888"
- ImageButton.ScaleType = Enum.ScaleType.Crop
- ImageButton.AutoButtonColor = false
- UppercutOverlay.Parent = ImageButton
- UppercutOverlay.BackgroundTransparency = 1
- UppercutOverlay.Size = UDim2.new(0.6, 0, 0.6, 0)
- UppercutOverlay.Position = UDim2.new(0.2, 0, 0.2, 0)
- UppercutOverlay.Image = "rbxassetid://18428026508"
- UppercutOverlay.ImageColor3 = Color3.fromRGB(255, 255, 255) -- Alterado para branco
- UICorner.CornerRadius = UDim.new(1, 0)
- UICorner.Parent = ImageButton
- ImageButton:GetPropertyChangedSignal("Position"):Connect(function()
- savedPositionUppercut = ImageButton.Position
- end)
- ImageButton.MouseButton1Click:Connect(function()
- executeUpForAllCharacters()
- end)
- -- Função para alternar o modo de movimentação
- MoveButton.MouseButton1Click:Connect(function()
- isMovable = not isMovable
- ImageButton.Draggable = isMovable
- BlackFlashButton.Draggable = isMovable
- MoveButton.Text = isMovable and "Move: On" or "Move: Off"
- end)
- -- Atualiza a posição salva do botão de movimentação
- MoveButton:GetPropertyChangedSignal("Position"):Connect(function()
- savedPositionMoveButton = MoveButton.Position
- end)
- end
- -- Função para verificar se o "Divergent Fist" está presente
- local function checkForDivergentFist()
- local character = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait()
- local movesetFolder = character:WaitForChild("Moveset")
- if movesetFolder:FindFirstChild("Divergent Fist") then
- createButtons()
- end
- end
- -- Conecta as funções ao evento CharacterAdded
- game.Players.LocalPlayer.CharacterAdded:Connect(function()
- -- Recria a interface sempre que o jogador reaparecer
- createButtons()
- end)
- -- Cria os botões pela primeira vez
- createButtons()
Advertisement
Add Comment
Please, Sign In to add comment