Inside my KnitInit method for my controller, I have a button here that when clicked, adds a player to a queue and whatever else. The problem is that I have to click it at least twice or even more than twice for it to fire the clicked event. This is not a time based connection since I can let it sit for a minute and still have to click twice. I’m 90% sure it’s hooking the event as the code runs, the only thing that doesn’t run is the print inside the .mousebutton1click connection.
function MenuController:KnitInit()
local player = game.Players.LocalPlayer
local ui = player.PlayerGui:WaitForChild("GlobalUI")
local queueCategory = ui.Containers.Arenas.MainInfo
local soloQueueButton = queueCategory.Frame.SoloQueue.Button
local partyQueueButton = queueCategory.Frame.PartyQueue.Button
warn("init")
soloQueueButton.MouseButton1Click:Connect(function()
print("Clicked")
-- self:SoloQueue()
end)
partyQueueButton.MouseButton1Down:Connect(function()
--self:PartyQueue()
end)
partyQueueButton.Parent.Parent.Parent.Cover.Button.MouseButton1Down:Connect(function()
-- self:UnQueue()
end)
end
I’m not sure if this is an intended feature or an engine bug, or I’m just entirely missing something, all help is appreciated.