Button not going visible

im making this code, where it should be creating a new button(newButton) and making it visible (newButton.Visible = true). Which is not working.

Someone know what is happening?

pluginPicker.MellowBalance.MouseButton1Click:Connect(function()
	if pluginSlots <= 5 then
		mellowBalance.Visible = true
		pluginPicker.Visible = false
		local newButton = mixerFrame.PluginSlots.Button:Clone()
		newButton.Visible = true
		newButton.Text = "Mellow Balance"
		
		newButton.MouseButton1Click:Connect(function()
			if mellowBalance.Visible == false then
				mellowBalance.Visible = true
			else
				mellowBalance.Visible = false	
			end
		end)
	end
end)

cloning an instance does replicate all of its properties except parent. be sure to set the parent of the new instance

1 Like