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
 

Certain people ONLY?

Previous Thread :: Next Thread 
Perungus is not online. Perungus
Joined: 23 May 2013
Total Posts: 144
17 Jul 2013 01:04 PM
Ok. So say I have a Gui, I only want certain people able to see it. How can I do that?
Report Abuse
Zkiller11 is not online. Zkiller11
Joined: 25 Aug 2009
Total Posts: 2914
17 Jul 2013 01:05 PM
Put it in their PlayerGui.
Report Abuse
kingmasterfit is not online. kingmasterfit
Joined: 22 Jul 2012
Total Posts: 2773
17 Jul 2013 01:06 PM
cansee = {"player"}
gui = game.Lighting:findFirstChild("YOURGUINAMEHERE"):Clone()
game.Players.PlayerAdded:connect(function(plyr)
plyr.CharacterAdded:connect(function(char)
for i, v in pairs (cansee) do
if plyr.Name == v then
gui.Parent = plyr.PlayerGui
end
end
end)
end)
Report Abuse
TrueSoulWolf is not online. TrueSoulWolf
Joined: 02 Apr 2011
Total Posts: 460
17 Jul 2013 01:07 PM
game > Players > Person > GUITray > GUI > script

if script.Parent.Parent.Parent.Name == "Jimmeh_teh_thurd" then
script.Parent.Visible = true
else
script.Parent.Visible = false
end
Report Abuse
TrueSoulWolf is not online. TrueSoulWolf
Joined: 02 Apr 2011
Total Posts: 460
17 Jul 2013 01:08 PM
But, you could make it easier using a table instead of a lot of "or" statements.
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