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
|
  |
| Joined: 08 Feb 2013 |
| Total Posts: 5319 |
|
| |
|
BloxDaily
|
  |
| Joined: 08 Feb 2013 |
| Total Posts: 5319 |
|
| |
|
|
| 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
|
  |
| 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
|
  |
| Joined: 08 Feb 2013 |
| Total Posts: 5319 |
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|