Sepratine
|
  |
| Joined: 26 May 2012 |
| Total Posts: 14 |
|
|
| 05 Jun 2014 07:58 PM |
| I'm no good at making Gui's. My knowledge is very Vague, on making a Script in a Gui work, but how can one make a Gui that displays to one team only? |
|
|
| Report Abuse |
|
|
|
| 05 Jun 2014 08:34 PM |
It's late and I won't be able to respond because after this I'm going to bed, sorry if I mess up, but here goes.
gui = GUIHERE:clone()
game.Players.PlayerAdded:connect(function (plyr) plyr.CharacterAdded:connect(function (char) if plyr.TeamColor == BrickColor.new("Really Red")--change color here to fit your needs local guic = gui:clone() guic.Parent = plyr.ScreenGui --egh, I think I messed this part up end end) end)
If it's broken, ask for help, I'm off to sleep, good night =.= |
|
|
| Report Abuse |
|
|
Sepratine
|
  |
| Joined: 26 May 2012 |
| Total Posts: 14 |
|
|
| 05 Jun 2014 09:08 PM |
| I thank you for your time to help me, but take your time everyone needs sleep lol,but yea that script is broken x.x I'll try my best to arrange it to see if i can self fix it, but if i have any troubles, i'll inbox you. |
|
|
| Report Abuse |
|
|
|
| 06 Jun 2014 05:01 AM |
Your privacy settings are too high...
you didn't put the path to the gui in,
the first line should be this then:
gui = script.Gui:Clone() |
|
|
| Report Abuse |
|
|
Thaug
|
  |
| Joined: 08 Apr 2013 |
| Total Posts: 651 |
|
| |
|
Sepratine
|
  |
| Joined: 26 May 2012 |
| Total Posts: 14 |
|
|
| 06 Jun 2014 09:56 AM |
| Privacy Setting are too high? Everything is on "All Users", But anyway, I see where I made my error in trying to fix the script, Yea it was that I had no pathway for everything to work. |
|
|
| Report Abuse |
|
|
Sepratine
|
  |
| Joined: 26 May 2012 |
| Total Posts: 14 |
|
|
| 06 Jun 2014 10:43 AM |
gui = script.Gui:Clone()
gui = GUIHERE:clone()
game.Players.PlayerAdded:connect(function (plyr) plyr.CharacterAdded:connect(function (char) if plyr.TeamColor == BrickColor.new("Deep orange")--change color here to fit your needs then local guic = gui:clone() guic.Parent = plyr.PlayerGui --egh, I think I messed this part up end end) end
*NOTE* Had to add a "then" in order fo it to work, not here comes the stress test. |
|
|
| Report Abuse |
|
|
|
| 07 Jun 2014 01:48 PM |
Ok, fixed everything and tested it. Use this:
gui = script.Gui:Clone()
game.Players.PlayerAdded:connect(function (plyr) plyr.CharacterAdded:connect(function (char) -- *error on this line, I dont know where to insert it in at but hopefully you know how to. * if plyr.TeamColor == BrickColor.new("Bright blue")--change color here to fit your needs then local guic = gui:clone() guic.Parent = plyr.PlayerGui end end) end) |
|
|
| Report Abuse |
|
|