Detect what script player is editing and what line

so, few days ago I came to know with StudioService then found the ActiveScript property

I already know how to detect what script user is editing, but what line?

does anyone know how to do this?

All helps are appreciated, as always :slight_smile:

1 Like

I don’t think there’s a way to do this without communicating between clients. Is there a reason you want the specific line number?

well I’m making a plugin that detects what user was doing inside the studio (don’t worry, private use only, and it’s for specific game only) and it will tell my discord webhook to send what was the user doing

Apparently it isn’t possible even locally - you might be able to hack your way around it getting mouse clicks/key presses and keeping track of a fake cursor position, but I don’t think it’s worth going down that rabbit hole. Though that being said, if you are logging stuff on discord, you could just log keypresses instead and you would effectively be copying the script to discord (or maybe just number of keypresses to be less intrusive, still not sure why you would want to monitor what users are doing that closely)