The title says it all, I want to know if it is possible to check which script is calling functions from a modulescript; I want this check to happen within the modulescript itself and without passing arguements through the parameters of the function.
If this is not possible in roblox then could anyone send some articles my way to try re-create this?
Exploiters can only access local scripts. If your local scripts are using a module, you should have checks on the server. For example, if a player clicks a button to open a door on the client, in the module script make sure the player is actually within range to click the button.
I know that type of stuff, To not trust the client, to run checks etc, but i’m just wondering if it’s ever been made possible to check which script is firing a function within a modulescript
FYI, exploits do not need a script instance to run code, so checking for this is pointless. Code can be fed through into the VM and get executed the same way any other client-side code does in your game, which is effectively what an exploit is.
Assuming you’re trying to do this from the client-side, not only can it be bypassed but it’s not providing you any actual security, really. You might get away with a skid exploit or two that actually creates a script instance but that will quickly become a flawed solution. Exploit programs that don’t create scripts at all will remain unaffected by this and you’ll just get back nil.
You should focus on anti-exploit and game security on the server’s end first before adding extra measures. Securing your remotes and game environment is more important than temporary checks.