Advertisement
probanana

Abyss World Every Checkpoiint

Apr 9th, 2023
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. local LocalPlayer = game:GetService("Players").LocalPlayer
  2. local CheckPoints = game:GetService("Workspace").Map.Ignore.Checkpoints -- > CheckPoints folder
  3. local PositionTable = { -- > Why am i making a table for the positions? Because the part of the CheckPoint does not exist since we didn't render it.
  4. {Vector3.new(-49, 21414, 330), CheckPoints["Checkpoint 0: Temple of the Abyss"]},
  5. {Vector3.new(-11, 21254, -105), CheckPoints["Checkpoint 1: Windmill Town"]},
  6. {Vector3.new(40, 21013, -166), CheckPoints["Checkpoint 2: Moss Underhang"]},
  7. {Vector3.new(-298, 20995, -412), CheckPoints["Checkpoint 3: Worker's Burrow"]},
  8. {Vector3.new(-39, 20780, -595), CheckPoints["Checkpoint 4: Wooded Boundary"]},
  9. {Vector3.new(-81, 20343, -786), CheckPoints["Checkpoint 5: Ruined Umbra"]},
  10. {Vector3.new(-205, 20041, -185), CheckPoints["Checkpoint 6: Root Canal"]},
  11. {Vector3.new(-413, 19797, -498), CheckPoints["Checkpoint 7: Cardinal Spire"]},
  12. {Vector3.new(186, 19421, -79), CheckPoints["Checkpoint 8: Stagnant Pipeworks"]},
  13. {Vector3.new(-411, 19156, -552), CheckPoints["Checkpoint 9: Sprouting Baths"]}}
  14.  
  15. for _, v in ipairs(PositionTable) do
  16. if not LocalPlayer.Checkpoints:FindFirstChild(v[2].Name) then -- > Skip if we already have the CheckPoint unlocked
  17. LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v[1]) -- > We teleport to the location of the CheckPoint
  18. wait(1.5) -- > We wait 1.5 seconds for the game to render
  19. while not LocalPlayer.Checkpoints:FindFirstChild(v[2].Name) do -- > We fire proximity prompt in a loop if we don't have the CheckPoint unlocker
  20. wait()
  21. fireproximityprompt(v[2].Part.ProximityPrompt, (LocalPlayer.Character.HumanoidRootPart.Position - v[1]).Magnitude)
  22. LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v[1])
  23. end
  24. wait()
  25. end
  26. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement