Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why does this plugin script only work in command bar?

Asked by 9 years ago

I've been trying to get this plugin script to work for a-while now, it worked at some point but then suddenly stopped working, it won't create the toolbar or anything. I went back to basic's to test and see if it work's and it still didn't work. But the exact same script work's in the command bar, can anyone tell me why?

Any help appreciated.

The basic script I tried:

-- Variables
local Plugin = PluginManager():CreatePlugin()
local Toolbar = Plugin:CreateToolbar("Test plugin bar")
local Button = Toolbar:CreateButton("Test plugin","No description","http://www.roblox.com/asset/?id=78930759")

-- Main Script
Button.Click:connect(function()
    local h = Instance.new("Hint",game.Workspace)
    h.Text = "Test worked."
    wait(2)
    h:Destroy()
end)
0
Is this a local plugin (stored as .lua on your computer) or uploaded to ROBLOX? RepeatLua 90 — 9y
0
Uploaded to roblox. ISellCows 2 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago

I'm sure your original code works, have you installed the published plugin to studio or not?

0
Yup. ISellCows 2 — 9y
0
Well, I'm not one to create plugins often, check the wiki for help. GullibleChapV2 155 — 9y
Ad

Answer this question