generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Changing players in a team

Previous Thread :: Next Thread 
Gomlsauresrex is not online. Gomlsauresrex
Joined: 25 Mar 2016
Total Posts: 3588
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
Gomlsauresrex is not online. Gomlsauresrex
Joined: 25 Mar 2016
Total Posts: 3588
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
Gomlsauresrex is not online. Gomlsauresrex
Joined: 25 Mar 2016
Total Posts: 3588
24 Sep 2016 12:59 PM
*PhantomMember
Report Abuse
Gomlsauresrex is not online. Gomlsauresrex
Joined: 25 Mar 2016
Total Posts: 3588
24 Sep 2016 01:01 PM
If OpsMember then
player.Team = "OPS"
end

If PhantomMember then
player.Team == "Phantoms"
end
Report Abuse
TimeTicks is not online. 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 is not online. Monadic
Joined: 03 Aug 2016
Total Posts: 731
24 Sep 2016 01:07 PM
You need mental help.
Report Abuse
Gomlsauresrex is not online. Gomlsauresrex
Joined: 25 Mar 2016
Total Posts: 3588
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 is not online. Monadic
Joined: 03 Aug 2016
Total Posts: 731
24 Sep 2016 01:12 PM
That's deep.
Why are you so depressed?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image