Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Load Rayfield GUI
- local Rayfield = loadstring(game:HttpGet('https://raw.githubusercontent.com/shlexware/Rayfield/main/source'))()
- -- Creating the Rayfield window
- local window = Rayfield:CreateWindow({
- Name = "Phoenix Universal GUI",
- LoadingTitle = "Loading...",
- LoadingSubtitle = "Initializing...",
- ConfigurationSaving = {
- Enabled = true,
- FolderName = "PhoenixUniversal",
- FileName = "Settings"
- }
- })
- -- Tabs creation
- local mainTab = window:CreateTab("Main", 4483362458) -- Main tab
- local settingsTab = window:CreateTab("Settings", 4483362458) -- Settings tab
- -- Variables
- local flying = false
- local speed = 16
- local noclip = false
- local espActive = false
- -- UI Elements: Main Tab
- -- Teleport to player dropdown
- local playerDropdown = mainTab:CreateDropdown({
- Name = "Select Player",
- List = {},
- Default = "Select Player",
- Callback = function(playerName)
- -- Teleport action (to the selected player)
- local targetPlayer = game.Players:FindFirstChild(playerName)
- if targetPlayer and targetPlayer.Character then
- local targetPosition = targetPlayer.Character.PrimaryPart.Position
- game.Players.LocalPlayer.Character:SetPrimaryPartCFrame(CFrame.new(targetPosition))
- end
- end
- })
- -- Fill the dropdown with player names
- game.Players.PlayerAdded:Connect(function(player)
- playerDropdown:Add(player.Name)
- end)
- -- Fly Button
- mainTab:CreateButton({
- Name = "Toggle Fly",
- Callback = function()
- flying = not flying
- local bodyGyro = Instance.new("BodyGyro")
- bodyGyro.MaxTorque = Vector3.new(400000, 400000, 400000)
- bodyGyro.CFrame = game.Players.LocalPlayer.Character.PrimaryPart.CFrame
- bodyGyro.Parent = game.Players.LocalPlayer.Character.PrimaryPart
- local bodyVelocity = Instance.new("BodyVelocity")
- bodyVelocity.MaxForce = Vector3.new(400000, 400000, 400000)
- bodyVelocity.Velocity = Vector3.new(0, 0, 0)
- bodyVelocity.Parent = game.Players.LocalPlayer.Character.PrimaryPart
- game:GetService("RunService").Heartbeat:Connect(function()
- if flying then
- bodyVelocity.Velocity = workspace.CurrentCamera.CFrame.LookVector * speed
- else
- bodyGyro:Destroy()
- bodyVelocity:Destroy()
- end
- end)
- end
- })
- -- Speed Button
- mainTab:CreateSlider({
- Name = "Speed Slider",
- Min = 16,
- Max = 500,
- Default = 16,
- Increment = 1,
- Callback = function(value)
- speed = value
- end
- })
- -- Noclip Button
- mainTab:CreateButton({
- Name = "Toggle Noclip",
- Callback = function()
- noclip = not noclip
- if noclip then
- game.Players.LocalPlayer.Character.PrimaryPart.CanCollide = false
- else
- game.Players.LocalPlayer.Character.PrimaryPart.CanCollide = true
- end
- end
- })
- -- ESP Button
- mainTab:CreateButton({
- Name = "Toggle ESP",
- Callback = function()
- espActive = not espActive
- if espActive then
- for _, player in pairs(game.Players:GetPlayers()) do
- if player ~= game.Players.LocalPlayer then
- local box = Instance.new("BoxHandleAdornment")
- box.Size = Vector3.new(2, 5, 2)
- box.Adornee = player.Character
- box.Color3 = Color3.fromRGB(255, 0, 0)
- box.Parent = game.Workspace
- box.AlwaysOnTop = true
- end
- end
- else
- -- Clean up ESP when disabled
- for _, box in pairs(game.Workspace:GetChildren()) do
- if box:IsA("BoxHandleAdornment") then
- box:Destroy()
- end
- end
- end
- end
- })
- -- UI Elements: Settings Tab
- -- Minimize Button (Toggle between hiding and showing the window)
- settingsTab:CreateButton({
- Name = "Minimize GUI",
- Callback = function()
- if window:IsVisible() then
- window:Hide()
- else
- window:Show()
- end
- end
- })
- -- Label with Your Name ("Phoenix Universal GUI")
- settingsTab:CreateLabel("Phoenix Universal GUI")
- -- Function to update the player dropdown list when a new player joins
- game.Players.PlayerAdded:Connect(function(player)
- playerDropdown:Add(player.Name)
- end)
- -- Show the window
- window:Show()
Advertisement
Add Comment
Please, Sign In to add comment