There is still more this script, what is not working is that the system is not team locked for some reason. This is a server script for firing a local script in StarterPlayerScripts.
QueueBuzz = function(plr, pc)
if not plr or not pc or plr.Team.Name ~= "Medical Staff" then return end
local ticket = getTicketFromRoom(pc)
if ticket then
RS.QueueBuzz:FireClient(ticket.plr, pc)
end
end,
QueueBuzz = function(plr, pc)
if not plr then return end
if not pc then return end
if not plr.Team then return end
if plr.Team.Name ~= "Medical Staff" then return end
Might be worth printing plr and pc just to ensure that they’re not nil.