gamert7
|
  |
| Joined: 18 Nov 2008 |
| Total Posts: 4986 |
|
|
| 24 Oct 2012 11:08 PM |
These scipts will not even work can you tell me why?
Function onClicked() script.Parent.Parent.Parent.Character:Destroy() end script.Parent.MouseButton1Click:connect(onClicked) "I am using this to close the gui's" ------------------------------------------------------- local location = [game.StarterGui.ScreenGui.Instructions] function toggle() location.Visible = not location.Visible end script.Parent.MouseButton1Down:connect(toggle)
"This Is for The 3rd Frame.. I am using it to make a frame appear when a text button is pushed." ----------------------------------------------------------------- Function onClicked() script.Parent.Parent.Parent.Parent.Parent.Character:Destroy() end script.Parent.MouseButton1Click:connect(onClicked)
"This is if the person wants to exit the game"
Can you tell me why they will not work? |
|
|
| Report Abuse |
|
|
TaaRt
|
  |
| Joined: 26 Apr 2009 |
| Total Posts: 5039 |
|
|
| 25 Oct 2012 04:57 AM |
function onClicked() script.Parent.Parent.Parent.Character:remove() end script.Parent.MouseButton1Click:connect(onClicked) "I am using this to close the gui's" ------------------------------------------------------- local location = game.StarterGui.ScreenGui.Instructions function toggle() location.Visible = not location.Visible end script.Parent.MouseButton1Down:connect(toggle)
"This Is for The 3rd Frame.. I am using it to make a frame appear when a text button is pushed." ----------------------------------------------------------------- function onClicked() script.Parent.Parent.Parent.Parent.Parent.Character:remove() end script.Parent.MouseButton1Click:connect(onClicked)
Not familiar with toggle GUI buttons, tried correcting some capitals. I also tend to stick with :remove() rather than Destroy.
|
|
|
| Report Abuse |
|
|
gamert7
|
  |
| Joined: 18 Nov 2008 |
| Total Posts: 4986 |
|
| |
|
gamert7
|
  |
| Joined: 18 Nov 2008 |
| Total Posts: 4986 |
|
| |
|
|
| 25 Oct 2012 06:01 PM |
| Your making this WAY more complex then what it needs to be. PM me if you actually want me to help. |
|
|
| Report Abuse |
|
|