Talk:Galactic Speedway Creator Challenge/@comment-45059826-20200216052606

Question for a better creator than me (so, anyone):

Okay, so I actually made the game like they wanted me to and am currently trying to make it a semi-decent game. But I ran into a bug, and I'm not very good with coding in Lua.

So, if you join a race, get some checkpoints, leave in any way other than closing the game (win, crash, run out of time, press E to leave manually), and join a new race, the checkpoints you got previously remain deactivated. This accumulates over multiple races, with more checkpoints becoming and remaining deactivated as you collect them.

The only exception is pressing E to leave manually, which only makes this bug happen the first race that you do it. Leaving this way after the glitch has already started fixes the glitch and resets all the checkpoints.

Obviously this is an issue with how the script resets the checkpoints. Problem is, I don't know which script handles resetting the checkpoints, and if it's the RemoteEvent "Checkpoints", then I don't know how to access and fix it. Again, I'm not good with Lua. I've been learning it bit by bit just going one line at a time through the codes, but I ran into a roadblock with the RemoteEvents since I can't seem to open them (if there's a way to other than double-clicking them, I don't know how; again I'm new, maybe I'm just being dumb) and thus I can't see what, if anything, is the problem.

If someone has some time to waste looking at the code of Galactic Speedway and figuring out what part of it controls checkpoint resets, I'd really appreciate it. I can probably figure out what to do with the code from there, but I just have no idea what script I should be looking at.

Also, just if you happen to come across it, I also want to add more checkpoints, but apparently if I just duplicate a checkpoint, the player still only has to collect 5 of them to win. If you happen to run across the part of the code that determines how many checkpoints the player has to collect, I'd appreciate if you could also tell me where that is so I can adjust it.

Thanks!