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
 

GroupID team spawns

Previous Thread :: Next Thread 
CintDoggie is not online. CintDoggie
Joined: 07 Aug 2009
Total Posts: 2563
11 Jan 2014 01:27 AM
All of these scripts are in a spawnlocation and the GroupID is in the script itself.

This is supposed to put the player "Vauxilary" on the team colour of the spawnlocation:

Vauxilary = "Vauxilary"

game.Players.PlayerAdded:connect(function(p)
if game.Players:findFirstChild(Vauxilary) then
wait(5)


Enter.TeamColor=script.Parent.TeamColor
end
end)


game.Players.ChildAdded:connect(Enter)



This is supposed to put players that are in the Group on the team colour of the spawnlocation:

if Enter then script.GroupID.Value = true
Enter.TeamColor=script.Parent.TeamColor
end


game.Players.ChildAdded:connect(Enter)



This is supposed to put players that are not in the group on the team colour of the spawnlocation:

if Enter then script.GroupID.Value = false
Enter.TeamColor=script.Parent.TeamColor
end


game.Players.ChildAdded:connect(Enter)



Neither of these scripts work and even if they did they are unefficient. I'm a novice scripter and I'd appreciate it if you fixed the scripts for me, bonus points if you can put it all in one script that works in Workspace.

Thank you very very much in advance!
Report Abuse
TheRobloxian909 is not online. TheRobloxian909
Joined: 08 Aug 2013
Total Posts: 2444
11 Jan 2014 03:07 AM
game.Players.PlayerAdded:connect(function(p)
GroupID = --next to the = put the group id
TeamColor = BrickColor.new("") -- Inside the ("") put the TeamColor
if p:IsInGroup(GroupID) then
wait(5)
p.TeamColor = TeamColor
end
end)



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