ok so i have a plugin window, where i have a text label and a textButton. The problem is that the button looks like a label and isnt clickable
local bck = Instance.new("Frame")
bck.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
bck.Size = UDim2.new(1,1,1,1)
bck.Parent = widguetUIsetup
local txt = Instance.new("TextLabel")
txt.Font = Enum.Font.Gotham
txt.Text = "this should be a textLabel"
txt.Parent = widguetUIsetup
txt.Position = UDim2.new(0.417, 0,0.317, 0)
txt.TextColor3 = Color3.fromRGB(255, 255, 255)
local btt = Instance.new("TextButton")
btt.Font = Enum.Font.Gotham
btt.Text = "this should be a TextButton"
btt.Parent = widguetUIsetup
btt.Position = UDim2.new(0.417, 0,0.528, 0)
btt.TextColor3 = Color3.fromRGB(255, 255, 255)
local function onClick()
widguetUIsetup.Enabled = not widguetUIsetup.Enabled
end
butt.Click:Connect(onClick)
btt.MouseButton1Click:Connect(function()
warn("pressed ")
end)
any dev hub link or any solution is welcomed!