Universal Script 📌
959 Views
22 Executions

Auto complete all Master Obbies

Universal Script 📌
AreaIsGone
AreaIsGone10 followers
1 year ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Autocompletes all "Master Obbies" obbies

View Raw
local player = game.Players.LocalPlayer
local checkpointsFolder = workspace:WaitForChild("Checkpoints")

local function teleportTo(part)
    local character = player.Character or player.CharacterAdded:Wait()
    local hrp = character:WaitForChild("HumanoidRootPart")
    hrp.CFrame = part.CFrame + Vector3.new(0, 3, 0)
end

local maxCheckpoint = 0
for _, checkpoint in ipairs(checkpointsFolder:GetChildren()) do
    local num = tonumber(checkpoint.Name)
    if num and num > maxCheckpoint then
        maxCheckpoint = num
    end
end

local startStage = 1
local stageStat = player:FindFirstChild("leaderstats")
if stageStat and stageStat:FindFirstChild("Stage") then
    local value = stageStat.Stage.Value
    if typeof(value) == "number" then
        startStage = value
    end
end

for i = startStage, maxCheckpoint do
    local checkpointModel = checkpointsFolder:FindFirstChild(tostring(i))
    if checkpointModel then
        local primaryP = checkpointModel:FindFirstChild("PrimaryP")
        local part = checkpointModel:FindFirstChild("Part")
        local spawn = checkpointModel:FindFirstChild("Spawn")
        local target = (primaryP and primaryP:IsA("BasePart")) and primaryP
            or (part and part:IsA("BasePart")) and part
            or (spawn and spawn:IsA("BasePart")) and spawn
        if target then
            teleportTo(target)
        end
    end
    task.wait(0.1)


Comments

2
Log in to join the conversation. Login
Imnoobee's profile picture
Imnoobee8 months ago

I tried the script it's pretty good! Also can you make the area's script chatbox a loadstring alone?

1
AreaIsGone's profile picture
AreaIsGoneUploader8 months ago

@Imnoobee you can always toggle it off using the button

1

Tags

More universal scripts

See all
Script hub
565
48
Bumped 2 hours ago
Script hub
171.0k
1.4M
Bumped 2 hours ago
Key System
Script hub
16.5k
3.2k
Bumped 4 hours ago
Key System
Paid
Script hub
17.1k
87.0k
Bumped 4 hours ago
Script hub
509
62
Approved 6 hours ago