Shared file

I don’t know if this would make it easier for most devs but it’s on this game that uses lua, they have client, server, and shared. shared is pretty much client and server in one file

You can just add a script to both client and server, as long as the script doesn’t use any client or server specific natives, that will work just fine

2 Likes

You can also use IsDuplicityVersion to see if the script is executing on the server

1 Like