How Can i Change Position of these textboxs Idk anything about Positions
Here:
local bar = plugin:CreateToolbar("Test");
local button1 = bar:CreateButton( -- Create a button
"Testing Brrr", -- Title
"Just Tesssssttt", -- Description
"rbxassetid://12675160072"
);
local info = DockWidgetPluginGuiInfo.new( -- Create your widget info
Enum.InitialDockState.Float, -- Dock State
true, -- toggle enabled
true, -- sets wheater it overrides the previous window or not
200, -- width
44, -- height
200, -- min width
44 -- min height
)
local widget1 = plugin:CreateDockWidgetPluginGui("JustTest", info) -- create your widget.
local textBox = Instance.new("TextBox");
textBox.Text = "Name";
textBox.Size = UDim2.new(0.25, -1, 1, 0.8);
textBox.Visible = true;
textBox.BackgroundTransparency = 0
textBox.Parent = widget1;
local textBox2 = Instance.new("TextBox");
textBox2.Text = "Value"
textBox.Size = UDim2.new(0.25, -1, 1, 0.8);
textBox.Visible = true;
textBox.BackgroundTransparency = 0
textBox.Parent = widget1;
local textBox3 = Instance.new("TextBox");
textBox3.Text = "Power";
textBox.Size = UDim2.new(0.25, -1, 1, 0.8);
textBox.Visible = true;
textBox.BackgroundTransparency = 0
textBox.Parent = widget1;
local textBox4 = Instance.new("TextBox");
textBox.Text = "CoolDown";
textBox.Size = UDim2.new(0.25, -1, 1, 0.8);
textBox.Visible = true;
textBox.BackgroundTransparency = 0
textBox.Parent = widget1;
local name
local value
local cooldown
function PluginCode()
widget1.Enabled = true;
end
--// Connect \\--
button1.Click:Connect(PluginCode);
local selection = game:GetService("Selection")
function MainFunc()
local selected = selection:Get();
for i, v in ipairs(selected) do
if v.Name == "Handle" then
local maketool = Instance.new("Tool")
maketool.Parent = game.ServerStorage.Folder
v.Parent = maketool
maketool.Name = name
else
warn("Select a Handle!")
end
end
end
textBox.FocusLost:Connect(function(enterpressed)
if enterpressed then
name = textBox.Text
MainFunc()
end
end)