I have 2 level crossing barriers but they need to have a separate button each, but i want to make 1 button do this function.
It should be as easy as taking the two scripts and make them be triggered by the same event.
i.e. If you have a .Touched function that are connected to the same part in both scripts, they will both trigger if you touch that part.