Help on making a Party System for a dungeon game

So I’ve been upset with BucketHead for not updating Undertale Dungeons, I’ve thought about making a remake myself. But there is one problem, I don’t know how to make a party system that is similar to their system! Please any help would be nice on educating me on how to make a party system!

Edit 1 : Sorry if I’m asking for too much, I have the teleport script done. It’s just the party system.
Edit 2 : I’ve tried making it, but I think my little ol’ brain can’t handle this!
Edit 3: And, the system I made is really bad :frowning: