Can I create a coroutine that can be seen by both client and server?

I am working on a script that gives players temporary abilities, said abilities are coroutines stored in a dictionary within a moduleScript, with the corresponding keyCode as the key, I am having an issue with it however, since the abilities are supposed to be placed locally in starterPlayer, so only that player has them, I want to replicate those coroutines to the server and then place them in the actual character’s module, so they can do things on the server side.

How do i do this? I am pretty certain of what I have to do save for replicating the coroutines to the server, since they can’t be passed through remoteEvents

I think you almost said it yourself. “replicating the coroutines”

If you put your module in ReplicatedStorage, you can require it in a LocalScript.

Don’t modulescripts only run in the environment they’re called in?

Oh i see what you mean.

I could pass a key to the coroutine in the module so it can also be viewed by the server, since it is being created in a moduleScript, thank you.