问题
I have a question concerning a Roblox game. The game works fine until a character dies. Then, random parts of the local script stop working. It's too long to explain so here is a link to the game:
https://web.roblox.com/games/4586742374/Times-Tables-Turf-War
If you are interested, walk around the board and look at how the columns and the rows light up. It all works. Then, let your character die. You can do this either by falling of the edge of the board or by standing on an enemy's platform (if you are playing against someone). The easier way is just fall of the edge. When your character respawns, the platforms don't light up any more. This is very strange as it's literally just a chuck of the code that sits on the local script that stops working. Can anyone please explain why this is happening? tx
----UPDATE------
This seems to happen eminently when you are playing against someone and not on your own, so you would have to try it agains someone or simulating many players on a local server.
来源:https://stackoverflow.com/questions/59911595/parts-of-code-of-local-script-randomly-stop-working-on-respawn