Parts of code of local script randomly stop working on respawn

混江龙づ霸主 提交于 2020-01-26 02:02:09

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!