What I want: I want to disable a server script for make a mobile version in my game.
Hello, I am currently facing a problem, how can I disable a server script for a specific player? My server script is located in the ServerScriptService.
I did various searches on the devforum but these solutions do not suit me and do not work.
Should I change the location of my script or is there another solution?
Thanks everyone!
I think the better question to ask is, what are you trying to do? You can’t really just disable a server script for a player because it’s not a local script.
Roblox doesn’t provide APIs for detecting player devices but we can kind of figure it out, albeit it isn’t reliable and in general you should try to adapt your scripts to work across all devices.
Maybe Roblox doesnt Provide an API to check whats the device that player is using, but its pretty simple to know the size of screen, touch or not device the player is using on local scripts, then if you want to tell your server script to run certain functions depending on that, you just use your Remotes to tell the server script to act depending on the local device player is using.
That question that @1Minecraft0954 fits perfect, whats your goal?
It wasn’t really that, but I managed to put all my scripts into a single local script and it worked, so I don’t need any more help.
Thank you all for help!