This is a VRChat UdonSharp script that lets players duplicate a GameObject when they interact with the object the script is on.
What it does (simple version)
When a player clicks/uses (Interact) the object this script is attached to:
It creates a copy of objectToDuplicate.
Places the copy at spawnPoint (or slightly offset from the original if no spawnPoint is set).
Optionally destroys the copy after autoDestroyTime seconds.
Keeps track of how many copies exist (so it can enforce maxDuplicates).
Comments
How do I get the duplicated objects to sync globally
0