Two scripts are still working even though they are deleted

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.

1 Like

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.
image

1 Like

@KJry_s I 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.

1 Like

I meant that the scripts could be deleted client-sidedly.

It seems like it’s being affected by team create, try publishing and disabling team create, then search for the scripts

I have actually tried this solution, but it didn’t work; the scripts were overriding it.

Are the scripts parented to ServerScriptStorage, if they are then when you’re playing you’re unable to see it. Due to you playing client-sidedly.

1 Like

No, they were both in the workplace.