Plugin and plugin:CreateToolbar is nil in plugin scripts and the command bar

So I’ve been making a plugin and keep getting this error when I start it:

Attempt to index nil with "CreateToolbar"

And when I try

print(plugin) -- in the command bar

It prints nil. All my other plugins are working, has plugin become deprecated/removed or something? This is in a published place.
The plugin code: (quite short)

local Toolbar = plugin:CreateToolbar("Utils")
game:GetObjects('rbxassetid://6526614487')[1].Parent = game:GetService('ReplicatedStorage')
2 Likes

Try print(plugin) from a plugin script? E.g. create a new empty script, put the print statement in it, right click, save as local plugin. IIRC, the command bar is a different environment from plugin scripts, so it should print nil from the command bar.

how about you upercase plugin

this is in a server sided script?

That’s how plugins work. They need a server script
Also, uppercase “PLUGIN” does not work.

Nvm guys, it just started working again. Thanks for any help though.