I have a code that enables a UI if a player is playing on mobile but it’s not working.
local UIName = "PhoneShow"
local InputService = game:GetService("UserInputService")
local isPhone = InputService.TouchEnabled
local isPc = InputService.MouseEnabled or InputService.KeyboardEnabled
if isPhone and not isPc then
plr:WaitForChild("PlayerGui"):WaitForChild(UIName).Enabled = true
even if I join from a phone.
This Code is a servers script and is in serverscriptservice
I was able to print those properties on the command bar of the developer console, which is server side. But, of course, it doesn’t give the client values for those properties. So, yes, it’s useless to use them on the server.