Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Random parts of Local script stop working on Respawn?!

Asked by 4 years ago

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

you have to test it with at least two players. You need to score a platform with one player then stand on it with the other player. This will kill the second player. On respawn, the tiles don't light up as they should, or the keep on at the spot where the character died.

The code that controls the platforms lighting up is on a local script inside StarterCharacterScripts. The thing that is odd about this, is that on respawn random parts of the local script stop working (tiles don't light up), but parts do (cubes do light up) I can post the code if requried.

Is there some sort of cleaning up required when humanoid dies? Thanks.

0
You first need to debug your code to at least identify which part of the script is causing the issue. I would then create a new post with that info User#5423 17 — 4y

Answer this question