Does detecting if a player is on mobile break Roblox terms?

So I made a script to detect if a player is on mobile or not. Does this break the terms of Roblox? It only prints to the client so I guess not but would it if it showed to the server?

local players = game:GetService("Players")
local plr = players.LocalPlayer

	local plrGui = plr:WaitForChild('PlayerGui')
	if plrGui:FindFirstChild('TouchGui') then
		print('mobile play')
	else
	print('you are a desktop player')
end

Again it only shows to the client, but if it showed to the server would it?

You can just use TouchEnabled of UserInputService to determine this.

2 Likes

The simple answer is no, here is no such rule in place.

1 Like

You can check if they are on mobile by checking if they have mobile controls.

It does not break roblox terms dw.

1 Like

thanks for the reply, would it break terms if the server could see the players device?

It doesn’t break Roblox Terms of Use but there is no 100% reliable way to determine if an user is on mobile or PC either.

1 Like

I agree since it shows them on mobile if they use the microsoft version, but it is just made to check if they are on any kind of mobile device, not phone or tablet.