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: Lua makes no sense!

Previous Thread :: Next Thread 
Saodo is not online. Saodo
Joined: 26 Jul 2011
Total Posts: 1206
25 Apr 2014 05:35 PM
Why wouldn't this work?!


Admins = "Saodo"
game.StarterGui.guiAdmin.Frame.content = adminGUI

adminGUI.text = "No Admin"

game.Players.PlayerAdded:connect(function(player)
if player.Name == Admins then
adminGUI.Text = "Saodo"
end
end)

game.Players.PlayerRemoving:connect(function(platerrem)
if player.name == Admins then
adminGUI.Text = "No Admin"
end
end)
Report Abuse
HeavenlyRobloxrox3 is not online. HeavenlyRobloxrox3
Joined: 02 May 2012
Total Posts: 101
25 Apr 2014 05:41 PM
Ummm...


On line 2: There isn't a property named content in frame...
Report Abuse
Saodo is not online. Saodo
Joined: 26 Jul 2011
Total Posts: 1206
25 Apr 2014 05:42 PM
Thats the name i have given it. I re-named it. The hierarchy is correct
Report Abuse
HeavenlyRobloxrox3 is not online. HeavenlyRobloxrox3
Joined: 02 May 2012
Total Posts: 101
25 Apr 2014 05:43 PM
Well then what is content then? A child or a property?
Report Abuse
KOTwarrior is not online. KOTwarrior
Joined: 13 Jun 2012
Total Posts: 4376
25 Apr 2014 05:45 PM
-- um fail

Admins = {"Saodo", "admin2"}
adminGUI = game.StarterGui.guiAdmin.Frame.content

adminGUI.Text = "No Admin"

game.Players.PlayerAdded:connect(function(player)
if player.Name == Admins then
adminGUI.Text = player.Name
end
end)

game.Players.PlayerRemoving:connect(function(platerrem)
if player.name == Admins then
adminGUI.Text = "No Admin"
end
end)
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