PhoenixPlayzYT

testing

May 11th, 2025
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.07 KB | None | 0 0
  1. --// Phoenix Admin - Fan-made Infinite Yield Alternative
  2. --// Version 1.3 - Updated Features
  3.  
  4. -- UI Setup
  5. local gui = Instance.new("ScreenGui", game.CoreGui)
  6. gui.Name = "PhoenixAdmin"
  7.  
  8. local main = Instance.new("Frame", gui)
  9. main.Size = UDim2.new(0, 500, 0, 300)
  10. main.Position = UDim2.new(0.25, 0, 0.3, 0)
  11. main.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  12. main.BorderSizePixel = 0
  13. main.Active = true
  14. main.Draggable = true
  15.  
  16. -- Top Bar (with Minimize, Theme, and Clear buttons)
  17. local topBar = Instance.new("Frame", main)
  18. topBar.Size = UDim2.new(1, 0, 0, 25)
  19. topBar.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
  20. topBar.BorderSizePixel = 0
  21. topBar.Position = UDim2.new(0, 0, 0, 0)
  22.  
  23. local minimize = Instance.new("TextButton", topBar)
  24. minimize.Size = UDim2.new(0, 60, 1, 0)
  25. minimize.Position = UDim2.new(1, -180, 0, 0)
  26. minimize.Text = "Minimize"
  27. minimize.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
  28.  
  29. local themeBtn = Instance.new("TextButton", topBar)
  30. themeBtn.Size = UDim2.new(0, 60, 1, 0)
  31. themeBtn.Position = UDim2.new(1, -120, 0, 0)
  32. themeBtn.Text = "Theme"
  33. themeBtn.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
  34.  
  35. local clearBtn = Instance.new("TextButton", topBar)
  36. clearBtn.Size = UDim2.new(0, 60, 1, 0)
  37. clearBtn.Position = UDim2.new(1, -60, 0, 0)
  38. clearBtn.Text = "Clear"
  39. clearBtn.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
  40.  
  41. -- Command Bar
  42. local commandBar = Instance.new("TextBox", main)
  43. commandBar.PlaceholderText = "Enter a command (e.g. fly, kill Player)"
  44. commandBar.Size = UDim2.new(1, -10, 0, 30)
  45. commandBar.Position = UDim2.new(0, 5, 0, 5)
  46. commandBar.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  47. commandBar.TextColor3 = Color3.fromRGB(255, 255, 255)
  48. commandBar.ClearTextOnFocus = false
  49.  
  50. -- Output Console
  51. local output = Instance.new("TextLabel", main)
  52. output.Size = UDim2.new(1, -10, 0, 20)
  53. output.Position = UDim2.new(0, 5, 0, 40)
  54. output.BackgroundTransparency = 1
  55. output.TextColor3 = Color3.fromRGB(255, 255, 255)
  56. output.Text = "Phoenix Admin Loaded"
  57. output.TextXAlignment = Enum.TextXAlignment.Left
  58.  
  59. -- Player List
  60. local playerList = Instance.new("ScrollingFrame", main)
  61. playerList.Position = UDim2.new(0, 5, 0, 70)
  62. playerList.Size = UDim2.new(1, -10, 1, -75)
  63. playerList.CanvasSize = UDim2.new(0, 0, 5, 0)
  64. playerList.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  65. playerList.ScrollBarThickness = 4
  66.  
  67. -- Commands
  68. local Players = game:GetService("Players")
  69. local LocalPlayer = Players.LocalPlayer
  70. local Commands = {}
  71. local viewingPlayer = nil -- Variable for unviewing a player
  72. local carryingPlayer = nil -- Variable for carry player command
  73.  
  74. -- Fly Command
  75. Commands.fly = function()
  76. local char = LocalPlayer.Character
  77. if char then
  78. local humanoid = char:FindFirstChild("Humanoid")
  79. if humanoid and not humanoid:FindFirstChild("Flying") then
  80. local flyPart = Instance.new("Part")
  81. flyPart.Size = Vector3.new(1, 1, 1)
  82. flyPart.Position = char.HumanoidRootPart.Position
  83. flyPart.Anchored = true
  84. flyPart.CanCollide = false
  85. flyPart.Parent = workspace
  86. flyPart.Name = "FlyPart"
  87. humanoid.PlatformStand = true
  88. local bodyPosition = Instance.new("BodyPosition", flyPart)
  89. bodyPosition.MaxForce = Vector3.new(400000, 400000, 400000)
  90. bodyPosition.D = 30
  91. bodyPosition.P = 20000
  92. bodyPosition.Position = char.HumanoidRootPart.Position + Vector3.new(0, 5, 0)
  93.  
  94. local bodyGyro = Instance.new("BodyGyro", flyPart)
  95. bodyGyro.MaxTorque = Vector3.new(400000, 400000, 400000)
  96. bodyGyro.CFrame = char.HumanoidRootPart.CFrame
  97.  
  98. local function flyLoop()
  99. bodyPosition.Position = char.HumanoidRootPart.Position + Vector3.new(0, 5, 0)
  100. bodyGyro.CFrame = char.HumanoidRootPart.CFrame
  101. end
  102. game:GetService("RunService").Heartbeat:Connect(flyLoop)
  103. output.Text = "Fly enabled"
  104. end
  105. end
  106. end
  107.  
  108. -- Unfly Command
  109. Commands.unfly = function()
  110. local char = LocalPlayer.Character
  111. if char then
  112. local humanoid = char:FindFirstChild("Humanoid")
  113. if humanoid then
  114. humanoid.PlatformStand = false
  115. end
  116. for _, part in ipairs(workspace:GetChildren()) do
  117. if part.Name == "FlyPart" then
  118. part:Destroy()
  119. end
  120. end
  121. output.Text = "Fly disabled"
  122. end
  123. end
  124.  
  125. -- Speed Command
  126. Commands.speed = function(args)
  127. local val = tonumber(args[2])
  128. if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") then
  129. LocalPlayer.Character.Humanoid.WalkSpeed = val or 16
  130. output.Text = "Speed set to " .. (val or 16)
  131. end
  132. end
  133.  
  134. -- Teleport Command
  135. Commands.tp = function(args)
  136. local targetName = args[2]
  137. local target = Players:FindFirstChild(targetName)
  138. if target and target.Character and target.Character:FindFirstChild("HumanoidRootPart") then
  139. LocalPlayer.Character:MoveTo(target.Character.HumanoidRootPart.Position)
  140. output.Text = "Teleported to " .. targetName
  141. else
  142. output.Text = "Player not found."
  143. end
  144. end
  145.  
  146. -- Kill Command
  147. Commands.kill = function(args)
  148. local targetName = args[2]
  149. local target = Players:FindFirstChild(targetName)
  150. if target and target.Character and target.Character:FindFirstChild("Humanoid") then
  151. target.Character.Humanoid.Health = 0
  152. output.Text = "Killed " .. targetName
  153. else
  154. output.Text = "Player not found."
  155. end
  156. end
  157.  
  158. -- HeadSit Command
  159. Commands.headsit = function(args)
  160. local targetName = args[2]
  161. local target = Players:FindFirstChild(targetName)
  162. if target and target.Character then
  163. local head = target.Character:FindFirstChild("Head")
  164. if head then
  165. LocalPlayer.Character.HumanoidRootPart.CFrame = head.CFrame + Vector3.new(0, 3, 0) -- Adjusting height
  166. LocalPlayer.Character.Humanoid.Sit = true
  167. output.Text = "Head sitting on " .. targetName
  168. else
  169. output.Text = "Player does not have a head."
  170. end
  171. end
  172. end
  173.  
  174. -- Carry Player Command
  175. Commands.carry = function(args)
  176. local targetName = args[2]
  177. local target = Players:FindFirstChild(targetName)
  178. if target and target.Character and target.Character:FindFirstChild("HumanoidRootPart") then
  179. LocalPlayer.Character.HumanoidRootPart.CFrame = target.Character.HumanoidRootPart.CFrame + Vector3.new(0, 0, 0)
  180. carryingPlayer = target
  181. output.Text = "Carrying " .. targetName
  182. else
  183. output.Text = "Player not found."
  184. end
  185. end
  186.  
  187. -- Command Processing
  188. commandBar.FocusLost:Connect(function(enter)
  189. if enter then
  190. local input = commandBar.Text:lower()
  191. local split = input:split(" ")
  192. local cmd = split[1]
  193. if Commands[cmd] then
  194. pcall(function()
  195. Commands[cmd](split)
  196. end)
  197. else
  198. output.Text = "Unknown command: " .. cmd
  199. end
  200. commandBar.Text = ""
  201. end
  202. end)
  203.  
  204. -- Player List GUI
  205. local function refreshPlayers()
  206. playerList:ClearAllChildren()
  207. for i, plr in ipairs(Players:GetPlayers()) do
  208. if plr ~= LocalPlayer then
  209. local button = Instance.new("TextButton", playerList)
  210. button.Size = UDim2.new(1, -10, 0, 30)
  211. button.Position = UDim2.new(0, 5, 0, (i - 1) * 35)
  212. button.Text = plr.Name
  213. button.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  214. button.TextColor3 = Color3.fromRGB(255, 255, 255)
  215.  
  216. local killBtn = Instance.new("TextButton", button)
  217. killBtn.Size = UDim2.new(0, 50, 0, 20)
  218. killBtn.Position = UDim2.new(1, -155, 0.5, -10)
  219. killBtn.Text = "Kill"
  220. killBtn.BackgroundColor3 = Color3.fromRGB(200, 60, 60)
  221. killBtn.MouseButton1Click:Connect(function()
  222. Commands.kill({ "kill", plr.Name })
  223. end)
  224.  
  225. local tpBtn = Instance.new("TextButton", button)
  226. tpBtn.Size = UDim2.new(0, 50, 0, 20)
  227. tpBtn.Position = UDim2.new(1, -100, 0.5, -10)
  228. tpBtn.Text = "TP"
  229. tpBtn.BackgroundColor3 = Color3.fromRGB(60, 200, 200)
  230. tpBtn.MouseButton1Click:Connect(function()
  231. Commands.tp({ "tp", plr.Name })
  232. end)
  233.  
  234. local viewBtn = Instance.new("TextButton", button)
  235. viewBtn.Size = UDim2.new(0, 50, 0, 20)
  236. viewBtn.Position = UDim2.new(1, -45, 0.5, -10)
  237. viewBtn.Text = "View"
  238. viewBtn.BackgroundColor3 = Color3.fromRGB(120, 120, 255)
  239. viewBtn.MouseButton1Click:Connect(function()
  240. workspace.CurrentCamera.CameraSubject = plr.Character:FindFirstChild("Humanoid") or plr.Character:FindFirstChild("Head")
  241. viewingPlayer = plr
  242. output.Text = "Viewing " .. plr.Name
  243. end)
  244. end
  245. end
  246. end
  247.  
  248. refreshPlayers()
  249. Players.PlayerAdded:Connect(refreshPlayers)
  250. Players.PlayerRemoving:Connect(refreshPlayers)
  251.  
  252.  
Advertisement
Add Comment
Please, Sign In to add comment