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: How do i make it so only 2 teams can capture a flag

Previous Thread :: Next Thread 
agentcamtho is not online. agentcamtho
Joined: 07 Sep 2011
Total Posts: 111
23 Mar 2012 04:59 AM
Ive got a nice base for my milatary group along with 5 teams (GSG-9, Allies, Raiders, Want to join And visitors) but i need to know how to fix the issue that visitors, Want to join And allies can mess up the flag system, How do i make so they cant capture
Report Abuse
agentcamtho is not online. agentcamtho
Joined: 07 Sep 2011
Total Posts: 111
23 Mar 2012 05:02 AM
Note the flag is one of those that goes down when you stand near it, then goes up
Report Abuse
theguywhobuiltthis is not online. theguywhobuiltthis
Joined: 23 Oct 2009
Total Posts: 919
23 Mar 2012 05:08 AM
Inside there will be some scripts we need to know what they say.
Report Abuse
DragonFang1 is not online. DragonFang1
Joined: 02 Apr 2009
Total Posts: 1068
23 Mar 2012 09:38 AM
simply make invisible walls around it that allows only people from that 2 teams.
Report Abuse
agentcamtho is not online. agentcamtho
Joined: 07 Sep 2011
Total Posts: 111
27 Mar 2012 03:13 AM
Ive been trying that but i cant find walls that work for my group AND the raider team
Report Abuse
Cheater is not online. Cheater
Joined: 29 Jun 2007
Total Posts: 5258
27 Mar 2012 03:50 AM
If the player is in that team than bla bla. Some sort of that. But there are also other ways. The touching area or bricks for the flag. You could also do it there without using invisible walls. Just make it that the .Touched event checks the player's teamcolor or teamname where he's in and check if it's the right one.
Report Abuse
blueymaddog is not online. blueymaddog
Joined: 23 Sep 2009
Total Posts: 5459
27 Mar 2012 06:01 AM
*cough* necrobump 2 posts above. XP
Report Abuse
agentcamtho is not online. agentcamtho
Joined: 07 Sep 2011
Total Posts: 111
27 Mar 2012 09:30 AM
I need something simple, preferably in model form as i am not a great scripter
Report Abuse
DragonFang1 is not online. DragonFang1
Joined: 02 Apr 2009
Total Posts: 1068
27 Mar 2012 09:39 AM
AllowedTeam={ "NAME OF TEAM", "Another Team" }-- add as many as you want

script.Parent.Touched:connect(function(p)
local allowed=false
if p.Parent:findFirstChild("Humanoid") then
for i=1,#AllowedTeams do
if game.Players[p.Parent.Name].TeamColor==game.Teams.AllowedTeam[i].TeamColor then
script.Parent.CanCollide=false
allowed=true
end
end
if not allowed then
script.Parent.CanCollide=true
end
end
end)

--------------------------

put that into your invisible wall bricks
Report Abuse
agentcamtho is not online. agentcamtho
Joined: 07 Sep 2011
Total Posts: 111
30 Mar 2012 06:53 PM
Didnt work D:
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