local function Zombify(player)
if player.Team == game.Teams.Zombies then
XPMsgFrame.Visible = true
end
end
but this works
game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
if player.Team == game.Teams.Zombies then
XPMsgFrame.Visible = true
end
end)
end)