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: TextButton question

Previous Thread :: Next Thread 
UberPlayer is not online. UberPlayer
Joined: 24 Jul 2010
Total Posts: 722
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
vegetasupersaiyan478 is not online. vegetasupersaiyan478
Joined: 29 Oct 2011
Total Posts: 3
11 Feb 2012 09:15 AM
Whats a TextButton?
Report Abuse
UberPlayer is not online. UberPlayer
Joined: 24 Jul 2010
Total Posts: 722
11 Feb 2012 09:17 AM
A gui that's able to be clicked on.
Report Abuse
Colt324 is not online. 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
YaYaBinks3 is not online. YaYaBinks3
Joined: 05 Jun 2009
Total Posts: 2631
11 Feb 2012 09:27 AM
This won't work because PlayerGui isn't part of StarterGui. PlayerGui is in a player.
Report Abuse
UberPlayer is not online. UberPlayer
Joined: 24 Jul 2010
Total Posts: 722
11 Feb 2012 09:28 AM
How to redirect it? Since PlayerGui only appears in-game.
Report Abuse
Colt324 is not online. 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
UberPlayer is not online. UberPlayer
Joined: 24 Jul 2010
Total Posts: 722
11 Feb 2012 09:32 AM
Oh right, i see. Thanks a lot.
Report Abuse
Colt324 is not online. 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
UberPlayer is not online. UberPlayer
Joined: 24 Jul 2010
Total Posts: 722
11 Feb 2012 09:35 AM
Inside the TextButton, but i changed sp to script.Parent.Parent, which is the ScreenGui.
Report Abuse
Colt324 is not online. Colt324
Joined: 19 Aug 2009
Total Posts: 1562
11 Feb 2012 09:35 AM
ok, should work then.
Report Abuse
UberPlayer is not online. UberPlayer
Joined: 24 Jul 2010
Total Posts: 722
11 Feb 2012 09:36 AM
And it works, thanks :)
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