im trying to make a game that you can place builds but i have to make the events again and again for every different build. for this i need to make a function that takes build as input and does everthing inside it with that building but functions cant input objects. how can i do it. pls help