I don’t know if I am just dumb or if it’s a bug, but for some reason, I cannot access the ScriptEditorService in my plugin script. It does not show up in autocomplete and I have checked all the topics on this API and I have still no idea. Here’s the code:
local scriptserv = game:GetService("ScriptEditorService")
It cannot access it if it is a client-side script due to it being a non-replicated function, however if it is a server script, then you shouldn’t be having an issue. Did you try making a direct reference to it?
Yeah, it still does not work. I did not have “Enable API” turned on but I tested with it turned on and it still does not work. Is it supposed to not autocomplete?
It does not autocomplete because Studio thinks you’re writing a regular script to be used in a game, so it doesn’t offer autocompletions that would be relevant for plugins only. You can write plugin code, save it as plugin, and it should work correctly.