Shared script check if running on client or server

Is there a means to be able to check whether a shared script is running on the client or the server?

I have a function which I want accessible to both the client and the server, but I need it to work slightly differently depending on where its running (due to different natives).

Alternatively, if I have to write a separate script, can I export a function on the client and the server with the same name?

I think this will do the trick :slight_smile:
If IsDuplicityVersion return true, its server-side and if its not, its client-side.

1 Like

Appreciated, thank you!

I saw this native but misread the description the first time so had disregarded it.