Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Load Rayfield
- local Rayfield = loadstring(game:HttpGet("https://sirius.menu/rayfield"))()
- -- Setup Window
- local Window = Rayfield:CreateWindow({
- Name = "Average Phoenix - Universal GUI V2",
- LoadingTitle = "Loading Average Phoenix...",
- ConfigurationSaving = {
- Enabled = false
- }
- })
- local UIS = game:GetService("UserInputService")
- local RS = game:GetService("RunService")
- local Players = game:GetService("Players")
- local Player = Players.LocalPlayer
- local Character = Player.Character or Player.CharacterAdded:Wait()
- local HRP = Character:WaitForChild("HumanoidRootPart")
- -- Main Tab
- local Tab = Window:CreateTab("Main", 4483362458)
- ---------------------
- -- Noclip
- ---------------------
- local noclipEnabled = false
- local noclipConnection
- Tab:CreateToggle({
- Name = "Noclip",
- CurrentValue = false,
- Callback = function(state)
- noclipEnabled = state
- if noclipConnection then noclipConnection:Disconnect() end
- if noclipEnabled then
- noclipConnection = RS.Stepped:Connect(function()
- if Player.Character then
- for _, v in pairs(Player.Character:GetDescendants()) do
- if v:IsA("BasePart") and v.CanCollide then
- v.CanCollide = false
- end
- end
- end
- end)
- end
- end
- })
- ---------------------
- -- Fly (Mobile Compatible)
- ---------------------
- local flying = false
- local flySpeed = 50
- local flyingDirection = Vector3.zero
- local verticalSpeed = 0
- local function flyLoop()
- while flying do
- HRP.Velocity = (HRP.CFrame.LookVector * flyingDirection.Z + HRP.CFrame.RightVector * flyingDirection.X + Vector3.new(0, verticalSpeed, 0)) * flySpeed
- RS.RenderStepped:Wait()
- end
- end
- Tab:CreateToggle({
- Name = "Fly (WASD + E/Q) or Mobile Controls",
- CurrentValue = false,
- Callback = function(state)
- flying = state
- if flying then
- spawn(flyLoop)
- else
- HRP.Velocity = Vector3.zero
- flyingDirection = Vector3.zero
- verticalSpeed = 0
- end
- end
- })
- UIS.InputBegan:Connect(function(input, gameProcessed)
- if gameProcessed then return end
- if input.KeyCode == Enum.KeyCode.W then flyingDirection = Vector3.new(flyingDirection.X, 0, -1) end
- if input.KeyCode == Enum.KeyCode.S then flyingDirection = Vector3.new(flyingDirection.X, 0, 1) end
- if input.KeyCode == Enum.KeyCode.A then flyingDirection = Vector3.new(-1, 0, flyingDirection.Z) end
- if input.KeyCode == Enum.KeyCode.D then flyingDirection = Vector3.new(1, 0, flyingDirection.Z) end
- if input.KeyCode == Enum.KeyCode.E then verticalSpeed = 1 end
- if input.KeyCode == Enum.KeyCode.Q then verticalSpeed = -1 end
- end)
- UIS.InputEnded:Connect(function(input)
- if input.KeyCode == Enum.KeyCode.W or input.KeyCode == Enum.KeyCode.S then flyingDirection = Vector3.new(flyingDirection.X, 0, 0) end
- if input.KeyCode == Enum.KeyCode.A or input.KeyCode == Enum.KeyCode.D then flyingDirection = Vector3.new(0, 0, flyingDirection.Z) end
- if input.KeyCode == Enum.KeyCode.E or input.KeyCode == Enum.KeyCode.Q then verticalSpeed = 0 end
- end)
- UIS.TouchStarted:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.Touch then
- local touchPos = input.Position
- if touchPos.X < 100 then
- flyingDirection = Vector3.new(-1, 0, 0)
- elseif touchPos.X > 100 then
- flyingDirection = Vector3.new(1, 0, 0)
- end
- end
- end)
- -- Add additional categories
- local AnimationTab = Window:CreateTab("Animation Tester", 4483362458)
- local animations = {
- {Name = "Stylish", ID = 282574440},
- {Name = "Zombie", ID = 616088211},
- {Name = "Cartoony", ID = 742637544},
- {Name = "Levitation", ID = 616128201},
- {Name = "Ninja", ID = 656119721},
- {Name = "Toy", ID = 782841498},
- {Name = "Elder", ID = 845398858},
- {Name = "Bubbly", ID = 910004836},
- {Name = "Werewolf", ID = 1083195517},
- {Name = "Robot", ID = 616088211},
- {Name = "Pirate", ID = 531982821},
- {Name = "Knight", ID = 657441205}
- }
- for _, anim in ipairs(animations) do
- AnimationTab:CreateButton({
- Name = anim.Name,
- Callback = function()
- local humanoid = Player.Character:FindFirstChildOfClass("Humanoid")
- if humanoid then
- local animObj = Instance.new("Animation")
- animObj.AnimationId = "rbxassetid://" .. anim.ID
- local animTrack = humanoid:LoadAnimation(animObj)
- animTrack:Play()
- end
- end
- })
- end
Advertisement
Add Comment
Please, Sign In to add comment