Is there a way to know a :Clone() origin?

Hello, im currently trying to find a solution to newly spawned models that have to connect to the server script service and events, to do that my solution was to clone scripts but here my question:

Is there a way to know a :Clone() origin?

hope you have a solution, thanks

-Thanks for reading, elpanlo

You can put an object value inside of the cloned model to keep track of the original item:

local clonedItem = game.ReplicatedStorage.MyItem:Clone()

local originalItem= Instance.new("ObjectValue")
originalItem.Parent = clonedItem
originalItem.Value = game.ReplicatedStorage.MyItem

clonedItem.Parent = workspace
3 Likes