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: is there a way to...

Previous Thread :: Next Thread 
meanad is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. meanad
Joined: 19 Mar 2013
Total Posts: 96
17 Jun 2013 02:47 PM
help please
Report Abuse
meanad is not online. meanad
Joined: 19 Mar 2013
Total Posts: 96
18 Jun 2013 03:23 PM
nvm


.
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