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: Start on a certain team when you join

Previous Thread :: Next Thread 
likeCarter is not online. likeCarter
Joined: 04 Mar 2011
Total Posts: 3051
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 is not online. 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
likeCarter is not online. likeCarter
Joined: 04 Mar 2011
Total Posts: 3051
20 May 2014 11:09 PM
Thank you. And the colour or the name? :3
Report Abuse
Jdad is not online. Jdad
Joined: 12 Jan 2009
Total Posts: 5143
20 May 2014 11:10 PM
It very clearly says color
Report Abuse
likeCarter is not online. likeCarter
Joined: 04 Mar 2011
Total Posts: 3051
20 May 2014 11:11 PM
:3 I wrote "bright red" because that is more precise :3
Report Abuse
pickupthemail is not online. pickupthemail
Joined: 07 Nov 2013
Total Posts: 55
20 May 2014 11:33 PM
"Bright red"

caps are important
Report Abuse
likeCarter is not online. likeCarter
Joined: 04 Mar 2011
Total Posts: 3051
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
pickupthemail is not online. pickupthemail
Joined: 07 Nov 2013
Total Posts: 55
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
likeCarter is not online. likeCarter
Joined: 04 Mar 2011
Total Posts: 3051
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
pickupthemail is not online. pickupthemail
Joined: 07 Nov 2013
Total Posts: 55
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
likeCarter is not online. likeCarter
Joined: 04 Mar 2011
Total Posts: 3051
21 May 2014 08:57 PM
This script still does not work.
Report Abuse
Azeroth17 is not online. 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
likeCarter is not online. likeCarter
Joined: 04 Mar 2011
Total Posts: 3051
21 May 2014 09:17 PM
Azeroth is that the script I should use or add that onto it? :3
Report Abuse
Azeroth17 is not online. Azeroth17
Joined: 13 May 2014
Total Posts: 86
21 May 2014 09:17 PM
just use it
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
21 May 2014 09:19 PM
Don't forget to un-neutral them
Report Abuse
likeCarter is not online. likeCarter
Joined: 04 Mar 2011
Total Posts: 3051
21 May 2014 09:54 PM
Wow thank you all for trying but thank Azeroth17 the most his script work! Thanks Azeroth17!
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