Dragon-Engine
Dragon-Engine copied to clipboard
API for client -> server RemoteEvents is needed
Currently, there is no way to register a service remote event that clients can fire. Usecases include things like character sound replication, custom character state change events, etc. An API method is needed for this. It could look something like DragonEngine:RegisterServiceClientInvokableEvent() or somesuch. This API method would return the generated remote event, which would be parented under a new folder under the service's folder in ReplicatedStorage, called "ClientInvokableEvents" or something similiar. On the client, these events would be stored in the service's table, e.g. AvatarService.ReplicateSound = <RemoteEvent>. From there, a client sided script can fire the event to the server via ServiceName.EventName:FireServer().