How to make a simple roblox widget plugin
-----------------------------------------------------------------------------------------------
All the links mentionned in the video is down here:
You can install the plugin that we made in the video:
https://www.roblox.com/library/538836...
You can download the rbxm file of it:
https://www.roblox.com/library/538838...
A website to generate good colors for your UI's:
https://coolors.co
The Roblox API:
https://wiki.roblox.com
-----------------------------------------------------------------------------------------------
Script source code:
local Toolbar = plugin:CreateToolbar("Tutorial Suite")
local NotesButton = Toolbar:CreateButton("Notes", "Type some notes", "rbxassetid://4370186570", "Notes")
local Opened = false
local NotesWidgetInfo = DockWidgetPluginGuiInfo.new(
Enum.InitialDockState.Left,
false, -- Widget will be initially enabled
false, -- Don't override the previous enabled state
200, -- Default width of the floating window
300, -- Default height of the floating window
150, -- Minimum width of the floating window (optional)
150 -- Minimum height of the floating window (optional)
)
local NotesWidget = plugin:CreateDockWidgetPluginGui("Notes", NotesWidgetInfo)
NotesWidget.Title = "My Notes"
local NotesGui = script.Parent.NotesGui
NotesGui.Parent = NotesWidget
local NotesGuiToolbar = NotesGui.Toolbar
local NotesZoomInButton = NotesGuiToolbar.ZoomIn
local NotesZoomOutButton = NotesGuiToolbar.ZoomOut
local NotesTextBox = NotesGui.TextBox
NotesZoomInButton.MouseButton1Click:Connect(function()
NotesTextBox.TextSize = NotesTextBox.TextSize + 4
end)
NotesZoomOutButton.MouseButton1Click:Connect(function()
NotesTextBox.TextSize = NotesTextBox.TextSize - 4
end)
NotesButton.Click:Connect(function()
if Opened then
NotesWidget.Enabled = false
Opened = false
else
NotesWidget.Enabled = true
Opened = true
end
end)
-----------------------------------------------------------------------------------------------
If you have any questions, don't be shy, I'll be happy to answer you in the comments section!
Watch video How to make a simple roblox widget plugin online, duration hours minute second in high quality that is uploaded to the channel Codotaku 20 July 2020. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 23,161 times and liked it 494 visitors.