Heyo,
So I had a question can I see what script fired a remote, let me explain.
local script: fires a remote using :FireServer()
Other script: Gets what script specifically fired the remote event the “origin” or at least what part of the game it came from such as replicated storage.
You could pass script:GetFullName() through the remote as a paremeter.
-- Server
Remote.OnServerEvent:Connect(function(Player, ScriptFullName)
print(ScriptFullName)
end)
-- Local
Remote:FireServer(script:GetFullName())
As far as your game goes, you should already know what scripts are firing what remotes and when. If there is a specific reason that you want to do this for your own code then you could even goes as far to create a special parameter that each script passes through separately.
local Identifier = "KillScript" -- You would change this to suit your needs
Remote:FireServer(Identifier)
If you are doing this to see what script :FireServer() is coming from due to exploiting issues then I wouldn’t really go any further. Just secure the .OnServerEvent() portion
Just out of curiosity, why is it necessary for you to know what script an invocation came from? What’s your use case? Not only should you predictably know where the invocations come from already as pointed out in the above post but it seems like you’re trying to rely on the script for something you shouldn’t like security purposes.