Unity Multiplayer Class System

Hi im making a multiplayer game using Photon PUN2 and I want to make a class system that syncs.
But the thing is I have 13 classes I want to implement and creating 13 scripts is not “effective”
how do I make this thingymajigy?

What‘s a „class“? Why do you need to sync them?

If you mean character class as in RPG then start thinking in terms of „data“ and code that operates on that data. The non-changing (immutable) data is defined in a ScriptableObject and needs no synchronization, ie the name of that class and its default traits, starting values, and so forth. Then you have likely once-only mutable data such as the character‘s name, the initial gender and skill choices - those you can sync via Lobby or just an RPC before play begins. The rest (experience, health, etc) should be some form of network variables.Bundle only values together that change together to keep traffic to a minimum.

Then you need one class or system that operates on the data. Rolls dice, applies damage, holds the current inventory and such.

Best to sort out all the data you need and divide it along those lines: immutable, once-only upfront choices, rarely changing (ie level, skill upgrades) and frequently changing (health, mana). Use this to fill your data structures. Keep those separate types from the code that runs game logic and from the code that synchronizes the data. Then you are off to a good start.

PS: Pun2 has long been legacy, there are modern and free systems that may be more suitable. NGO, Fishnet, Photon‘s modern solutions.