Adding a lot of checkpoints without doing it manually

Hello devs,
I’m trying to add a lot of checkpoints in my cart ride game. I have a progressive bar which shows how far you’re and using checkpoints it advances. Players touch a checkpoint and then they appear more further on progressive bar. There’s a problem I’m facing. There’s tooo many checkpoints needed to be placed so I assume the problem has to be solved using scripts. I tried making my own plugins just to fix this problem. Unfortunately I’ve failed. Help is required.

3 Likes

unfortunately, games cannot be made with laziness. however, I might be able to create a script for you to automatically generate checkpoints

I will need your checkpoint script though, to make sure it fits perfectly

How’s the explorer set up? Also post some images of the cart track

Could you send some images of the cart track and the checkpoint script?

Sorry, I find my own ways how to make a game and I don’t have any other solution so I stick up with my methods. Please don’t make a script where a checkpoints spawns above the plank since there are some planks cut in half (It was done for easier building).

Script for checkpoints:

local array = string.split(script.Parent.Name," ")

script.Parent.Touched:Connect(function(hit)
	if game.Players:GetPlayerFromCharacter(hit.Parent) then
		local player = game.Players:GetPlayerFromCharacter(hit.Parent)
		if player.count.Value < tonumber(array[2]) then
			player.count.Value = tonumber(array[2])
		end
	end
end)

How this works is every checkpoint has its own number 1,2,3… and they are ordered. And each checkpoint has every script like this (script above), when player touches it, script sets a value to player’s value storage. All these numbers exist for progressive bar to move (they use UI position scale divided by total amounts of checkpoints).

1 Like

Explorer simply contains checkpoints and tracks

Image of tracks:


can I see where a checkpoint is

How do you arrange the tracks in workspace? Do you have a part for each brown block? Also, this is necessary to automatically generate checkpoints, so please send ss of explorer.


Checkpoints are above rails. They are stored in workspace.

1 Like


Tracks are models made out of parts.

But these big structures are models made out of tracks.

I have found a way to add a lot of checkpoints without doing it manually.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.