Why can I not access the ScriptEditorService

Hi there!

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")

Help would be appreciated! Thanks

1 Like

If it is a client-side script, it cannot access that service. Elsewise, reference it directly
game.ScriptEditorService

No, this is a server script in replicated storage for a plugin. Any ideas why?

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?

There is no such thing as ScriptEditorService? (else its a beta feature i dont know of)
image

It’s used by plugins

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.

Ok! Thanks a lot for the help!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.