I’m trying to make a plugin with a widget, but it never works because the script is searching my COMPUTER files, not the game files. Anyone got any solutions?
local Toolbar = plugin:CreateToolbar("PR")
local NotesButton = Toolbar:CreateButton("PR Signals", "Signals", "rbxassetid://4370186570", "PR Signals")
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("PR Signals", NotesWidgetInfo)
NotesWidget.Title = "PR Signals"
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)