-- Settings local dashDistance = 25 local cooldown = 0.4 local player = game.Players.LocalPlayer local canDash = true -- Try to find the best place to put the UI so it doesn't disappear local parent = nil if gethui then parent = gethui() -- Best for Delta/Mobile elseif game:GetService("CoreGui"):FindFirstChild("RobloxGui") then parent = game:GetService("CoreGui") else parent = player:WaitForChild("PlayerGui") end -- Cleanup old versions if you run the script twice if parent:FindFirstChild("DodgeGui") then parent.DodgeGui:Destroy() end -- Create the UI local screenGui = Instance.new("ScreenGui") screenGui.Name = "DodgeGui" screenGui.Parent = parent screenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling local dashButton = Instance.new("TextButton") dashButton.Name = "MainButton" dashButton.Size = UDim2.new(0, 70, 0, 70) dashButton.Position = UDim2.new(0.5, -35, 0.4, 0) -- Put it right in the MIDDLE so you see it dashButton.BackgroundColor3 = Color3.fromRGB(0, 170, 255) dashButton.BorderSizePixel = 0 dashButton.Text = "DODGE" dashButton.TextColor3 = Color3.new(1, 1, 1) dashButton.Font = Enum.Font.GothamBold dashButton.TextSize = 16 dashButton.Active = true dashButton.Draggable = true -- Built-in Roblox dragging dashButton.Parent = screenGui -- Circle Shape local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(1, 0) corner.Parent = dashButton -- The Dodge Logic dashButton.MouseButton1Click:Connect(function() if not canDash then return end local character = player.Character local hrp = character and character:FindFirstChild("HumanoidRootPart") if hrp then canDash = false dashButton.BackgroundColor3 = Color3.fromRGB(200, 0, 0) -- Turn red -- Flash Step hrp.CFrame = hrp.CFrame * CFrame.new(0, 0, -dashDistance) task.wait(cooldown) dashButton.BackgroundColor3 = Color3.fromRGB(0, 170, 255) -- Turn blue again canDash = true end end) print("SUCCESS: Dodge button should be in the middle of your screen!")