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: How do I find the Players team?

Previous Thread :: Next Thread 
Cyls is not online. Cyls
Joined: 31 Aug 2008
Total Posts: 166
16 Jan 2016 10:18 AM
What's the code in order to find what team the player is on, then carry out a command.

Like

If

whatever

Then

(I'll do the rest)
Report Abuse
WolfgangVonPrinz is not online. WolfgangVonPrinz
Joined: 24 Oct 2013
Total Posts: 4656
16 Jan 2016 10:19 AM
local team = player.TeamColor

for i,v in pairs(game.Teams:GetChildren())do
if v.TeamColor == team then
team = v
end
end


Report Abuse
MahouReikon is not online. MahouReikon
Joined: 15 Feb 2014
Total Posts: 1359
16 Jan 2016 10:19 AM
TeamColor


#code 'The Legend of Heroes Sen no Kiseki'
Report Abuse
WolfgangVonPrinz is not online. WolfgangVonPrinz
Joined: 24 Oct 2013
Total Posts: 4656
16 Jan 2016 10:28 AM
It's best to use the code I gave you in a modual script


Report Abuse
Cyls is not online. Cyls
Joined: 31 Aug 2008
Total Posts: 166
16 Jan 2016 10:28 AM
Doesn't know what "Player" is
Report Abuse
iPenguinSuperTime is not online. iPenguinSuperTime
Joined: 25 Apr 2012
Total Posts: 3757
16 Jan 2016 10:30 AM
Local player = game.Players.LocalPlayer
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