setSharedEvent is a method defining a shared service event. It is supposed to receive requests sent across all the games.
Client:setSharedEvent(<number> interval, <string> sharedName, <function> callback)
Returns: <Connection> sharedConnection
The callback function should use these arguments:
<string> name, <ANY> data, <number> date
The event is fired with sendShared.
It is a shared service - it will run on every server connected to the token.
Client:setSharedEvent(5, "ShutdownEvent", function(name, data, date) print("Shutdown attempted") print("Name: ", name) print("Data: ", data) print("Date: ", date) end) Client:sendShared("ShutdownEvent", true)