Add script to part and run it

I have a main script that created a new BasePart. On every basepart i want to add a premade script that executes when it was “assigned” or moved to an object. so i create the object, add a clone of the script to this object, execute a start function or sth in this cloned script and then it moves the object to a location. how can i do that?

You set Enabled = False in the Script, then when the object is create do this:

local ClonedScript = (your script location):Clone()
ClonedScript.Enabled = true
ClonedScript.Parent = [your obj]

It should run at the time you clone it, and placed below the basepart