I will initially release my game only for computers and then I will make efforts to adapt it to mobile.
I know that I can disable the mobile option directly in the game settings:
However, I would like to allow the mobile player to join the game so that I can give them a more explanatory message of when the game will be made available for mobile (and exit the game from there).
I know I can detect if a device is mobile via UserInputService.TouchEnabled.
But this apparently only works in LocalScript.
In this way, an exploiter could remove this barrier and allow the player to proceed, even on mobile.
I would like to know if there is a way to detect the device through the Server?
In this way, it would not be possible for an exploiter to interfere.
While technically - you are right, you can just redirect to another place instantly upon detecting that the person is on mobile, where you can put your explanation.
I genuinely have no idea why you would be concerned about an exploiter removing the barrier, I highly doubt that players on mobile will come into your game with exploit to remove your barrier.
I am pretty sure that TouchEnabled affects computers with Touch Screen as well.
A simple idea for that would be to use a RemoteEvent and ask the player (through an UI) if they’re on mobile or PC (or other platform).
I’ve heard that you can also use UserInputService to detect on what platform someone is.