|
| 11 Feb 2012 09:10 AM |
I put this script in my textbutton:
script.Parent.MouseButton1Down:connect(function(Touched) wait(1.5) game.StarterGui.ScreenGui.butcher1.Visible=true wait(1.5) game.StarterGui.ScreenGui.butcher2.Visible=true wait(1.5) game.StarterGui.ScreenGui.butcherdrop1.Visible=true game.StarterGui.ScreenGui.butcherdrop2.Visible=true end)
---
Now, the visible option gets true after the amount of time it's supposed to wait, but the Gui's don't appear on my screen. Is there any way to fix this? |
|
|
| Report Abuse |
|
|
| |
|
|
| 11 Feb 2012 09:17 AM |
| A gui that's able to be clicked on. |
|
|
| Report Abuse |
|
|
Colt324
|
  |
| Joined: 19 Aug 2009 |
| Total Posts: 1562 |
|
|
| 11 Feb 2012 09:26 AM |
| Redirect it to your PlayerGui, changing anything in the StarterGui won't change it for you. |
|
|
| Report Abuse |
|
|
|
| 11 Feb 2012 09:27 AM |
| This won't work because PlayerGui isn't part of StarterGui. PlayerGui is in a player. |
|
|
| Report Abuse |
|
|
|
| 11 Feb 2012 09:28 AM |
| How to redirect it? Since PlayerGui only appears in-game. |
|
|
| Report Abuse |
|
|
Colt324
|
  |
| Joined: 19 Aug 2009 |
| Total Posts: 1562 |
|
|
| 11 Feb 2012 09:31 AM |
Assuming that the script is in the ScreenGui...
sp = script.Parent
script.Parent.MouseButton1Down:connect(function(Touched) wait(1.5) sp.butcher1.Visible=true wait(1.5) sp.butcher2.Visible=true wait(1.5) sp.butcherdrop1.Visible=true sp.butcherdrop2.Visible=true end) |
|
|
| Report Abuse |
|
|
|
| 11 Feb 2012 09:32 AM |
| Oh right, i see. Thanks a lot. |
|
|
| Report Abuse |
|
|
Colt324
|
  |
| Joined: 19 Aug 2009 |
| Total Posts: 1562 |
|
|
| 11 Feb 2012 09:32 AM |
| That might not work, where is the script located? |
|
|
| Report Abuse |
|
|
|
| 11 Feb 2012 09:35 AM |
| Inside the TextButton, but i changed sp to script.Parent.Parent, which is the ScreenGui. |
|
|
| Report Abuse |
|
|
Colt324
|
  |
| Joined: 19 Aug 2009 |
| Total Posts: 1562 |
|
| |
|
| |
|