Why does sometimes code work and sometimes it doesn't work?

I have my race game that the finish line is meant to count in the players that finished. Most of the time players that have completed the race are displayed in the tab of winners that pops up.

But in some rare occasions none of the players show up.

I check the print and sometimes the prints show that the player made it but doesn’t show which position they made it in and sometimes it does work. It’s just a bit annoying because I’ve done everything in my part to get it working and now I feel it might be roblox’s fault

2 Likes

It’s pretty much impossible for us to say why it doesn’t work without code, but it almost certainly is not Roblox’s fault. Always assume user error first rather than it being Roblox’s fault.

2 Likes

give me the code and maybe I’ll help

1 Like

You shouldn’t provide A if you are unable to provide B (A being the issue, B being the code.)

In order to help you further, you must include your code.

Maybe you have to switch the code lines so Roblox can understand it.

Also don’t forget to check if you actually have that Object in your game.

If it does not work, maybe try Splitting each code up into different pieces of scripts.