I know this has been answered multiple times, and they all say to use the 10 foot interface thing, but all those posts are old. since roblox released to PS4 maybe PS4’s interface is different and could not work with the 10 foot thing. If you know please tell me if the 10 foot method works for any console or you need to use a different method
2 Likes
Couldnt you just use UserInputService to determine if the user is on console? Also what the hell is the 10 foot interface thing.
local UIS = game:GetService("UserInputService")
if UIS.GamepadEnabled and not UIS.KeyboardEnabled and not UIS.TouchEnabled then
print("Running on a console")
end
1 Like
You can use GuiService to do the job.
local gis = game:GetService("GuiService")
local device = ""
if gis:IsTenFootInterface() then
device = "console"
end
Why I use this code?
Ans : Because it is more accurate than @seelol2782_alt code, you can see his code just detect if player has gamepad or not but I can still connect my controller to my computer and break the UI + PS4 isn’t life so don’t care it too much, just think it is “XBOX”.