Get where remote events are being called from

I want to be able to get the local script that events are being called from to prevent exploitors. I know it’s possible because I there’s an exploit that does this. How could I make a script like this?

1 Like

You can try passing the script as an argument
remoteEvent:FireServer(script)

1 Like

To add on, please keep in mind that this isn’t safe as the exploiter could just change what script to send inside the arguments.

you could have an unique identifier as an attribute in the script to know if its fake or no

Nope, this is still local on the client.