Is it possible to Find out if a player is playing on XBOX?

ok so i am making a game right? it has blood which is switchable in the Main Menu settings.
but since roblox got guidelines saying that a game cant be on XBOX when it has blood.
so i want to know if its possible to find out if a player’s playin on XBOX, i need this so i can do it like this

if a player is on XBOX, Blood is FORCED OFF

i only want to know how to find out if a player is playing on xbox, i dont need an entire scrpit that’ll force it off, i really just want to know how to find out if a player’s playin on xbox alright?
Thank you for reading this, please reply

1 Like

Only consoles have the ten-foot interface:

-- from the client of course
local GuiService = game:GetService("GuiService")

This is the only guaranteed way of verifying whether a player is on console, as stated in the API reference.


You can use UserInputService… Something like this

local uis = game:GetService("UserInputService")

if uis.GamepadEnabled == true then

   --your code here


   -- your code here

1 Like

i dont want it to be forced on just cause a user is using a gamepad…

i’ll check that out right away, ima try it right now!

so i have to write like somethjing like:

local GuiService = game:GetService("GuiService")

-- some parts of the script

if GuiService:IsTenFootInterface()) then --script
1 Like

Yep. GuiService:IsTenFootInterface() returns a boolean (true if the player is on console and false if not). The if x then will run if x evaluates to true (literally every value except false and nil in Lua).


ok thank you , ima try it out now and then i will mark his reply as solution!

Edit: Forgot this existed someone liked a comment or whatever today so i rememebred