|
| 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 |
|
|
|
| 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 |
|
|
|
| 23 Mar 2012 05:08 AM |
| Inside there will be some scripts we need to know what they say. |
|
|
| Report Abuse |
|
|
|
| 23 Mar 2012 09:38 AM |
| simply make invisible walls around it that allows only people from that 2 teams. |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 27 Mar 2012 06:01 AM |
| *cough* necrobump 2 posts above. XP |
|
|
| Report Abuse |
|
|
|
| 27 Mar 2012 09:30 AM |
| I need something simple, preferably in model form as i am not a great scripter |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
| |
|