How could client detect OnServerEvent?

Hello, i would like to know if there is a way to detect OnServerEvent on a local script whitout having to send signal back from the server or using the OnServerEvent event because it don’t works.

Server to client is OnClientEvent.

I know but i need to be able to detect with a local script when another local script calls a remote(OnServerEvent) so i could prevent exploits.

Clients can’t communicate to other clients using remote events.

1 Like

It’s basically impossible, no way to do it.

And your idea could be exploited anyway as they can replace your localscript with a malicious one

1 Like

Then i will use the classic way of doing it. When the server receives the event it fire the client which checks if it has fired the remote. If not then i will kick the player.

If the base idea worked i would not be hard to make a small system which make undeletable scripts.

Well, could you explain the system then?

But the answer is already here, it’s impossible without the server sending the remote again.

1 Like

The system is explained in the solution.

Well, it’s not so hard to bypass the system.

script.Parent.DescendantAdded:Connect(function(desc)
if desc:IsA("LocalScript") then
desc:Destroy()
end
end)