Run it
Copy the script and paste it into your executor.
local player = game.Players.LocalPlayer -- get the player
local workspace = game:GetService("Workspace") -- workspace stuff
-- Function to teleport to a Hitbox in a numbered folder
local function goToHitbox(folderNum)
-- Find the Checkpoints folder inside Map
local map = workspace:FindFirstChild("Map")
if map == nil then
print("Oh no! Map folder not found in Workspace!")
checkpoints = map:()
checkpoints ==
()
folder = checkpoints:((folderNum))
folder
hitbox = folder:()
hitbox hitbox:()
player.Character player.Character:()
player.Character.HumanoidRootPart.CFrame = hitbox.CFrame + .(, , )
( .. folderNum .. )
()
( .. folderNum .. )
( .. folderNum .. )
()
()
i = ,
(i)
()
()
()