My scripts are automatically being deleted

So I am working on a game, right now on the UI but when Im playtesting the game, The scripts are being deleted and a warning is showing up in the output.
Im getting 2 warnings, Too many ScriptInstances being added, deleting Script Instances. and All Script Instances deleted..

This is causing all scripts to not work, How can i fix this issue?
Ive tried reducing and optimising for less no. of scripts but cant get it working.

Currently i have 23 scripts.
image

Are you sure that’s a Roblox issue? I’ve never encountered that and the console output looks like it came from a script of some sorts, look through all the scripts you have on the server??

1 Like

IM pretty sure thats a roblox issue, As when I has around 5-10 scripts the error didnt occur, but when suddenly going over 20 its giving me a warning?
But still il see if its a problem worth looking elsewhere

Go to View → Find and Replace all and search for

warn("Too many ScriptInstances being

If any script pops up, well there’s your culprit

2 Likes

Nope I wasnt able to find that line, But I found the real problem…
Turns out a antivirus plugin I had installed was deleting the scripts.
Welp, Anyways thanks to the people who responded!

Mind sharing the name of the plugin so we can avoid it?

Itl be Mine’s Protection [ANTI-VIRUS] by MinecoIII2. Its a pretty good anti-virus when youre actively looking for virus’es but It causes errors when you have too many scripts loading at once.

My guess is it probably has a script deleter if a too many scripts are loading at the same time as a safe switch?
Anyways that was the reason I was getting that error.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.