How to determine whether your on computer or mobile

I need a script that when it thinks your on mobile, activates. since im not the best coder im begging for some advice.

Have a look at the api for pc.platform

You can do stuff like:

if ( {
    // device is mobile or tablet

(Side note that iPadOS broadcasts itself as a desktop :sweat_smile: )

thanks I’ll try that