Platform separation
I recently created a library to separate users from different devices in your game, which is especially useful in competitive games (such as first-person shooters). This was originally created for myself, but I thought I would share it here.
You can get it here: Platform Separation - Roblox
How to use it
Place it in ServerScriptService
and open open PlatformSeparation.config
. You should see something like this:
return {
-- Value is the place ID to be teleported to; set to nil to not separate it
SeparatedDeviceServers = {
Console = 13139484589,
Mobile = 13139489163,
Desktop = nil,
},
}
If you want a device to be in a separate server, have the value of the associated platform index be a place ID within your game. That place should be within your experience (which can be created in the asset manager), and it is recommended that the place is an exact copy of the original one.
For example, if you want desktop and console players to be together, and only want mobile players to be sent to a private area, you could do something like:
return {
-- Value is the place ID to be teleported to; set to nil to not separate it
SeparatedDeviceServers = {
Console = nil,
Mobile = 9823692787,
Desktop = nil,
},
}
That’s all you need to set up!
You should only use this library in experiences with a sufficient player count. Doing otherwise can result in unhealthy engagement and acquisition.
Final notes
I’m open to any feedback and questions about this library; unfair or aggressive feedback will be ignored.
If you want to support me, subscribe to my Patreon for just $1 a month!