DrBulq
|
  |
| Joined: 06 Jul 2010 |
| Total Posts: 3486 |
|
|
| 15 Jan 2014 10:58 AM |
team = "Brown" plr=script.Parent.Parent.Parent.Parent
function onButtonClicked()
if plr.TeamColor ~= BrickColor.new(team) then plr.TeamColor = BrickColor.new(team) plr:LoadCharacter()
else end
end
script.Parent.MouseButton1Down:connect(onButtonClicked)
I'm trying to make it so only members IN THE GROUP can join that team, Gorehowl made this team GUI for me and he told me how before but I just simply forgot what the line was and where he said to put it. Anyone care to help?
♚ Eolithic King ♚ |
|
|
| Report Abuse |
|
|
twinzer87
|
  |
| Joined: 23 Jun 2011 |
| Total Posts: 11065 |
|
|
| 15 Jan 2014 11:00 AM |
ask him again lol i just realised a coincidence one of my best mates irl is called brad he's a funny guy |
|
|
| Report Abuse |
|
|
|
| 15 Jan 2014 11:02 AM |
if plr:IsInGroup() then
end |
|
|
| Report Abuse |
|
|
harrods
|
  |
| Joined: 02 Oct 2010 |
| Total Posts: 5334 |
|
| |
|
DrBulq
|
  |
| Joined: 06 Jul 2010 |
| Total Posts: 3486 |
|
|
| 15 Jan 2014 11:03 AM |
tenal doesn't like me
♚ Eolithic King ♚ |
|
|
| Report Abuse |
|
|
|
| 15 Jan 2014 11:03 AM |
| The 'else' doesn't belong in your script. |
|
|
| Report Abuse |
|
|
twinzer87
|
  |
| Joined: 23 Jun 2011 |
| Total Posts: 11065 |
|
|
| 15 Jan 2014 11:04 AM |
| brad does your last name start with a w |
|
|
| Report Abuse |
|
|
DrBulq
|
  |
| Joined: 06 Jul 2010 |
| Total Posts: 3486 |
|
|
| 15 Jan 2014 11:05 AM |
My last name is Young actually
♚ Eolithic King ♚ |
|
|
| Report Abuse |
|
|
Aethea
|
  |
| Joined: 12 Dec 2008 |
| Total Posts: 9836 |
|
|
| 15 Jan 2014 11:06 AM |
Defenders = 'Brown' plr = game.Players.LocalPlayer sp = script.Parent chr = plr.Character
sp.MouseButton1Click:connect(function() if plr:IsInGroup(YOURGROUPID) then plr.TeamColor=BrickColor.new(Defenders) end end)
Don't need an else unless you want the script to do something else. Use Local script for this
|
|
|
| Report Abuse |
|
|
twinzer87
|
  |
| Joined: 23 Jun 2011 |
| Total Posts: 11065 |
|
|
| 15 Jan 2014 11:06 AM |
aww it'd be rlly cool if you were him |
|
|
| Report Abuse |
|
|
|
| 15 Jan 2014 11:07 AM |
while the whole script is kinda icky, the thing you'd want is..
if plr.TeamColor ~= BrickColor.new(team) then
change it to
if plr.TeamColor ~= BrickColor.new(team) and plr:IsInGroup(groupidhere) then
-{===>SS |
|
|
| Report Abuse |
|
|
DrBulq
|
  |
| Joined: 06 Jul 2010 |
| Total Posts: 3486 |
|
|
| 15 Jan 2014 11:10 AM |
Haha alright thanks guys and yeah altair is decent but he gets it to work :3
I'll test those now
♚ Eolithic King ♚ |
|
|
| Report Abuse |
|
|
DrBulq
|
  |
| Joined: 06 Jul 2010 |
| Total Posts: 3486 |
|
|
| 15 Jan 2014 11:11 AM |
Well how it is currently it's an instant respawn and doesn't give you a WO is that how it is with that one Athea
♚ Eolithic King ♚ |
|
|
| Report Abuse |
|
|