Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do we make a image label that changes the image to what device your on?

Asked by 4 years ago

I'm having trouble here while making an overhead gui, the overhead gui is simple itself but this part confuses me how to make it.

I already made 4 images

one for xbox,

one for pc (of course)

one for phone.

one for tablet.

0
I think it's a local script in the image label but I'm confused on what to write. DayLighter_1995 8 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

https://developer.roblox.com/en-us/api-reference/class/UserInputService

You can use UserInputService to figure out if a user has a keyboard plugged in, or if their screen is touchscreen or if they are on Xbox.

There is GamepadEnabled, KeyboardEnabled, TouchEnabled and even VREnabled. There are also many more booleans that are provided here by UserInputService so please check out the link.

Ad

Answer this question