My game contains blood which is not allowed on Xbox. I want to make it Xbox compatible but I would need to disable blood for Xbox clients or get rid of blood for everyone.
I used this before for my game:
local UserInputService = game:GetService("UserInputService")
local GuiService = game:GetService("GuiService")
function getPlatform()
if (GuiService:IsTenFootInterface()) then
return "Console"
elseif (UserInputService.TouchEnabled and not UserInputService.MouseEnabled) then
local DeviceSize = workspace.CurrentCamera.ViewportSize
if (DeviceSize.Y > 600) then
return "Mobile (tablet)"
else
return "Mobile (phone)"
end
else
return "Desktop"
end
end
print(getPlatform())
1 Like