Please look inside at the comments! @crazyweasle123 and I came up with the fix. Please give any suggustions.
@crazyweasle123 thought of the idea, and I added a block that I think would make it work with multiple players, if crazyweasle's script doesn't.