PhoenixPlayzYT

Phoenix AFK Hub

Nov 2nd, 2025
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.54 KB | None | 0 0
  1. --// Phoenix AFK Hub - by PhoenixYT
  2. --// Anti-idle + Auto Jump with draggable hub UI
  3. --// Works on mobile executors (and PC too!)
  4.  
  5. -- Services
  6. local Players = game:GetService("Players")
  7. local VirtualUser = game:GetService("VirtualUser")
  8. local CoreGui = game:GetService("CoreGui")
  9. local UIS = game:GetService("UserInputService")
  10.  
  11. -- Globals
  12. local player = Players.LocalPlayer
  13. getgenv().AFK_ENABLED = true
  14. getgenv().AUTOJUMP_ENABLED = false
  15.  
  16. -- Notification helper
  17. local function notify(title, text, duration)
  18. pcall(function()
  19. game.StarterGui:SetCore("SendNotification", {
  20. Title = title;
  21. Text = text;
  22. Duration = duration or 3;
  23. })
  24. end)
  25. end
  26.  
  27. -- Anti-idle
  28. local function antiIdle()
  29. player.Idled:Connect(function()
  30. if getgenv().AFK_ENABLED then
  31. VirtualUser:CaptureController()
  32. VirtualUser:ClickButton2(Vector2.new(0,0))
  33. end
  34. end)
  35. end
  36.  
  37. -- UI Setup
  38. local PhoenixGui = Instance.new("ScreenGui")
  39. local HubFrame = Instance.new("Frame")
  40. local Title = Instance.new("TextLabel")
  41. local AFKButton = Instance.new("TextButton")
  42. local JumpButton = Instance.new("TextButton")
  43. local UICorner = Instance.new("UICorner")
  44.  
  45. PhoenixGui.Name = "PhoenixAFKHub"
  46. PhoenixGui.ResetOnSpawn = false
  47. PhoenixGui.Parent = CoreGui
  48.  
  49. -- Hub Frame
  50. HubFrame.Size = UDim2.new(0, 180, 0, 130)
  51. HubFrame.Position = UDim2.new(0.5, -90, 0.1, 0)
  52. HubFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  53. HubFrame.Active = true
  54. HubFrame.Draggable = true
  55. HubFrame.Parent = PhoenixGui
  56.  
  57. UICorner.CornerRadius = UDim.new(0, 12)
  58. UICorner.Parent = HubFrame
  59.  
  60. -- Title
  61. Title.Size = UDim2.new(1, 0, 0, 30)
  62. Title.BackgroundTransparency = 1
  63. Title.Text = "🔥 Phoenix AFK Hub 🔥"
  64. Title.Font = Enum.Font.GothamBold
  65. Title.TextScaled = true
  66. Title.TextColor3 = Color3.new(1, 1, 1)
  67. Title.Parent = HubFrame
  68.  
  69. -- AFK Button
  70. AFKButton.Size = UDim2.new(0.9, 0, 0, 35)
  71. AFKButton.Position = UDim2.new(0.05, 0, 0.35, 0)
  72. AFKButton.BackgroundColor3 = Color3.fromRGB(0, 170, 0)
  73. AFKButton.Text = "AFK: ON"
  74. AFKButton.TextColor3 = Color3.new(1, 1, 1)
  75. AFKButton.TextScaled = true
  76. AFKButton.Font = Enum.Font.GothamBold
  77. AFKButton.Parent = HubFrame
  78.  
  79. -- Auto Jump Button
  80. JumpButton.Size = UDim2.new(0.9, 0, 0, 35)
  81. JumpButton.Position = UDim2.new(0.05, 0, 0.65, 0)
  82. JumpButton.BackgroundColor3 = Color3.fromRGB(170, 0, 0)
  83. JumpButton.Text = "Auto Jump: OFF"
  84. JumpButton.TextColor3 = Color3.new(1, 1, 1)
  85. JumpButton.TextScaled = true
  86. JumpButton.Font = Enum.Font.GothamBold
  87. JumpButton.Parent = HubFrame
  88.  
  89. -- Mobile drag support
  90. local dragging, dragInput, mousePos, framePos
  91. HubFrame.InputBegan:Connect(function(input)
  92. if input.UserInputType == Enum.UserInputType.Touch then
  93. dragging = true
  94. mousePos = input.Position
  95. framePos = HubFrame.Position
  96. end
  97. end)
  98. HubFrame.InputChanged:Connect(function(input)
  99. if dragging and input.UserInputType == Enum.UserInputType.Touch then
  100. local delta = input.Position - mousePos
  101. HubFrame.Position = UDim2.new(framePos.X.Scale, framePos.X.Offset + delta.X, framePos.Y.Scale, framePos.Y.Offset + delta.Y)
  102. end
  103. end)
  104. UIS.InputEnded:Connect(function(input)
  105. if input.UserInputType == Enum.UserInputType.Touch then
  106. dragging = false
  107. end
  108. end)
  109.  
  110. -- AFK toggle
  111. AFKButton.MouseButton1Click:Connect(function()
  112. getgenv().AFK_ENABLED = not getgenv().AFK_ENABLED
  113. if getgenv().AFK_ENABLED then
  114. AFKButton.BackgroundColor3 = Color3.fromRGB(0, 170, 0)
  115. AFKButton.Text = "AFK: ON"
  116. notify("Phoenix AFK", "AFK mode enabled ✅", 2)
  117. else
  118. AFKButton.BackgroundColor3 = Color3.fromRGB(170, 0, 0)
  119. AFKButton.Text = "AFK: OFF"
  120. notify("Phoenix AFK", "AFK mode disabled ❌", 2)
  121. end
  122. end)
  123.  
  124. -- Auto Jump toggle
  125. JumpButton.MouseButton1Click:Connect(function()
  126. getgenv().AUTOJUMP_ENABLED = not getgenv().AUTOJUMP_ENABLED
  127. if getgenv().AUTOJUMP_ENABLED then
  128. JumpButton.BackgroundColor3 = Color3.fromRGB(0, 170, 0)
  129. JumpButton.Text = "Auto Jump: ON"
  130. notify("Phoenix AFK", "Auto Jump enabled 🟩", 2)
  131. else
  132. JumpButton.BackgroundColor3 = Color3.fromRGB(170, 0, 0)
  133. JumpButton.Text = "Auto Jump: OFF"
  134. notify("Phoenix AFK", "Auto Jump disabled 🟥", 2)
  135. end
  136. end)
  137.  
  138. -- Auto jump loop
  139. task.spawn(function()
  140. while task.wait(1) do
  141. if getgenv().AUTOJUMP_ENABLED and player.Character and player.Character:FindFirstChildOfClass("Humanoid") then
  142. local hum = player.Character:FindFirstChildOfClass("Humanoid")
  143. hum:ChangeState(Enum.HumanoidStateType.Jumping)
  144. end
  145. end
  146. end)
  147.  
  148. -- Start anti-idle
  149. antiIdle()
  150.  
  151. -- Load notification
  152. notify("Phoenix AFK", "Phoenix AFK Hub loaded 🔥", 4)
  153. print("[Phoenix AFK Hub] Loaded successfully.")
Advertisement
Add Comment
Please, Sign In to add comment