|
| 20 May 2014 10:50 PM |
I am very new to scripting and I need to ask something.
I know I must start with:
game.Players.PlayerAdded:connect(onPlayerEntered)
I have a win the obby for admin game but I want everyone that joins the game to start on the first team. And thank you so much if you can help me :/ |
|
|
| Report Abuse |
|
|
Goulstem
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 7177 |
|
|
| 20 May 2014 11:04 PM |
game.Players.PlayerAdded:connect(function(plr) plr:WaitForDataReady() plr.TeamColor = BrickColor.new("Color Of Team Wanted Here") end) |
|
|
| Report Abuse |
|
|
|
| 20 May 2014 11:09 PM |
| Thank you. And the colour or the name? :3 |
|
|
| Report Abuse |
|
|
Jdad
|
  |
| Joined: 12 Jan 2009 |
| Total Posts: 5143 |
|
|
| 20 May 2014 11:10 PM |
| It very clearly says color |
|
|
| Report Abuse |
|
|
|
| 20 May 2014 11:11 PM |
| :3 I wrote "bright red" because that is more precise :3 |
|
|
| Report Abuse |
|
|
|
| 20 May 2014 11:33 PM |
"Bright red"
caps are important |
|
|
| Report Abuse |
|
|
|
| 20 May 2014 11:35 PM |
Okay I just added a new stage and I changed it to:
game.Players.PlayerAdded:connect(function(plr) plr:WaitForDataReady() plr.TeamColor = BrickColor.new("Bright violet") end)
But it isn't working? I do have a "Bright violet" team and spawn and it still isn't working? Help please? |
|
|
| Report Abuse |
|
|
|
| 20 May 2014 11:43 PM |
your using WaitForDataReady() rong
that's not what its for
game.Players.PlayerAdded:connect(function(plr) plr.CharacterAdded:connect(function() wait() plr.TeamColor = BrickColor.new("Bright violet") end) end) |
|
|
| Report Abuse |
|
|
|
| 21 May 2014 12:12 AM |
Hey @pickupthemail I tried putting your script in but unfortunately this didn't work either... D:
Can someone please tell me the proper script?
|
|
|
| Report Abuse |
|
|
|
| 21 May 2014 11:22 AM |
game.Players.PlayerAdded:connect(function(plr) repeat wait() until plr.Character plr.TeamColor = BrickColor.new("Bright violet") plr.CharacterAdded:connect(function() wait() plr.TeamColor = BrickColor.new("Bright violet") end) end)
--it should work.. |
|
|
| Report Abuse |
|
|
|
| 21 May 2014 08:57 PM |
| This script still does not work. |
|
|
| Report Abuse |
|
|
Azeroth17
|
  |
| Joined: 13 May 2014 |
| Total Posts: 86 |
|
|
| 21 May 2014 09:00 PM |
@like
If that's not working your teamcolor is not bright violet. Try this.
game.Players.PlayerAdded:connect(function(play) play.TeamColor = game.Teams["TEAMNAMEHERE"].TeamColor end)
|
|
|
| Report Abuse |
|
|
|
| 21 May 2014 09:17 PM |
| Azeroth is that the script I should use or add that onto it? :3 |
|
|
| Report Abuse |
|
|
Azeroth17
|
  |
| Joined: 13 May 2014 |
| Total Posts: 86 |
|
| |
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 21 May 2014 09:19 PM |
| Don't forget to un-neutral them |
|
|
| Report Abuse |
|
|
|
| 21 May 2014 09:54 PM |
| Wow thank you all for trying but thank Azeroth17 the most his script work! Thanks Azeroth17! |
|
|
| Report Abuse |
|
|