meanad
|
  |
| Joined: 19 Mar 2013 |
| Total Posts: 96 |
|
|
| 17 Jun 2013 10:39 AM |
| make it so that if someones name is in a table it will make a gui in the player seeable? |
|
|
| Report Abuse |
|
|
Desperian
|
  |
| Joined: 07 Feb 2012 |
| Total Posts: 3371 |
|
|
| 17 Jun 2013 10:41 AM |
Yes.
local Player = game.Players.LocalPlayer
Tab = { "Player" }
for _,v in pairs(Tab) do if v:lower() == Player.Name:lower() then print("Hey! You're in the list!") end end
|
|
|
| Report Abuse |
|
|
meanad
|
  |
| Joined: 19 Mar 2013 |
| Total Posts: 96 |
|
|
| 17 Jun 2013 10:43 AM |
| how would you do this from a script in Workspace? |
|
|
| Report Abuse |
|
|
Desperian
|
  |
| Joined: 07 Feb 2012 |
| Total Posts: 3371 |
|
|
| 17 Jun 2013 10:49 AM |
You would use the '.PlayerAdded' event. However, if you wish to do it that way you're better off cloning the GUI into their 'PlayerGui' than waiting for their 'PlayerGui' and then changing the visibility of an item. That's my opinion anyway.
http://wiki.roblox.com/index.php/PlayerAdded |
|
|
| Report Abuse |
|
|
meanad
|
  |
| Joined: 19 Mar 2013 |
| Total Posts: 96 |
|
|
| 17 Jun 2013 10:53 AM |
didn't help very much is there a way to use this to do it?
wait(3)
local tempadmins = {}
function onTouch(part) local humanoid = part.Parent:FindFirstChild("Humanoid") if (humanoid ~= nil) then -- if a humanoid exists, then table.insert(tempadmins,part.Parent.Name) end
script.Parent.Touched:connect(onTouch) |
|
|
| Report Abuse |
|
|
meanad
|
  |
| Joined: 19 Mar 2013 |
| Total Posts: 96 |
|
| |
|
meanad
|
  |
| Joined: 19 Mar 2013 |
| Total Posts: 96 |
|
| |
|