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: Open and Close help

Previous Thread :: Next Thread 
BloxDaily is not online. BloxDaily
Joined: 08 Feb 2013
Total Posts: 5319
11 Dec 2013 06:53 PM
for _,v in pairs(Owners) do
if v:lower() == LocalPlayer.Name:lower() then
LocalPlayer.PlayerGui["Blox's Admin GUI"].Owner.Visible = true
LocalPlayer.PlayerGui["Blox's Admin GUI"].TextButton.Text = "Close Admin Commands"
elseif LocalPlayer.PlayerGui["Blox's Admin GUI"].TextButton.Text == "Close Admin Commands" then
LocalPlayer.PlayerGui["Blox's Admin GUI"].Admin.Visible = false
LocalPlayer.PlayerGui["Blox's Admin GUI"].TextButton.Text = "Open Admin Commands"
end
end
end
for _,v in pairs(Admins) do
if v:lower() == LocalPlayer.Name:lower() then
LocalPlayer.PlayerGui["Blox's Admin GUI"].Admin.Visible = true
LocalPlayer.PlayerGui["Blox's Admin GUI"].TextButton.Text = "Close Admin Commands"
elseif LocalPlayer.PlayerGui["Blox's Admin GUI"].TextButton.Text == "Close Admin Commands" then
LocalPlayer.PlayerGui["Blox's Admin GUI"].Admin.Visible = false
LocalPlayer.PlayerGui["Blox's Admin GUI"].TextButton.Text = "Open Admin Commands"
end
end
end


It is not working were that when it is close admin commands it will go back to open admin commands and disable the frame.
Report Abuse
BloxDaily is not online. BloxDaily
Joined: 08 Feb 2013
Total Posts: 5319
11 Dec 2013 07:03 PM
Bump
Report Abuse
BloxDaily is not online. BloxDaily
Joined: 08 Feb 2013
Total Posts: 5319
11 Dec 2013 07:08 PM
..
Report Abuse
Joe11Joe99 is not online. Joe11Joe99
Joined: 22 May 2011
Total Posts: 34458
11 Dec 2013 07:20 PM
try using :FindFirstChild(NameValue) instead

Odnarb will RULE - http://web.roblox.com/Forum/ShowPost.aspx?PostID=114315214
Report Abuse
BloxDaily is not online. BloxDaily
Joined: 08 Feb 2013
Total Posts: 5319
11 Dec 2013 07:24 PM
Nothing is wrong with value or anything.

It is this part

elseif LocalPlayer.PlayerGui["Blox's Admin GUI"].TextButton.Text == "Close Admin Commands" then
LocalPlayer.PlayerGui["Blox's Admin GUI"].Admin.Visible = false
LocalPlayer.PlayerGui["Blox's Admin GUI"].TextButton.Text = "Open Admin Commands"

It is not doing if the text is Close Admin Commands it would go back to Open Admin Commands and disable the frame.
Report Abuse
BloxDaily is not online. BloxDaily
Joined: 08 Feb 2013
Total Posts: 5319
11 Dec 2013 07:30 PM
-.-
Report Abuse
Joe11Joe99 is not online. Joe11Joe99
Joined: 22 May 2011
Total Posts: 34458
11 Dec 2013 07:31 PM
elseif LocalPlayer.PlayerGui:findFirstChild("Bloxs Admin GUI").TextButton.Text == "Close Admin Commands" then
LocalPlayer.PlayerGui:findFirstChild("Bloxs Admin GUI").Admin.Visible = false
LocalPlayer.PlayerGui:findFirstChild("Bloxs Admin GUI").TextButton.Text = "Open Admin Commands"

apostrophes arent allowed in ls

Odnarb will RULE - http://web.roblox.com/Forum/ShowPost.aspx?PostID=114315214
Report Abuse
Joe11Joe99 is not online. Joe11Joe99
Joined: 22 May 2011
Total Posts: 34458
11 Dec 2013 07:31 PM
elseif LocalPlayer.PlayerGui:findFirstChild("Bloxs Admin GUI").TextButton.Text == "Close Admin Commands" then
LocalPlayer.PlayerGui:findFirstChild("Bloxs Admin GUI").Admin.Visible = false
LocalPlayer.PlayerGui:findFirstChild("Bloxs Admin GUI").TextButton.Text = "Open Admin Commands"

apostrophes arent allowed in ls

Odnarb will RULE - http://web.roblox.com/Forum/ShowPost.aspx?PostID=114315214
Report Abuse
Joe11Joe99 is not online. Joe11Joe99
Joined: 22 May 2011
Total Posts: 34458
11 Dec 2013 07:31 PM
elseif LocalPlayer.PlayerGui:findFirstChild("Bloxs Admin GUI").TextButton.Text == "Close Admin Commands" then
LocalPlayer.PlayerGui:findFirstChild("Bloxs Admin GUI").Admin.Visible = false
LocalPlayer.PlayerGui:findFirstChild("Bloxs Admin GUI").TextButton.Text = "Open Admin Commands"

apostrophes arent allowed in ls

Odnarb will RULE - http://web.roblox.com/Forum/ShowPost.aspx?PostID=114315214
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