I want to set it out like this;
if IsUsingMobileDevice == true then
--Set a boolean value to true
elseif IsUsingMobileDevice == false then
--Set a boolean value to false
end
All feedback is appreciated, Thanks! -Oaktin
I want to set it out like this;
if IsUsingMobileDevice == true then
--Set a boolean value to true
elseif IsUsingMobileDevice == false then
--Set a boolean value to false
end
All feedback is appreciated, Thanks! -Oaktin
I have found the answer or at least an alternative answer. Here is the code I will use;
if game:GetService("UserInputService").TouchEnabled == true then
--Sets boolean value to true
elseif game:GetService("UserInputService").TouchEnabled == false then
--Sets boolean value to false
end
Hi Oatkin, does this distinguish whether it is a phone or tablet?
No it does not sadly, I am trying to find a function for that.
Thanks, this will help me out a lot in the future. 1+
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
+1 I would like to know this as well