But im not interested into setting it, i need to GET it, i cannot explain the full context as it would ruin the goal of the detection, but i need to be able to know if the exploiter have the “Click” icon or the “pointer icon” without using any gui to know it
There is no way to prevent that actually, even if you refresh a local script inside their player or character, they’re still able to disable it or delete it before it even runs. Trust me on how I spent hours of thinking about this to come up to that the server is the only way. Also, I have a game with over 500 concurrent players so I know what I’m talking about too. I’m also going to make an open sourced anti-cheat near Christmas time, so stay tuned for that.
i already have my own anticheat. And yes there is a way that is none of what you said. It’s a way that is not publicly known and of course i won’t explain it here as my anticheat is paid for a reason.
They can loop through all nil objects with this one function btw. Also, even if that function wasn’t there, that script is still being hosted on their client, so they can easily just make it stop running since THEY’RE the one hosting it.
I’ve just done some digging in my program files. It may be interesting to know where these cursors come from, but as to your problem, I don’t think it can be solved from the resources we have.
Here is the address to the ArrowCursor rbxasset://textures/Cursors/KeyboardMouse/ArrowCursor.png
Important: You can use these addresses to set the mouse icon to one of these images, but you can’t check to see if the current mouse icon is one of these images. As @SubtotalAnt8185 mentioned (and you have already stated yourself), the mouse.Icon value will inherently point to an empty string and won’t be automatically set to the above images unless manually overwritten. In other words, there is no reliable way to discern the click vs pointer icon because they both point to the same icon reference, unless you do some manual overriding (which I suggest against).
Thank you for the help, it’s kind of dumb roblox does not give us a way to check the current mouse icon as it could help for a lot of things, especially that detection.