Hey everyone! My friend and I have been working on our game Lucid Lava recently, and we originally made two scripts, one which removes the forcefield on the character when they respawn, and the other instantly respawns the characters when they die. Later on in the development, we decided to remove both of those for gameplay reasons. When we deleted the two scripts, we assumed that the respawn time would go back to normal, and we would get forcefields back. But the exact opposite happened.
Does anyone know why these scripts are still in effect, even though they are deleted? If so, please help me. I am extremely confused.
The scripts might be removed client-sidedly
If you’re testing a blue bar will appear around your screen (this means that it’s client-sided)
You will notice you can see the script server-sidedly, to check this a green bar will appear around your screen.
Press this button to switch from client to server. You can’t do this in Team Test.
@KJry_sI don’t think respawn scripts can be client sided. You do bring up a good point though, if they removed the script from the server during a play test the properties wouldn’t reset and the effects would stay. Never mind, scripts are replicated to the client.
Two things I would recommend checking, force fields can be set with the SpawnLocation.Duration property and respawn time can be set with the Players.RespawnTime property. If you have these properties set to zero it can remove force fields and/or respawn players instantly.