Configurable Checkpoint Asset

Before you can use this asset, I believe you have to get the Rojo plugin. A great tutorial to get that set up really quickly is linked here.

Github page: GitHub - KadeDr/Lua: Lua Documents

Another way to do this is to just copy the code in the assets. The place to parent the object will be in parenthesis. The scripts will be located in this file path:

src/server/init.server.luau (ServerScriptService) (Name this Server) (Script)
src/server/Checkpoints.luau (Server (the script you just added to serverscriptservice)) (Module Script)
src/client/init.client.lua (StarterPlayerScripts) (Name this Client) (Local Script)
src/client/Checkpoints (Client (the script you just added to starterplayerscripts)) (Module Script)

There are some assets you have to import, same rules as last time, here are the filepaths:

src/shared/Checkpoints.rbxmx (workspace)
src/shared/RemoteEvents.rbxmx (Replicated Storage)
Stage.rbxmx (StarterGui)

This checkpoints asset will include the following:

  • Save Checkpoint
  • Checkpoint only saves if the player is living
  • Checkpoint has temp stage, so you can go back/forward
  • Player spawns on temp stage, so they don’t have to teleport back there every time they die
  • Temp stage auto updates when new checkpoint is stepped on
  • Leaderstats

Things I plan to add in the future:

  • Configs module (to adjust settings, like saving, only save if living, etc)
  • Reset Stage
  • Skip Stage
  • Any other community suggestions

Just keep an eye on this forum to keep up on the updates!

2 Likes

The UI included in the package is bare minimum. Basically, there is no design. I left it for you all to create yourself. If you would all like me to create one with more personality, I can, I’m just going to wait till it’s asked for.

And lastly, here is a link to a test place if you all wanna test the checkpoints before going through the hassle.

I added configs for easy editting. I also added a couple other features.

Why I need an external program like Rojo , does it work without this

It should work without the external program. It is just a lot easier to do with rojo.

In my initial message, I gave instructions on how to implement it without the use of rojo. Follow those steps, and it should work fine! If you need any more help, feel free to make another reply.

Hi,
Can you make the test place editable ?

Thanks

Yeah, I’ve gotchu. Sorry for the late reply…

1 Like

How would they get to a check point if they are dead?

Basically, if the player dies before hitting the checkpoint, it doesn’t count, and the player respawns at the previous checkpoint. However, if the player is still living when the checkpoint is touched, the checkpoint is updated. This helps prevent the player dying and their head or something flying onto the next checkpoint and it counting the checkpoint. It should be configurable though, so you can turn that off if you want.

1 Like