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: Script keeps breaking?

Previous Thread :: Next Thread 
cyclone3260 is not online. cyclone3260
Joined: 23 Aug 2010
Total Posts: 1038
09 Sep 2012 04:01 PM
Frame1 = game.Players.LocalPlayer.PlayerGui.RPGShop.Frame1
Frame2 = game.Players.LocalPlayer.PlayerGui.RPGShop.Frame2
MFrame1 = Frame2.MFrame1
MFrame2 = Frame2.MFrame2
MFrame3 = Frame2.MFrame3
MFrame4 = Frame2.MFrame4
MFrame5 = Frame2.MFrame5
MFrame6 = Frame2.MFrame6
MFrame7 = Frame2.MFrame7
MFrame8 = Frame2.MFrame8
MFrame9 = Frame2.MFrame9


BronzeStxt = game.Players.LocalPlayer.PlayerGui.RPGShop.Frame2.MFrame1.BronzeStxt
function onClick()
game.Players.LocalPlayer.PlayerGui.RPGShop.Close.Visible = true
game.Players.LocalPlayer.PlayerGui.RPGShop.Close.Active = true
script.Parent.Visible = false
script.Parent.Active = false
Frame1.Visible = true
Frame2.Visible = true
MFrame1.Visible = true
MFrame1.Active = true

MFrame2.Visible = true
MFrame2.Active = true

MFrame3.Visible = true
MFrame3.Active = true

MFrame4.Visible = true
MFrame4.Active = true

MFrame5.Visible = true
MFrame5.Active = true

MFrame6.Visible = true
MFrame6.Active = true

MFrame7.Visible = true
MFrame7.Active = true

MFrame8.Visible = true
MFrame8.Active = true

MFrame9.Visible = true
MFrame9.Active = true
game.Players.LocalPlayer.PlayerGui.RPGShop.Frame2.Upgrades.Active = true
game.Players.LocalPlayer.PlayerGui.RPGSop.Frame2.Upgrades.Visible = true
end
script.Parent.MouseButton1Down:connect(onClick)
----

You can only open then close it once, and then it wouldn't work.

Help?

If you need the Closing script, say so in comment area.
Report Abuse
C0D3Y is not online. C0D3Y
Joined: 24 Jul 2010
Total Posts: 1692
09 Sep 2012 04:04 PM
Close script please.
Report Abuse
cyclone3260 is not online. cyclone3260
Joined: 23 Aug 2010
Total Posts: 1038
09 Sep 2012 04:06 PM
Frame1 = game.Players.LocalPlayer.PlayerGui.RPGShop.Frame1
Frame2 = game.Players.LocalPlayer.PlayerGui.RPGShop.Frame2
MFrame1 = Frame2.MFrame1
MFrame2 = Frame2.MFrame2
MFrame3 = Frame2.MFrame3
MFrame4 = Frame2.MFrame4
MFrame5 = Frame2.MFrame5
MFrame6 = Frame2.MFrame6
MFrame7 = Frame2.MFrame7
MFrame8 = Frame2.MFrame8
MFrame9 = Frame2.MFrame9


BronzeStxt = game.Players.LocalPlayer.PlayerGui.RPGShop.Frame2.MFrame1.BronzeStxt
function onClick()
game.Players.LocalPlayer.PlayerGui.RPGShop.Open.Visible = true
game.Players.LocalPlayer.PlayerGui.RPGShop.Open.Active = true
script.Parent.Visible = false
script.Parent.Active = false
Frame1.Visible = false
Frame2.Visible = false
MFrame1.Visible = false
MFrame1.Active = false

MFrame2.Visible = false
MFrame2.Active = false

MFrame3.Visible = false
MFrame3.Active = false

MFrame4.Visible = false
MFrame4.Active = false

MFrame5.Visible = false
MFrame5.Active = false

MFrame6.Visible = false
MFrame6.Active = false

MFrame7.Visible = false
MFrame7.Active = false

MFrame8.Visible = false
MFrame8.Active = false

MFrame9.Visible = false
MFrame9.Active = false
game.Players.LocalPlayer.PlayerGui.RPGShop.Frame2.Upgrades.Active = false
game.Players.LocalPlayer.PlayerGui.RPGSop.Frame2.Upgrades.Visible = false
end
script.Parent.MouseButton1Down:connect(onClick)
-------


If you want to see it for yourself go here:

http://www.roblox.com/User.aspx?submenu=true
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
09 Sep 2012 04:06 PM
for a open/close button use


local gui = script.Parent.Parent.test -- what frame/box do you want to open/close?
script.Parent.MouseButton1Click(function ()
gui = not gui

end)
Report Abuse
cyclone3260 is not online. cyclone3260
Joined: 23 Aug 2010
Total Posts: 1038
09 Sep 2012 04:18 PM
@notsopwnedg: Umm.. That's very confusing.. Was that meant to be posted on here?
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
09 Sep 2012 04:20 PM
Remove all the ".Active" parts.

-------------------------
~thedestroyer115, nice and helpful posts- sometimes~
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
09 Sep 2012 04:21 PM
nvm...
Report Abuse
AdvorsusDuo is not online. AdvorsusDuo
Joined: 17 May 2012
Total Posts: 5265
09 Sep 2012 04:21 PM
Instead of doing all of that, just make all the other stuff inside of one big frame and make the frame visible. Much less code.
Report Abuse
cyclone3260 is not online. cyclone3260
Joined: 23 Aug 2010
Total Posts: 1038
09 Sep 2012 04:23 PM
@Advorus: So more codes will break the script??
Report Abuse
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
09 Sep 2012 04:26 PM
Big frame = Size 1,1

visible off = all off
Report Abuse
AdvorsusDuo is not online. AdvorsusDuo
Joined: 17 May 2012
Total Posts: 5265
09 Sep 2012 04:28 PM
No, it's just less code to dissect. Most of it is unnecesarry.
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
09 Sep 2012 04:42 PM
Did you do what I said?


-------------------------
~thedestroyer115, nice and helpful posts- sometimes~
Report Abuse
cyclone3260 is not online. cyclone3260
Joined: 23 Aug 2010
Total Posts: 1038
09 Sep 2012 04:45 PM
@Thedestroyer115: You would still be able to press the button :|
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
09 Sep 2012 04:47 PM
No, when it's invisible it cannot be clicked.

-------------------------
~thedestroyer115, nice and helpful posts- sometimes~
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