- What do you want to achieve? Keep it simple and clear!
I want the my plugin to create a textbox inside a frame.
- What is the issue? Include screenshots / videos if possible!
The problem is that. The plugin creates everything. But the textbox isnt working correctly… Like you cant see its background or interact with it.
- What solutions have you tried so far? Did you look for solutions on the Developer Hub?
And yes. I have looked around here on the dve forum(And a bit on scripting helpers). But didnt find anything useful.
Plugin code:
local Bar = plugin:CreateToolbar("Stuff", "", "")
local But = Bar:CreateButton("HI", "", "")
local Widget = DockWidgetPluginGuiInfo.new(
Enum.InitialDockState.Top,
false,
false,
150,
100,
50,
100
)
local Window = plugin:CreateDockWidgetPluginGui(math.random(1, 10000000), Widget)
function CREATE_BUTTONS(WIDGET)
local Holder = Instance.new("Frame")
Holder.BackgroundColor3 = Color3.new(0, 1, 1)
Holder.Size = UDim2.fromScale(1, 1)
Holder.Parent = WIDGET
local Box = Instance.new("TextBox")
Box.BackgroundColor3 = Color3.new(0, 0, 0)
Box.BorderSizePixel = 0
Box.Position = UDim2.fromScale(0.5, 0.5)
Box.Parent = Holder
end
But.Click:Connect(function()
Window.Enabled = not Window.Enabled
CREATE_BUTTONS(Window)
end)
Any help would be highly appreciated as always