|
| 24 Sep 2016 12:51 PM |
I am wondering if it is possible if a script chooses a player to join a team by random and they join 2 teams.This is for a project im making.
local OpsForceMembers = players[math.random(16, #players)] local OpsForce = {}
local PhantomsForceMembers = players[math.random(16, #players)] local PhantomsForce = {}
if player.Team.TeamColor == "Bright Orange" then table.insert(OPS, player) end
if player.Team.Name == "Bright Blue" then table.insert(Phantoms, player) end |
|
|
| Report Abuse |
|
|
|
| 24 Sep 2016 12:58 PM |
Someone please respond also I might make some changes
function OpsMember() for i,v in pairs(OPS) do if player.Name == v then return v end end
function PhnatomMember() for i,v in pairs(Phantoms) do if player.Name == v then return v end end end
Sorry,I made a mistake in my first post tho :/ |
|
|
| Report Abuse |
|
|
| |
|
|
| 24 Sep 2016 01:01 PM |
If OpsMember then player.Team = "OPS" end
If PhantomMember then player.Team == "Phantoms" end |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 24 Sep 2016 01:04 PM |
You're trying to put a player on TWO teams? That doesn't make any sense to me
|
|
|
| Report Abuse |
|
|
Monadic
|
  |
| Joined: 03 Aug 2016 |
| Total Posts: 731 |
|
| |
|
|
| 24 Sep 2016 01:12 PM |
@TimeTicks
I just needed to know if a script might choose a player by random and see if it can do it.
Its for a project im making[1]
@Monadic
Your words has no meaning as well as your existence |
|
|
| Report Abuse |
|
|
Monadic
|
  |
| Joined: 03 Aug 2016 |
| Total Posts: 731 |
|
|
| 24 Sep 2016 01:12 PM |
That's deep. Why are you so depressed? |
|
|
| Report Abuse |
|
|