MaxproGlitcher

Checkpoint Advance System

Jan 19th, 2026
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1.  
  2. local num = 0
  3.  
  4. local start = true -- editable
  5.  
  6. local delay = .3 -- editable
  7.  
  8. local checkpointstart = 1 -- editable
  9.  
  10. if start then
  11. local process = game.Players.LocalPlayer:FindFirstChild("checkpointaa") or Instance.new("BoolValue", game.Players.LocalPlayer)
  12. process.Name = "checkpointaa"
  13. process.Value = true
  14. num = (checkpointstart - 1) or 0
  15. while task.wait(delay) do
  16. if not process or not process.Value then return end
  17. num += 1
  18. local folder = game.Workspace:FindFirstChild("Checkpoints") or game.Workspace:FindFirstChild("Checkpoint") or game.Workspace:FindFirstChild("Stages")
  19. if not folder then
  20. pcall(function()
  21. game.Players.LocalPlayer.Character:MoveTo(game.Workspace["Checkpoint"..tostring(num)].Position)
  22. end)
  23. pcall(function()
  24. game.Players.LocalPlayer.Character:MoveTo(game.Workspace[tostring(num)].Position)
  25. end)
  26. else
  27. pcall(function()
  28. if typeof(folder[num]) ~= "Model" then
  29. game.Players.LocalPlayer.Character:MoveTo(folder[num].Position)
  30. end
  31. end)
  32. pcall(function()
  33. game.Players.LocalPlayer.Character:MoveTo(folder[num].Spawn.Position)
  34. end)
  35. end
  36. end
  37. else
  38. game.Players.LocalPlayer:FindFirstChild("checkpointaa").Value = false
  39. end
Advertisement
Add Comment
Please, Sign In to add comment