Run it
Copy the script and paste it into your executor.
local player = game.Players.LocalPlayer -- grab the local player
local workspace = game:GetService("Workspace") -- workspace stuff
-- Function to teleport to a specific checkpoint
local function goToCheckpoint(checkpointNum)
local checkpointFolder = workspace:FindFirstChild("Checkpoints") -- find the folder
if checkpointFolder == nil then
print("Oops! Checkpoints folder not found in Workspace!")
return
end
-- Look for the part named CheckpointX (like Checkpoint1, Checkpoint2, etc.)
local checkpointPart = checkpointFolder:FindFirstChild("Checkpoint" .. checkpointNum)
checkpointPart checkpointPart:()
player.Character player.Character:()
player.Character.HumanoidRootPart.CFrame = checkpointPart.CFrame + .(, , )
( .. checkpointNum .. )
()
( .. checkpointNum .. )
()
()
i = ,
(i)
()
()
()Auto Open Source