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
 

team only script isn't working

Previous Thread :: Next Thread 
randomsmileyface is not online. randomsmileyface
Joined: 01 Aug 2010
Total Posts: 4538
27 Mar 2014 04:39 PM
I thought I could do a fast job by just pulling a script from free models and modifying it, but apparently I couldn't

Both teams are not autoassignable
no one gets on a team on entering

group = 877323 -- change to group ID

function Check(p)
local player = p
if player ~= nil then
if player:IsInGroup(group) then
player.TeamColor = BrickColor.new("Really Blue")
else
player.TeamColor = BrickColor.new("Really Red")
end
end
end


game.Players.ChildAdded:connect(Check)
Report Abuse
BornLeader1 is not online. BornLeader1
Joined: 02 Jun 2011
Total Posts: 1795
27 Mar 2014 04:43 PM
Try this out:

--Born was Here
group = 877323

game.Players.PlayerAdded:connect(function(Player)
if Player:IsInGroup(group) then
Player.TeamColor = BrickColor.new("Really Blue")
else
Player.TeamColor = BrickColor.new("Really Red")
end
--Born was here too
end)
Report Abuse
randomsmileyface is not online. randomsmileyface
Joined: 01 Aug 2010
Total Posts: 4538
27 Mar 2014 04:51 PM
still not working .-.
Report Abuse
randomsmileyface is not online. randomsmileyface
Joined: 01 Aug 2010
Total Posts: 4538
27 Mar 2014 04:54 PM
is there anything else I need to specify in the groups and spawns?

Report Abuse
randomsmileyface is not online. randomsmileyface
Joined: 01 Aug 2010
Total Posts: 4538
27 Mar 2014 04:58 PM
anything?

its really starting to frustrate me.
Report Abuse
randomsmileyface is not online. randomsmileyface
Joined: 01 Aug 2010
Total Posts: 4538
27 Mar 2014 05:09 PM
This is really wasting my time
Report Abuse
randomsmileyface is not online. randomsmileyface
Joined: 01 Aug 2010
Total Posts: 4538
27 Mar 2014 05:12 PM
does it need to be a local 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