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: Gui Message to one team only

Previous Thread :: Next Thread 
Sepratine is not online. 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
TehIcyStar is not online. TehIcyStar
Joined: 07 Mar 2010
Total Posts: 1649
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 is not online. 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
TehIcyStar is not online. TehIcyStar
Joined: 07 Mar 2010
Total Posts: 1649
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 is not online. Thaug
Joined: 08 Apr 2013
Total Posts: 651
06 Jun 2014 06:43 AM
plyr.PlayerGui*
Report Abuse
Sepratine is not online. 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 is not online. 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
TehIcyStar is not online. TehIcyStar
Joined: 07 Mar 2010
Total Posts: 1649
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
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