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
|
  |
| Joined: 04 Aug 2009 |
| Total Posts: 13510 |
|
|
| 02 Sep 2011 02:53 PM |
| print(game.Players["Player"].TeamColor) |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 02 Sep 2011 03:19 PM |
| I know, and it helps for advice. |
|
|
| Report Abuse |
|
|
Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
|
| 02 Sep 2011 03:23 PM |
| Bye the way, do you need it? |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 02 Sep 2011 03:38 PM |
| Yes, just not your script. |
|
|
| Report Abuse |
|
|