to make a plugin you have to open an empty document and save it as PLUGINNAME.lua in the folder C:\Users\[Username]\AppData\Local\Roblox\plugins\[PluginName]\
in the empty document you could start with this:
self = PluginManager():CreatePlugin()
mouse = self:GetMouse()
toolbar = self:CreateToolbar("ToolbarName")
button = toolbar:CreateButton("PluginName", "Description", "Image.png")
function On()
self:Activate(true)
button:SetActive(true)
on = true
end
function Off()
button:SetActive(false)
on = false
end
button.Click:connect(function()
if on then
Off()
else
On()
end
end)
--Add your own script here |