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: Whats wrong with my script?

Previous Thread :: Next Thread 
corto713 is not online. corto713
Joined: 12 Dec 2009
Total Posts: 962
23 Jun 2012 02:53 PM
I made this script offline at my house and posted it to see if it would work on my ScreenGui thing

All of this was redone on my iPhone because I did not have internet on my computer. Absolutely none of this worked and I would like to know why.

StarterGui
Frame
TextButton
Script
TextLabel1
TextLabel2
TextLabel3
TextLabel4
TextLabel5
TextLabel6
TextLabel7



function OnClicked()
script.Parent.Parent.BackgroundTransparency = 1
script.Parent.TextTransparency = 1
script.Parent.BackgroundTransparency = 1
script.Parent.Parent.TextLabel1.BackgroundTransparency = 1
script.Parent.Parent.TextLabel1.TextTransparency = 1
script.Parent.Parent.TextLabel2.BackgroundTransparency = 1
script.Parent.Parent.TextLabel2.TextTransparency = 1
script.Parent.Parent.TextLabel3.BackgroundTransparency = 1
script.Parent.Parent.TextLabel3.TextTransparency = 1
script.Parent.Parent.TextLabel4.BackgroundTransparency = 1
script.Parent.Parent.TextLabel4.TextTransparency = 1
script.Parent.Parent.TextLabel5.BackgroundTransparency = 1
script.Parent.Parent.TextLabel5.TextTransparency = 1
script.Parent.Parent.TextLabel6.BackgroundTransparency = 1
script.Parent.Parent.TextLabel6.TextTransparency = 1
script.Parent.Parent.TextLabel7.BackgroundTransparency = 1
script.Parent.Parent.TextLabel7.TextTransparency = 1
end
script.Parent.MouseButton1Down:connect(OnClicked)
Report Abuse
FlappydavidINC is not online. FlappydavidINC
Joined: 20 May 2011
Total Posts: 694
23 Jun 2012 03:04 PM
script.Parent.MouseButton1Down:connect(function()
script.Parent.Parent.BackgroundTransparency = 1
script.Parent.TextTransparency = 1
script.Parent.Parent.TextLabel1.BackgroundTransparency = 1
script.Parent.Parent.TextLabel1.TextTransparency = 1
script.Parent.Parent.TextLabel2.BackgroundTransparency = 1
script.Parent.Parent.TextLabel2.TextTransparency = 1
script.Parent.Parent.TextLabel3.BackgroundTransparency = 1
script.Parent.Parent.TextLabel3.TextTransparency = 1
script.Parent.Parent.TextLabel4.BackgroundTransparency = 1
script.Parent.Parent.TextLabel4.TextTransparency = 1
script.Parent.Parent.TextLabel5.BackgroundTransparency = 1
script.Parent.Parent.TextLabel5.TextTransparency = 1
script.Parent.Parent.TextLabel6.BackgroundTransparency = 1
script.Parent.Parent.TextLabel6.TextTransparency = 1
script.Parent.Parent.TextLabel7.BackgroundTransparency = 1
script.Parent.Parent.TextLabel7.TextTransparency = 1
end)

Nothing as far as I can see.
Report Abuse
corto713 is not online. corto713
Joined: 12 Dec 2009
Total Posts: 962
23 Jun 2012 03:06 PM
Ok, well how could I reorganize the Gui, Frame, script, and trxtlabels in explorer to make it work
Report Abuse
FlappydavidINC is not online. FlappydavidINC
Joined: 20 May 2011
Total Posts: 694
23 Jun 2012 03:08 PM
I don't think there's anything wrong with it.
Report Abuse
corto713 is not online. corto713
Joined: 12 Dec 2009
Total Posts: 962
23 Jun 2012 03:12 PM
That's odd, well it is up on my Climb 10,000 Stairs place and what it is supposed to do is make a GUI invisable on click of a button and it doesn't work so I'll see what I can find maybe try to fix it... I will have to do it later though because I'm on my phone right now.
Report Abuse
FlappydavidINC is not online. FlappydavidINC
Joined: 20 May 2011
Total Posts: 694
23 Jun 2012 03:17 PM
Just do, script.Parent.Parent.Parent:Destroy() or script.Parent.Parent.Visible = false.
Report Abuse
corto713 is not online. corto713
Joined: 12 Dec 2009
Total Posts: 962
23 Jun 2012 03:22 PM
I'll give it a try when I get my computer to the internet or something but won't know until then!

Thanks ~Corto713
Report Abuse
corto713 is not online. corto713
Joined: 12 Dec 2009
Total Posts: 962
23 Jun 2012 04:08 PM
How would I put a wait function on the destroy one. I noticed it worked but could I make it wait 20 seconds becore it does?
Report Abuse
FlappydavidINC is not online. FlappydavidINC
Joined: 20 May 2011
Total Posts: 694
23 Jun 2012 05:24 PM
Mmhmm, wait(20).
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