You can use one script to interact with multiple objects in your game. But of course, you will need to reference them.
You may not be able to implement this into your script, but it is because I have no idea what your script looks like.
In this example here I used a for loop to get (or reference I think) the blocks that are the platform for a Spleef game.
08 | local function activateSpleefPlatform() |
09 | for _, child in pairs (spleefPlatform:GetChildren()) do |
11 | if not child:IsA( "BasePart" ) then return end |
12 | local spleefPlatformBlock = child |
16 | spleefPlatformBlock.Touched:Connect( function (partHit) |
22 | activateSpleefPlatform() |
For more information about for loops, go to this link: https://developer.roblox.com/en-us/articles/Loops