local targets = { workspace.Games["Ticket Ninja"].TVScreen.SurfaceGui.TicketNinja.GameArea.Target1, workspace.Games["Ticket Ninja"].TVScreen.SurfaceGui.TicketNinja.GameArea.Target2, workspace.Games["Ticket Ninja"].TVScreen.SurfaceGui.TicketNinja.GameArea.Target3, workspace.Games["Ticket Ninja"].TVScreen.SurfaceGui.TicketNinja.GameArea.Target4, workspace.Games["Ticket Ninja"].TVScreen.SurfaceGui.TicketNinja.GameArea.Target5, workspace.Games["Ticket Ninja"].TVScreen.SurfaceGui.TicketNinja.GameArea.Target6 } local buttons = { workspace.Games["Ticket Ninja"].Buttons["1"].ClickPart.ClickDetector, workspace.Games["Ticket Ninja"].Buttons["2"].ClickPart.ClickDetector, workspace.Games["Ticket Ninja"].Buttons["3"].ClickPart.ClickDetector, workspace.Games["Ticket Ninja"].Buttons["4"].ClickPart.ClickDetector, workspace.Games["Ticket Ninja"].Buttons["5"].ClickPart.ClickDetector, workspace.Games["Ticket Ninja"].Buttons["6"].ClickPart.ClickDetector, } shared.connected = {} for i, inst in pairs(targets) do shared.connected[i] = inst.Changed:Connect(function(property) if property == "Image" and inst.Image ~= "" and not string.find(inst.Image, "489938484") then fireclickdetector(buttons[i]) inst.Image = "" end end) end