Is there a way for a server to send a module to a client?

The title says it all. If anyone can help, please do! Thanks!

1 Like

You could require the module, and then fire it to a client with a RemoteEvent. Why do you need to send a module to a client, anyway?

1 Like

Server can parent Server-Side localscripts and modulescripts that are in ServerStorage to a place the client(s) can see.

ReplicatedStorage or the player’s PlayerGui. Depending on if you want to make it accessible to every player or only one.

I’m making a dialog npc and I don’t want hackers to see what the npc will say early

I would recommend you to just handle it all through RemoteEvents. You could change your system so that the client and server both replicate the player’s state in your game, so when a player requests for the dialog of a certain segment of the game, the server will verify, then send the corresponding dialog.