|
| 25 Nov 2012 06:05 AM |
function Click(mouse) if script.Parent.Parent.Parent.Parent:IsInGroup(732924) then script.Parent.Parent.Parent.Parent.TeamColor = BrickColor.new("White") script.Parent.Parent.Parent.Parent.Character.Humanoid.Health = 0 end end
script.Parent.MouseButton1Click:connect(Click)
This is so when you click a gui it changes your team, however I only want me and another person to be able to change to that team. So...
How do I edit this so that only me and another person can enter?
Please reply with the edited script ASAP please.
Thanks. |
|
|
| Report Abuse |
|
|
Krelinos
|
  |
| Joined: 09 Jan 2010 |
| Total Posts: 425 |
|
|
| 25 Nov 2012 10:46 AM |
player = script.Parent.Parent.Parent.Parent
function Click(mouse) if player.Name == "YOURNAME" or player.Name == "FRIEND'SNAME then |
|
|
| Report Abuse |
|
|
|
| 25 Nov 2012 10:47 AM |
>"FRIEND'SNAME | \/ "FriendsName" >Much love, YaYaBinks3. |
|
|
| Report Abuse |
|
|