I don’t know why but is just doesn’t want to fire, any ideas?
for _, category in pairs(rooms:GetChildren()) do
local uiCategory = roomLists.CategoryNav:FindFirstChild(category.Name)
if (uiCategory) then
for _, room in pairs(category:GetChildren()) do
local newRoomUI = roomTemplate:Clone()
newRoomUI.RoomObj.Value = room
newRoomUI.RoomName.Text = room:GetAttribute("Name")
newRoomUI.Parent = uiCategory
newRoomUI.MouseButton1Click:Connect(function()
warn("Press!")
end)
end
end
end
end
Please read my first message. I said that the information that you have already provided doesn’t seem to include any issues. I cannot debug this based on the code you’ve sent.
Nvm I accidentally had a button parented to the TextButton I was trying to use (I wanted to go with this approach first but I later decided not to and forgot the button there)