Server thinks Script is a LocalScript

Looking for errors and found this printed in the server.

twit.PNG

twiot2.PNG

Use DataStore

That is not an answer to the OP. He may decide what kind of storage he is using, I agree with you but not really helpful.

@OP
I have no clue how that happens, what happens if you clone the script ? Or what if you get a new script and copy over the source.

He did ask how to prevent it though, and I believe not using deprecated methods is the best way to prevent errors.

I may switch to datastore later, but I think loadboolean is fine for this use, unless the deprecated method itself is causing the servers’ confusion.

I’ve only seen the error this once. I’ve checked all other servers and don’t see this error anywhere else, and all my prints are confirming that loadboolean is working. Even in the server that error came from.

Maybe it’s a generic error for when you can’t load the boolean; is the boolean possibly nil or not a boolean?

Edit: I’ve decided to make a datastore anyways

I get this error in my Innovation Security Training Facility error logs occasionally. It is caused by the admin script, and it only tracks server errors.

Doesn’t this happen when you use LoadBoolean when the player has left the game already?
I thought it was that or something similar.

You might be on to something. I didn’t know about that. I have it waiting for 1 second, so if they leave or lose connection right away it could do that.

That sounds like the case. The admin we were using (replaced 2 days ago after it broke) may have had that, but the code is closed-source. I never looked to see if it used LoadBoolean like that or not.