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

Am I doing something wrong with this plugin script?

Asked by 9 years ago

I was recently editing a plugin and it stopped creating the toolbar and button and stuff. I went back through the plugin and just made a simple script to create the toolbar, and the button, then when the button is clicked it make's a hint. I was wondering if I am doing anything wrong with this plugin script or if it's roblox. Any help appreciated.

Script:

-- Variables
local ToolbarName = "Test Plugins"
local PluginName = "Test Plugin 1"
local PluginDescription = "No description."
local Image = "http://www.roblox.com/asset/?id=109251559"

local Plugin = PluginManager():CreatePlugin()
local Toolbar = Plugin:CreateToolbar(ToolbarName)
local Button = Toolbar:CreateButton(PluginName,PluginDescription,Image)

-- Main Script
Button.Click:connect(function()
    local h = Instance.new("Hint",game:GetService("CoreGui"))
    h.Text = "Test plugin worked."
    wait(5)
    h:Destroy()
end)
0
Try replacing PluginManager() on line 7 with just plugin (make sure it's lowercase!) ChipioIndustries 454 — 9y
0
that is deprecated. 1waffle1 2908 — 9y

Answer this question