Back to Scripts
Moony hub

Moony hub

ScriptBlox
Free

Game: Piggy [ANNIVERSARY QUEST]

43 Views
0 Likes
0 Dislikes
Cheydan673

Cheydan673

offline

Features

collect pages

Script Code

-- Load ForumsLib
local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/xHeptc/forumsLib/main/source.lua"))()
local Forums = Library.new("Moony's Piggy Hub")

-- Sections
local Teleports = Forums:NewSection("Teleports")
local Main = Forums:NewSection("Main")

-- Services
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer

-- =====================
-- PAGE LOCATIONS
-- =====================
local Locations = {
    ["Chapter 1 Pages"] = {
        CFrame.new(51.3424416, 68.2774963, -5.13741493),
        CFrame.new(52.4065323, 81.7923431, -70.1238708),
        CFrame.new(-1.58604562, 54.7923546, -52.1839485),
        CFrame.new(10.3015909, 52.4899864, 17.4741154),
        CFrame.new(29.3242664, 41.9772758, -16.8576488),
        CFrame.new(30.3233261, 29.5870705, -47.9498024)
    }
}

-- =====================
-- DROPDOWN
-- =====================
local PageList = {
    "Chapter 1 Pages",
    "Chapter 2 Pages",
    "Chapter 3 Pages",
    "Chapter 4 Pages",
    "Chapter 5 Pages"
}

local SelectedPage

Teleports:NewDropdown("Collect Book Pages", PageList, function(item)
    SelectedPage = item
end)

-- Separator
Main:Seperator()

-- =====================
-- AUTO TELEPORT BUTTON
-- =====================
Main:NewButton("Collect Selected Pages", function()
    if not SelectedPage then return end
    if not Locations[SelectedPage] then return end

    local char = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
    local hrp = char:WaitForChild("HumanoidRootPart")

    for _, cf in ipairs(Locations[SelectedPage]) do
        hrp.CFrame = cf
        task.wait(0.5) -- wait 0.5 seconds before next teleport
    end
end)

-- =====================
-- DIRECT CHAPTER 1 BUTTON
-- =====================
Main:NewButton("Collect Chapter 1 Pages", function()
    local char = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
    local hrp = char:WaitForChild("HumanoidRootPart")

    for _, cf in ipairs(Locations["Chapter 1 Pages"]) do
        hrp.CFrame = cf
        task.wait(0.5)
    end
end)

Ratings & Reviews

No reviews yet. Be the first to review this script!

Comments (0)

Please login to comment

Login with Discord

Loading comments...