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 » Scripting Helpers
Home Search
 

Re: Team

Previous Thread :: Next Thread 
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
02 Sep 2011 02:51 PM
Is there some kind of function for like if your on a team or something?I'm making a script and I need to know how would you know what funciton it is what team a player is on.This was what I was thinking :P


game.Workspace.Spawn.CFrame = CFrame.new(0,0,0)--That's where spawn is?

or
if IsOnTeam:(Team)

I don't know....I just want to know how do you know what player a team is on.
Report Abuse
Spectrumw is not online. Spectrumw
Joined: 04 Aug 2009
Total Posts: 13510
02 Sep 2011 02:53 PM
print(game.Players["Player"].TeamColor)
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
02 Sep 2011 02:56 PM
:P

game.Players.Player.Team

Thanks!I thought it was a little more advanced but thanks.
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
02 Sep 2011 03:08 PM
if player.TeamColor == BrickColor.new("TeamColorHere") then
gui.Visible = true
else
gui.Visible = false
end

If you want a GUI to be visible.
Go ahead, tell me if its broken :D
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
02 Sep 2011 03:10 PM
That's not what I'm doing but thanks.
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
02 Sep 2011 03:15 PM
I'm just trying to add things for you :D Just wanna help!
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
02 Sep 2011 03:19 PM
I know, and it helps for advice.
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
02 Sep 2011 03:23 PM
Bye the way, do you need it?
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
02 Sep 2011 03:38 PM
Yes, just not your script.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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