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: a gui that only certain people can see

Previous Thread :: Next Thread 
Dantopia is not online. Dantopia
Joined: 25 Jul 2012
Total Posts: 15711
19 Nov 2013 12:02 PM
[ Content Deleted ]
Report Abuse
REM25 is not online. REM25
Joined: 28 Feb 2010
Total Posts: 3154
19 Nov 2013 12:03 PM
....what do you mean certain people?
Report Abuse
CrniOrao is not online. CrniOrao
Joined: 12 Oct 2008
Total Posts: 2274
19 Nov 2013 12:05 PM
His player ID is "30330414"
He's question is if he can let only people that have this ID can view the GUI.

Even tough it's a lot easier just writing a name of someone... Why would you make ID's if you can use function onPlayerAdded and check if you're inside a table.
Report Abuse
Darthnoodles98 is not online. Darthnoodles98
Joined: 02 Apr 2011
Total Posts: 418
19 Nov 2013 12:07 PM
Aye. I'm not sure if a script could see which ID someone has, but again, use a table and a for loop.
Report Abuse
Dantopia is not online. Dantopia
Joined: 25 Jul 2012
Total Posts: 15711
19 Nov 2013 12:08 PM
[ Content Deleted ]
Report Abuse
Vaporation is not online. Vaporation
Joined: 08 Jun 2011
Total Posts: 1397
19 Nov 2013 12:12 PM
http://www.roblox.com/Get-Username-From-UserID-item?id=116836115

You can first use this script to get the username from user id, then do something like this:

if player.Name == nameyougotfromuserid then
for i, v in pairs(script.Parent:GetChildren()) do
if v.Visible = true
end
else
script.Parent:Destroy()
end

btw hi dan11111
Report Abuse
Dantopia is not online. Dantopia
Joined: 25 Jul 2012
Total Posts: 15711
19 Nov 2013 12:22 PM
[ Content Deleted ]
Report Abuse
Geodesic is not online. Geodesic
Joined: 02 Jun 2013
Total Posts: 998
19 Nov 2013 12:27 PM
apparently my post is blocking the rules
so i had to comment everything

-- local userIds = {
-- 261,
-- 1337,
-- 1
-- }

-- game.Players.PlayerAdded:connect(function(plr)
-- for i = 1,#userIds do
-- if plr.userId == userIds[i] then
-- --stuff
-- end
-- end
-- end)
Report Abuse
Vaporation is not online. Vaporation
Joined: 08 Jun 2011
Total Posts: 1397
19 Nov 2013 12:40 PM
totally forgot about the userid property lol
Report Abuse
Dantopia is not online. Dantopia
Joined: 25 Jul 2012
Total Posts: 15711
19 Nov 2013 12:45 PM
[ Content Deleted ]
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