PhoenixPlayzYT

Phoenix Universal GUI

Apr 15th, 2025 (edited)
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.07 KB | Gaming | 0 0
  1. local PhoenixGUI = Instance.new("ScreenGui")
  2. local MainFrame = Instance.new("Frame")
  3. local TitleLabel = Instance.new("TextLabel")
  4. local ToggleButton = Instance.new("TextButton")
  5. local SpeedButton = Instance.new("TextButton")
  6. local EspToggleButton = Instance.new("TextButton")
  7. local FlingToggleButton = Instance.new("TextButton") -- New fling toggle button
  8.  
  9. -- Setup GUI elements
  10. PhoenixGUI.Name = "Phoenix Universal GUI"
  11. PhoenixGUI.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  12. PhoenixGUI.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  13.  
  14. MainFrame.Parent = PhoenixGUI
  15. MainFrame.BackgroundColor3 = Color3.new(1, 7, 6)
  16. MainFrame.BorderColor3 = Color3.new(0, 0, 0)
  17. MainFrame.Size = UDim2.new(0.2, 0, 0.35, 0)
  18. MainFrame.Position = UDim2.new(0.8, 0, 0.4, 0)
  19.  
  20. TitleLabel.Parent = MainFrame
  21. TitleLabel.Text = "Phoenix Universal GUI"
  22. TitleLabel.TextColor3 = Color3.new(1, 1, 1)
  23. TitleLabel.BackgroundTransparency = 1
  24. TitleLabel.Size = UDim2.new(1, 0, 0.15, 0)
  25. TitleLabel.Position = UDim2.new(0, 0, 0.025, 0)
  26.  
  27. ToggleButton.Parent = MainFrame
  28. ToggleButton.Text = "Freeze"
  29. ToggleButton.TextColor3 = Color3.new(1, 1, 1)
  30. ToggleButton.BackgroundColor3 = Color3.new(0, 0, 0)
  31. ToggleButton.Size = UDim2.new(1, 0, 0.2, 0)
  32. ToggleButton.Position = UDim2.new(0, 0, 0.175, 0)
  33.  
  34. SpeedButton.Parent = MainFrame
  35. SpeedButton.Text = "×2 Walk Speed"
  36. SpeedButton.TextColor3 = Color3.new(1, 1, 1)
  37. SpeedButton.BackgroundColor3 = Color3.new(0, 0, 0)
  38. SpeedButton.Size = UDim2.new(1, 0, 0.2, 0)
  39. SpeedButton.Position = UDim2.new(0, 0, 0.375, 0)
  40.  
  41. EspToggleButton.Parent = MainFrame
  42. EspToggleButton.Text = "ESP"
  43. EspToggleButton.TextColor3 = Color3.new(1, 1, 1)
  44. EspToggleButton.BackgroundColor3 = Color3.new(0, 0, 0)
  45. EspToggleButton.Size = UDim2.new(1, 0, 0.2, 0)
  46. EspToggleButton.Position = UDim2.new(0, 0, 0.575, 0)
  47.  
  48. FlingToggleButton.Parent = MainFrame
  49. FlingToggleButton.Text = "Fling"
  50. FlingToggleButton.TextColor3 = Color3.new(1, 1, 1)
  51. FlingToggleButton.BackgroundColor3 = Color3.new(0, 0, 0)
  52. FlingToggleButton.Size = UDim2.new(1, 0, 0.2, 0)
  53. FlingToggleButton.Position = UDim2.new(0, 0, 0.775, 0) -- Adjusted position for new button
  54.  
  55. local LocalPlayer = game.Players.LocalPlayer
  56. local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
  57. local Humanoid = Character:WaitForChild("Humanoid")
  58. local EspEnabled = false
  59. local FlingEnabled = false -- New fling enabled flag
  60. local SpinSpeed = 10 -- Adjust the spin speed as needed
  61.  
  62. local function HandleMovement(state)
  63. local Movement = Character:FindFirstChildOfClass("BasePart") or Character.PrimaryPart
  64.  
  65. if state then
  66. Movement.Anchored = true
  67. Humanoid.WalkSpeed = 0
  68. print("Flying enabled.")
  69. else
  70. Movement.Anchored = false
  71. Humanoid.WalkSpeed = 16
  72. print("Flying disabled.")
  73. end
  74. end
  75.  
  76. local function DrawEsp(player)
  77. local Head = player.Character.Head or player.Character:WaitForChild("Head")
  78. local Torso = player.Character.Torso or player.Character:WaitForChild("Torso")
  79.  
  80. local EspPart = Instance.new("Part")
  81. EspPart.Parent = workspace
  82. EspPart.Anchored = true
  83. EspPart.CanCollide = false
  84. EspPart.Transparency = 1
  85. EspPart.Size = Head.Size + Vector3.new(0.2, 0.2, 0.2)
  86.  
  87. local EspWeld = Instance.new("Weld")
  88. EspWeld.Parent = EspPart
  89. EspWeld.Part0 = Head
  90. EspWeld.Part1 = EspPart
  91. EspWeld.C0 = CFrame.new(0, 0, -0.5)
  92.  
  93. local EspOutline = Instance.new("Lineeu")
  94. EspOutline.Parent = EspPart
  95. EspOutline.Thickness = 3
  96. EspOutline.Color = Color3.new(1, 0, 0)
  97. EspOutline.Material = Enum.Material.Neon
  98.  
  99. local EspBox = Instance.new("SelectionBox")
  100. EspBox.Parent = EspPart
  101. EspBox.Adornee = Head
  102. EspBox.LineThickness = 0.5
  103. EspBox.Color3 = Color3.new(1, 0, 0)
  104. end
  105.  
  106. local function RemoveEsp(player)
  107. local EspPart = workspace:FindFirstChild(player.Name)
  108.  
  109. if EspPart then
  110. EspPart:Destroy()
  111. end
  112. end
  113.  
  114. local function UpdateEsp()
  115. for _, player in ipairs(game.Players:GetPlayers()) do
  116. if player ~= LocalPlayer and EspEnabled then
  117. DrawEsp(player)
  118. elseif player ~= LocalPlayer and not EspEnabled then
  119. RemoveEsp(player)
  120. end
  121. end
  122. end
  123.  
  124. local espConnection
  125. EspToggleButton.MouseButton1Click:Connect(function()
  126. EspEnabled = not EspEnabled
  127.  
  128. if EspEnabled then
  129. espConnection = game:GetService("RunService").Heartbeat:Connect(UpdateEsp)
  130. else
  131. espConnection:Disconnect()
  132. end
  133. end)
  134.  
  135. -- Connect toggle button click event
  136. ToggleButton.MouseButton1Click:Connect(function()
  137. local Movement = Character:FindFirstChildOfClass("BasePart") or Character.PrimaryPart
  138. HandleMovement(Movement.Anchored == false)
  139. end)
  140.  
  141. -- Connect speed button click event
  142. SpeedButton.MouseButton1Click:Connect(function()
  143. local speedState = Humanoid.WalkSpeed == 16
  144. if speedState then
  145. Humanoid.WalkSpeed = 32
  146. else
  147. Humanoid.WalkSpeed = 16
  148. end
  149. end)
  150.  
  151. -- Connect fling toggle button click event
  152. FlingToggleButton.MouseButton1Click:Connect(function()
  153. FlingEnabled = not FlingEnabled
  154. print("Fling enabled: " .. tostring(FlingEnabled))
  155. end)
  156.  
  157. local function SpinCharacter()
  158. local Torso = Character:WaitForChild("Torso")
  159. Torso.CFrame = Torso.CFrame * CFrame.Angles(0, math.rad(SpinSpeed), 0)
  160. end
  161.  
  162. local function FlingPlayer(player)
  163. local Head = player.Character.Head or player.Character:WaitForChild("Head")
  164. local Vector = (LocalPlayer.Character.Head.Position - Head.Position).Unit * 100
  165. Head.Velocity = Vector
  166. end
  167.  
  168. game:GetService("UserInputService").InputBegan:Connect(function(input, gameProcessed)
  169. if not gameProcessed and input.KeyCode == Enum.KeyCode.E and FlingEnabled then
  170. for _, player in ipairs(game.Players:GetPlayers()) do
  171. if player ~= LocalPlayer and player.Character and player.Character:FindFirstChild("Head") then
  172. FlingPlayer(player)
  173. end
  174. end
  175. end
  176. end)
  177.  
  178. game:GetService("RunService").Heartbeat:Connect(function()
  179. if FlingEnabled then
  180. SpinCharacter()
  181. end
  182. end)
  183.  
Advertisement
Add Comment
Please, Sign In to add comment