hi, could someone give me a checkpoint system for an chart obby? tysm
Sorry if it’s not the correct category, Idk where to post it
Hey, Just to let you know you are not allowed to ask for scripts on the devforum, read more about it here: About the Scripting Support category
Or you can hire someone to help.
but do you have any control system?
Hm? What do you mean about control system?
well, do you have a stages value inside of the player? It would make it much easier.
no i have nothing, i just put spawn points and clearly they don’t work
alright, well make a checkpoint value inside of the player when they join, have its value as the name of the 1st checkpoint/spawn. Also, do you have a folder for checkpoints?
is there a way you can name the spawnpoints like “checkpoint1” or “1” through however many there are? I know I’m asking a lot, but this would make this the easiest way to do this.
well now i do if you can wait for me
yes, I can wait the whole time.
done, i already listed all the checkpoints, now what do i do?
here is the script I have made, adjust the workspace.Checkpoints
or the player.Checkpoint.Value
if needed:
for i,v in pairs(workspace.Checkpoints:GetChildren()) do
v.Touched:Connect(function(hit)
if game.Players:GetPlayerFromCharacter(hit.Parent) then
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
player.Checkpoint.Value = v.Name
end
end)
end
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
wait()
local checkpoint = workspace.Checkpoints:FindFirstChild(player.Checkpoint.Value)
char.HumanoidRootPart.CFrame = checkpoint.CFrame
end)
end)
where do I have to put this script? sorry, I’m a beginner
It preferably would be inside of serverscriptservice.
oh, I missed a ) at line 7. line 7 should be this: end)
Ready I already put it and tried it but when I reset it sends me to any checkpoint, would I have to put something else?
This is probably because all of them are spawnpoints. Make them just Parts or set the SpawnPoint property of Enabled to false.