Dantopia
|
  |
| Joined: 25 Jul 2012 |
| Total Posts: 15711 |
|
| |
|
REM25
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
|
| 19 Nov 2013 12:03 PM |
| ....what do you mean certain people? |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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
|
  |
| Joined: 25 Jul 2012 |
| Total Posts: 15711 |
|
| |
|
|
| 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
|
  |
| Joined: 25 Jul 2012 |
| Total Posts: 15711 |
|
| |
|
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 |
|
|
|
| 19 Nov 2013 12:40 PM |
| totally forgot about the userid property lol |
|
|
| Report Abuse |
|
|
Dantopia
|
  |
| Joined: 25 Jul 2012 |
| Total Posts: 15711 |
|
| |
|