I am trying to create a teaming system where if you say "join/OPFOR" it will team you OPFOR.
game.Players.PlayerAdded:Connect(function(plr)
plr.Chatted:Connect(function(msg) -- grabs plr message
if string.lower(msg) == 'join/OPFOR' then
plr.Team = game.Teams.OPFOR
end
end)
end)
