How does BedWars and Dead Rails do Classes/Kits?

So BedWars and Dead Rails both have similar mechanics.

BedWars - Kits
Dead Rails - Classes
(among other games)

I’m super confused on how this works. In BedWars you select a kit, when you join the match, you GET your kit’s items or buffs. This is literally in a different place. How do they do this? I’m specifically working with tools, but this is still rattling my brain.

I’m still fairly new to scripting and this concept of communication between different places really confuses me.

Can someone give me a shove in the right direction, or some example scripts (I’m using proximity points for my class selection. I don’t know if that makes a difference)?

data stores, or teleport service (much less likely)
use datastores tho

1 Like

datastores or memorystores. datastore keys are relevant throughout the universe of your experience. if your key for kits is ‘Player.UserId - Kits’ and u reference it in the other place, it will retrieve t

1 Like

TeleportService allows you to send data to the receiving experience using the TeleportOptions instance. It’s quite literally as simple as passing in data using the SetTeleportData method on a TeleportOptions instance and passing that through TeleportAsync.

1 Like

Oh, thanks! I’ll try scripting it now that I have an idea of how it works.

@1kaelen1, @Lightning_Game27 and @Negativize, thanks for the help! If anyone wants to still reply to this topic, you can. If you have additional information to share.

1 Like