Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Pookie Hub 🥰 by Rayfield
- -- safe fun features only 💖
- local UserInputService = game:GetService("UserInputService")
- local Players = game:GetService("Players")
- local RunService = game:GetService("RunService")
- local LocalPlayer = Players.LocalPlayer
- local Camera = workspace.CurrentCamera
- -- Rayfield UI
- local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()
- local Window = Rayfield:CreateWindow({
- Name = "Pookie Hub 🥰",
- LoadingTitle = "Loading...",
- LoadingSubtitle = "Rayfield UI by ur pookie 💖",
- ConfigurationSaving = { Enabled = true, FolderName = "PookieHub", FileName = "Settings" },
- KeySystem = false,
- })
- local Main = Window:CreateTab("Main", 4483362458)
- local Movement = Window:CreateTab("Movement", 4483362458)
- local Misc = Window:CreateTab("Misc", 4483362458)
- -- STATE
- local FlyEnabled = false
- local FlySpeed = 50
- local NoClipEnabled = false
- local InfJumpEnabled = false
- local SwimEnabled = false
- -- ===== MOVEMENT =====
- Movement:CreateSection("Fly")
- Movement:CreateToggle({
- Name = "Fly",
- CurrentValue = false,
- Flag = "FlyToggle",
- Callback = function(state)
- FlyEnabled = state
- end,
- })
- Movement:CreateSlider({
- Name = "Fly Speed",
- Range = {10, 200},
- Increment = 5,
- CurrentValue = 50,
- Flag = "FlySpeed",
- Callback = function(val)
- FlySpeed = val
- end,
- })
- -- Fly loop
- RunService.RenderStepped:Connect(function()
- if FlyEnabled and LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then
- local hrp = LocalPlayer.Character.HumanoidRootPart
- local cf = Camera.CFrame
- local move = Vector3.new()
- if UserInputService:IsKeyDown(Enum.KeyCode.W) then move += cf.LookVector end
- if UserInputService:IsKeyDown(Enum.KeyCode.S) then move -= cf.LookVector end
- if UserInputService:IsKeyDown(Enum.KeyCode.A) then move -= cf.RightVector end
- if UserInputService:IsKeyDown(Enum.KeyCode.D) then move += cf.RightVector end
- hrp.Velocity = move.Unit * FlySpeed
- end
- end)
- -- ===== NOCLIP =====
- Movement:CreateSection("NoClip")
- Movement:CreateToggle({
- Name = "NoClip",
- CurrentValue = false,
- Callback = function(state)
- NoClipEnabled = state
- end,
- })
- RunService.Stepped:Connect(function()
- if LocalPlayer.Character then
- for _, part in pairs(LocalPlayer.Character:GetDescendants()) do
- if part:IsA("BasePart") then
- part.CanCollide = not NoClipEnabled
- end
- end
- end
- end)
- -- ===== INFINITE JUMP =====
- Movement:CreateSection("Infinite Jump")
- Movement:CreateToggle({
- Name = "Infinite Jump",
- CurrentValue = false,
- Callback = function(state)
- InfJumpEnabled = state
- end,
- })
- UserInputService.JumpRequest:Connect(function()
- if InfJumpEnabled and LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") then
- LocalPlayer.Character.Humanoid:ChangeState("Jumping")
- end
- end)
- -- ===== SWIM =====
- Movement:CreateSection("Swim")
- Movement:CreateToggle({
- Name = "Swim Anywhere",
- CurrentValue = false,
- Callback = function(state)
- SwimEnabled = state
- if SwimEnabled and LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") then
- LocalPlayer.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Swimming)
- end
- end,
- })
- -- ===== MISC =====
- Misc:CreateButton({
- Name = "Respawn",
- Callback = function()
- LocalPlayer:LoadCharacter()
- end,
- })
- Misc:CreateSlider({
- Name = "WalkSpeed",
- Range = {16, 200},
- Increment = 1,
- CurrentValue = 16,
- Callback = function(val)
- if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") then
- LocalPlayer.Character.Humanoid.WalkSpeed = val
- end
- end,
- })
- Misc:CreateSlider({
- Name = "JumpPower",
- Range = {50, 500},
- Increment = 5,
- CurrentValue = 50,
- Callback = function(val)
- if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") then
- LocalPlayer.Character.Humanoid.JumpPower = val
- end
- end,
- })
- -- Keybind to toggle UI
- Main:CreateKeybind({
- Name = "Toggle UI",
- CurrentKeybind = "RightControl",
- HoldToInteract = false,
- Callback = function() Rayfield:Toggle() end,
- })
Advertisement
Add Comment
Please, Sign In to add comment