Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --// Phoenix Admin - Fan-made Infinite Yield Alternative
- --// Version 1.3 - Updated Features
- -- UI Setup
- local gui = Instance.new("ScreenGui", game.CoreGui)
- gui.Name = "PhoenixAdmin"
- local main = Instance.new("Frame", gui)
- main.Size = UDim2.new(0, 500, 0, 300)
- main.Position = UDim2.new(0.25, 0, 0.3, 0)
- main.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
- main.BorderSizePixel = 0
- main.Active = true
- main.Draggable = true
- -- Top Bar (with Minimize, Theme, and Clear buttons)
- local topBar = Instance.new("Frame", main)
- topBar.Size = UDim2.new(1, 0, 0, 25)
- topBar.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
- topBar.BorderSizePixel = 0
- topBar.Position = UDim2.new(0, 0, 0, 0)
- local minimize = Instance.new("TextButton", topBar)
- minimize.Size = UDim2.new(0, 60, 1, 0)
- minimize.Position = UDim2.new(1, -180, 0, 0)
- minimize.Text = "Minimize"
- minimize.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
- local themeBtn = Instance.new("TextButton", topBar)
- themeBtn.Size = UDim2.new(0, 60, 1, 0)
- themeBtn.Position = UDim2.new(1, -120, 0, 0)
- themeBtn.Text = "Theme"
- themeBtn.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
- local clearBtn = Instance.new("TextButton", topBar)
- clearBtn.Size = UDim2.new(0, 60, 1, 0)
- clearBtn.Position = UDim2.new(1, -60, 0, 0)
- clearBtn.Text = "Clear"
- clearBtn.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
- -- Command Bar
- local commandBar = Instance.new("TextBox", main)
- commandBar.PlaceholderText = "Enter a command (e.g. fly, kill Player)"
- commandBar.Size = UDim2.new(1, -10, 0, 30)
- commandBar.Position = UDim2.new(0, 5, 0, 5)
- commandBar.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
- commandBar.TextColor3 = Color3.fromRGB(255, 255, 255)
- commandBar.ClearTextOnFocus = false
- -- Output Console
- local output = Instance.new("TextLabel", main)
- output.Size = UDim2.new(1, -10, 0, 20)
- output.Position = UDim2.new(0, 5, 0, 40)
- output.BackgroundTransparency = 1
- output.TextColor3 = Color3.fromRGB(255, 255, 255)
- output.Text = "Phoenix Admin Loaded"
- output.TextXAlignment = Enum.TextXAlignment.Left
- -- Player List
- local playerList = Instance.new("ScrollingFrame", main)
- playerList.Position = UDim2.new(0, 5, 0, 70)
- playerList.Size = UDim2.new(1, -10, 1, -75)
- playerList.CanvasSize = UDim2.new(0, 0, 5, 0)
- playerList.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
- playerList.ScrollBarThickness = 4
- -- Commands
- local Players = game:GetService("Players")
- local LocalPlayer = Players.LocalPlayer
- local Commands = {}
- local viewingPlayer = nil -- Variable for unviewing a player
- local carryingPlayer = nil -- Variable for carry player command
- -- Fly Command
- Commands.fly = function()
- local char = LocalPlayer.Character
- if char then
- local humanoid = char:FindFirstChild("Humanoid")
- if humanoid and not humanoid:FindFirstChild("Flying") then
- local flyPart = Instance.new("Part")
- flyPart.Size = Vector3.new(1, 1, 1)
- flyPart.Position = char.HumanoidRootPart.Position
- flyPart.Anchored = true
- flyPart.CanCollide = false
- flyPart.Parent = workspace
- flyPart.Name = "FlyPart"
- humanoid.PlatformStand = true
- local bodyPosition = Instance.new("BodyPosition", flyPart)
- bodyPosition.MaxForce = Vector3.new(400000, 400000, 400000)
- bodyPosition.D = 30
- bodyPosition.P = 20000
- bodyPosition.Position = char.HumanoidRootPart.Position + Vector3.new(0, 5, 0)
- local bodyGyro = Instance.new("BodyGyro", flyPart)
- bodyGyro.MaxTorque = Vector3.new(400000, 400000, 400000)
- bodyGyro.CFrame = char.HumanoidRootPart.CFrame
- local function flyLoop()
- bodyPosition.Position = char.HumanoidRootPart.Position + Vector3.new(0, 5, 0)
- bodyGyro.CFrame = char.HumanoidRootPart.CFrame
- end
- game:GetService("RunService").Heartbeat:Connect(flyLoop)
- output.Text = "Fly enabled"
- end
- end
- end
- -- Unfly Command
- Commands.unfly = function()
- local char = LocalPlayer.Character
- if char then
- local humanoid = char:FindFirstChild("Humanoid")
- if humanoid then
- humanoid.PlatformStand = false
- end
- for _, part in ipairs(workspace:GetChildren()) do
- if part.Name == "FlyPart" then
- part:Destroy()
- end
- end
- output.Text = "Fly disabled"
- end
- end
- -- Speed Command
- Commands.speed = function(args)
- local val = tonumber(args[2])
- if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") then
- LocalPlayer.Character.Humanoid.WalkSpeed = val or 16
- output.Text = "Speed set to " .. (val or 16)
- end
- end
- -- Teleport Command
- Commands.tp = function(args)
- local targetName = args[2]
- local target = Players:FindFirstChild(targetName)
- if target and target.Character and target.Character:FindFirstChild("HumanoidRootPart") then
- LocalPlayer.Character:MoveTo(target.Character.HumanoidRootPart.Position)
- output.Text = "Teleported to " .. targetName
- else
- output.Text = "Player not found."
- end
- end
- -- Kill Command
- Commands.kill = function(args)
- local targetName = args[2]
- local target = Players:FindFirstChild(targetName)
- if target and target.Character and target.Character:FindFirstChild("Humanoid") then
- target.Character.Humanoid.Health = 0
- output.Text = "Killed " .. targetName
- else
- output.Text = "Player not found."
- end
- end
- -- HeadSit Command
- Commands.headsit = function(args)
- local targetName = args[2]
- local target = Players:FindFirstChild(targetName)
- if target and target.Character then
- local head = target.Character:FindFirstChild("Head")
- if head then
- LocalPlayer.Character.HumanoidRootPart.CFrame = head.CFrame + Vector3.new(0, 3, 0) -- Adjusting height
- LocalPlayer.Character.Humanoid.Sit = true
- output.Text = "Head sitting on " .. targetName
- else
- output.Text = "Player does not have a head."
- end
- end
- end
- -- Carry Player Command
- Commands.carry = function(args)
- local targetName = args[2]
- local target = Players:FindFirstChild(targetName)
- if target and target.Character and target.Character:FindFirstChild("HumanoidRootPart") then
- LocalPlayer.Character.HumanoidRootPart.CFrame = target.Character.HumanoidRootPart.CFrame + Vector3.new(0, 0, 0)
- carryingPlayer = target
- output.Text = "Carrying " .. targetName
- else
- output.Text = "Player not found."
- end
- end
- -- Command Processing
- commandBar.FocusLost:Connect(function(enter)
- if enter then
- local input = commandBar.Text:lower()
- local split = input:split(" ")
- local cmd = split[1]
- if Commands[cmd] then
- pcall(function()
- Commands[cmd](split)
- end)
- else
- output.Text = "Unknown command: " .. cmd
- end
- commandBar.Text = ""
- end
- end)
- -- Player List GUI
- local function refreshPlayers()
- playerList:ClearAllChildren()
- for i, plr in ipairs(Players:GetPlayers()) do
- if plr ~= LocalPlayer then
- local button = Instance.new("TextButton", playerList)
- button.Size = UDim2.new(1, -10, 0, 30)
- button.Position = UDim2.new(0, 5, 0, (i - 1) * 35)
- button.Text = plr.Name
- button.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
- button.TextColor3 = Color3.fromRGB(255, 255, 255)
- local killBtn = Instance.new("TextButton", button)
- killBtn.Size = UDim2.new(0, 50, 0, 20)
- killBtn.Position = UDim2.new(1, -155, 0.5, -10)
- killBtn.Text = "Kill"
- killBtn.BackgroundColor3 = Color3.fromRGB(200, 60, 60)
- killBtn.MouseButton1Click:Connect(function()
- Commands.kill({ "kill", plr.Name })
- end)
- local tpBtn = Instance.new("TextButton", button)
- tpBtn.Size = UDim2.new(0, 50, 0, 20)
- tpBtn.Position = UDim2.new(1, -100, 0.5, -10)
- tpBtn.Text = "TP"
- tpBtn.BackgroundColor3 = Color3.fromRGB(60, 200, 200)
- tpBtn.MouseButton1Click:Connect(function()
- Commands.tp({ "tp", plr.Name })
- end)
- local viewBtn = Instance.new("TextButton", button)
- viewBtn.Size = UDim2.new(0, 50, 0, 20)
- viewBtn.Position = UDim2.new(1, -45, 0.5, -10)
- viewBtn.Text = "View"
- viewBtn.BackgroundColor3 = Color3.fromRGB(120, 120, 255)
- viewBtn.MouseButton1Click:Connect(function()
- workspace.CurrentCamera.CameraSubject = plr.Character:FindFirstChild("Humanoid") or plr.Character:FindFirstChild("Head")
- viewingPlayer = plr
- output.Text = "Viewing " .. plr.Name
- end)
- end
- end
- end
- refreshPlayers()
- Players.PlayerAdded:Connect(refreshPlayers)
- Players.PlayerRemoving:Connect(refreshPlayers)
Advertisement
Add Comment
Please, Sign In to add comment