Is there a way to create a GUI that is only visible to a device? For example, a Tutorial GUI only for xbox. Is there a way to do this? For example in Deathrun there is a GUI that only is visible for Xbox at the bottom.
(I cannot send any screenshot cause I’m on Pc right now.)
2 Likes
M_caw
(Macaw)
June 10, 2020, 2:37am
#2
I think you should instead scale it compared to screen size, but I did a quick search using the search function and found these articles which may help you:
The problem
Players use a variety of input types, including keyboard & mouse, gamepads, and touch. Sometimes we need to change how our game looks so that it matches up with what input the player is providing. For example, we want to show keyboard controls for players using a keyboard, and we want to show gamepad controls for players using a gamepad.
The particular input type a player is providing does not always correspond with the expected device that they are playing on. For example, a PC pl…
So I’m making a survival game, and I need to find out a most reliable way to get what device a player is on. I use MouseEnabled, but I need to know if the players are on a phone or tablet to size a frame’s template I have, or is there a way to make text without textscaled size to 14 if a player’s on a phone, otherwise 20?
I’ve made a similar request in the past, but I’m coming back with a more refined request.
Sometimes it can be very useful to tell what type of device a user is on (such as console, PC, mobile…). However, there is currently no way to explicitly check and see what device the user is on. And so game devs are forced to do hacky tricks to figure out what device the user might be on. I emphasize “might” because it is not a guarantee and there are holes in the logic.
My proposal:
Player.DeviceType …
⸜( ˙ ˘ ˙)
2 Likes
I don’t know about how to detect mobile and PC, but this can detect if a player is on Xbox. GuiService | Documentation - Roblox Creator Hub
2 Likes