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: Team Only GUI?

Previous Thread :: Next Thread 
Supremmacy is not online. Supremmacy
Joined: 17 Mar 2012
Total Posts: 4159
05 Aug 2012 05:15 PM
I was going to make a 2 team game, but I want people on one team to have different tools than those on the other team (tools obtainable through the GUI). How would I make a team-only GUI?

-hail aleksandres the gratski
Report Abuse
GreenDay987 is not online. GreenDay987
Joined: 21 May 2011
Total Posts: 7027
05 Aug 2012 05:37 PM
local player = game.Players.LocalPlayer
function onEntered()
if player.TeamColor == ("Really red") then
player.PlayerGui.ScreenGui.Frame.Visible = true
elseif player.TeamColor == ("Really blue") then
player.PlayerGui.ScreenGui.Frame.Visible = false
end

script.Parent.PlayeEntered:connect(onEntered)



I think this would work as a LocalScript in the Workspace. idk.
Report Abuse
Supremmacy is not online. Supremmacy
Joined: 17 Mar 2012
Total Posts: 4159
05 Aug 2012 05:47 PM
Okay. Should I replace ScreenGui with my Gui's name?

-hail aleksandres the gratski
Report Abuse
Dr01d3k4 is not online. Dr01d3k4
Joined: 11 Oct 2007
Total Posts: 17916
05 Aug 2012 05:49 PM
Green's script won't work, but he's on the right lines - you need to check the TeamColor property of the player and based on that, show them a different gui.
Report Abuse
GreenDay987 is not online. GreenDay987
Joined: 21 May 2011
Total Posts: 7027
05 Aug 2012 05:51 PM
I knew I was wrong somehow, but yeah basic idea, check TeamColor and then show GUIs based on that.
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