PhoenixPlayzYT

Phoenix Universal GUI V2.1

Apr 19th, 2025
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.46 KB | None | 0 0
  1. -- Load Rayfield GUI
  2. local Rayfield = loadstring(game:HttpGet('https://raw.githubusercontent.com/shlexware/Rayfield/main/source'))()
  3.  
  4. -- Creating the Rayfield window
  5. local window = Rayfield:CreateWindow({
  6. Name = "Phoenix Universal GUI",
  7. LoadingTitle = "Loading...",
  8. LoadingSubtitle = "Initializing...",
  9. ConfigurationSaving = {
  10. Enabled = true,
  11. FolderName = "PhoenixUniversal",
  12. FileName = "Settings"
  13. }
  14. })
  15.  
  16. -- Tabs creation
  17. local mainTab = window:CreateTab("Main", 4483362458) -- Main tab
  18. local settingsTab = window:CreateTab("Settings", 4483362458) -- Settings tab
  19.  
  20. -- Variables
  21. local flying = false
  22. local speed = 16
  23. local noclip = false
  24. local espActive = false
  25.  
  26. -- UI Elements: Main Tab
  27.  
  28. -- Teleport to player dropdown
  29. local playerDropdown = mainTab:CreateDropdown({
  30. Name = "Select Player",
  31. List = {},
  32. Default = "Select Player",
  33. Callback = function(playerName)
  34. -- Teleport action (to the selected player)
  35. local targetPlayer = game.Players:FindFirstChild(playerName)
  36. if targetPlayer and targetPlayer.Character then
  37. local targetPosition = targetPlayer.Character.PrimaryPart.Position
  38. game.Players.LocalPlayer.Character:SetPrimaryPartCFrame(CFrame.new(targetPosition))
  39. end
  40. end
  41. })
  42.  
  43. -- Fill the dropdown with player names
  44. game.Players.PlayerAdded:Connect(function(player)
  45. playerDropdown:Add(player.Name)
  46. end)
  47.  
  48. -- Fly Button
  49. mainTab:CreateButton({
  50. Name = "Toggle Fly",
  51. Callback = function()
  52. flying = not flying
  53. local bodyGyro = Instance.new("BodyGyro")
  54. bodyGyro.MaxTorque = Vector3.new(400000, 400000, 400000)
  55. bodyGyro.CFrame = game.Players.LocalPlayer.Character.PrimaryPart.CFrame
  56. bodyGyro.Parent = game.Players.LocalPlayer.Character.PrimaryPart
  57.  
  58. local bodyVelocity = Instance.new("BodyVelocity")
  59. bodyVelocity.MaxForce = Vector3.new(400000, 400000, 400000)
  60. bodyVelocity.Velocity = Vector3.new(0, 0, 0)
  61. bodyVelocity.Parent = game.Players.LocalPlayer.Character.PrimaryPart
  62.  
  63. game:GetService("RunService").Heartbeat:Connect(function()
  64. if flying then
  65. bodyVelocity.Velocity = workspace.CurrentCamera.CFrame.LookVector * speed
  66. else
  67. bodyGyro:Destroy()
  68. bodyVelocity:Destroy()
  69. end
  70. end)
  71. end
  72. })
  73.  
  74. -- Speed Button
  75. mainTab:CreateSlider({
  76. Name = "Speed Slider",
  77. Min = 16,
  78. Max = 500,
  79. Default = 16,
  80. Increment = 1,
  81. Callback = function(value)
  82. speed = value
  83. end
  84. })
  85.  
  86. -- Noclip Button
  87. mainTab:CreateButton({
  88. Name = "Toggle Noclip",
  89. Callback = function()
  90. noclip = not noclip
  91. if noclip then
  92. game.Players.LocalPlayer.Character.PrimaryPart.CanCollide = false
  93. else
  94. game.Players.LocalPlayer.Character.PrimaryPart.CanCollide = true
  95. end
  96. end
  97. })
  98.  
  99. -- ESP Button
  100. mainTab:CreateButton({
  101. Name = "Toggle ESP",
  102. Callback = function()
  103. espActive = not espActive
  104. if espActive then
  105. for _, player in pairs(game.Players:GetPlayers()) do
  106. if player ~= game.Players.LocalPlayer then
  107. local box = Instance.new("BoxHandleAdornment")
  108. box.Size = Vector3.new(2, 5, 2)
  109. box.Adornee = player.Character
  110. box.Color3 = Color3.fromRGB(255, 0, 0)
  111. box.Parent = game.Workspace
  112. box.AlwaysOnTop = true
  113. end
  114. end
  115. else
  116. -- Clean up ESP when disabled
  117. for _, box in pairs(game.Workspace:GetChildren()) do
  118. if box:IsA("BoxHandleAdornment") then
  119. box:Destroy()
  120. end
  121. end
  122. end
  123. end
  124. })
  125.  
  126. -- UI Elements: Settings Tab
  127.  
  128. -- Minimize Button (Toggle between hiding and showing the window)
  129. settingsTab:CreateButton({
  130. Name = "Minimize GUI",
  131. Callback = function()
  132. if window:IsVisible() then
  133. window:Hide()
  134. else
  135. window:Show()
  136. end
  137. end
  138. })
  139.  
  140. -- Label with Your Name ("Phoenix Universal GUI")
  141. settingsTab:CreateLabel("Phoenix Universal GUI")
  142.  
  143. -- Function to update the player dropdown list when a new player joins
  144. game.Players.PlayerAdded:Connect(function(player)
  145. playerDropdown:Add(player.Name)
  146. end)
  147.  
  148. -- Show the window
  149. window:Show()
  150.  
Advertisement
Add Comment
Please, Sign In to add comment