Something in the docs about plugins that is weird

so i was exploring the plugin Docs until i saw this Plugin:CreatePluginAction() method

local plugin = plugin or getfenv().PluginManager():CreatePlugin()

is getfenv() used to create plugins? and what is plugin manager?
after some search i found this

if it is a deprecated function, why did they add it in the code example? is there a reason for this? and if it’s a deprecated function why did it show while the Show Deprecated button was turned off? and why did they pick getfenv() to create a plugin? and why did they add PluginManager() as a link while its the exact same page? also there is PluginManagementService, PluginDebugService which does nothing

1 Like

like the docs says “PluginManager has been superseded by Plugins” you shouldn’t use PluginManager anymore

yes but it exist in the Plugin | Documentation - Roblox Creator Hub code example if its deprecated they should remove it from the docs too

proof

look at the first line of the script

I don’t recommend using the PluginManager method because it’s both deprecated and utilizes getfenv, which is also discouraged in general.

I’m pretty sure the code sample is just outdated.

1 Like

They may not update all the documentation with every single update, and sometimes it get missed.
Instead of posting here you should report it as a Documentation Bug.

I’ve done it with a few minor things in the past and they usually tell me they are working on updating it.

2 Likes

I have sent a request to join bug reports reporting a bug for UI drag detectors, but it never got accepted so I can’t report bugs
if you can report it because it may confuse a lot of people who are reading the plugins docs for the first time

Posted here: