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: Trying to make 1 gui open when i click another

Previous Thread :: Next Thread 
ironman0001 is not online. ironman0001
Joined: 19 Oct 2008
Total Posts: 15676
07 May 2013 01:35 PM
[ Content Deleted ]
Report Abuse
ironman0001 is not online. ironman0001
Joined: 19 Oct 2008
Total Posts: 15676
07 May 2013 01:40 PM
[ Content Deleted ]
Report Abuse
LordZonia is not online. LordZonia
Joined: 04 Dec 2011
Total Posts: 50
07 May 2013 01:49 PM
function random(mouse)

script.(INSERT LOCATION OF GUI YOU WANT TO OPEN HERE).visible = true
script.Parent.Text = "Close"
end

or something like that, I think.
Report Abuse
ironman0001 is not online. ironman0001
Joined: 19 Oct 2008
Total Posts: 15676
07 May 2013 02:16 PM
[ Content Deleted ]
Report Abuse
Dr01d3k4 is not online. Dr01d3k4
Joined: 11 Oct 2007
Total Posts: 17916
07 May 2013 02:20 PM
There's no problem with the code. What does the output say?
Report Abuse
ironman0001 is not online. ironman0001
Joined: 19 Oct 2008
Total Posts: 15676
07 May 2013 02:26 PM
[ Content Deleted ]
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
07 May 2013 02:34 PM
Parents arent good
Report Abuse
ironman0001 is not online. ironman0001
Joined: 19 Oct 2008
Total Posts: 15676
07 May 2013 02:40 PM
[ Content Deleted ]
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
07 May 2013 02:45 PM
Not enough or something? Its not the script.
Report Abuse
ironman0001 is not online. ironman0001
Joined: 19 Oct 2008
Total Posts: 15676
07 May 2013 04:16 PM
[ Content Deleted ]
Report Abuse
ironman0001 is not online. ironman0001
Joined: 19 Oct 2008
Total Posts: 15676
07 May 2013 10:37 PM
[ Content Deleted ]
Report Abuse
KillerKyle is not online. KillerKyle
Joined: 29 Jul 2007
Total Posts: 6371
08 May 2013 12:01 AM
Is the gui positioned/sized right? Is the Transparency 1? Check everything,
Report Abuse
ironman0001 is not online. ironman0001
Joined: 19 Oct 2008
Total Posts: 15676
08 May 2013 12:08 AM
[ Content Deleted ]
Report Abuse
chris1989 is not online. chris1989
Joined: 30 Nov 2007
Total Posts: 2520
08 May 2013 12:21 AM
ScreenGui's do not have a 'Visible' property you have 1 to many parents.
Report Abuse
chris1989 is not online. chris1989
Joined: 30 Nov 2007
Total Posts: 2520
08 May 2013 12:23 AM
Oh forget my last post. Use :findFirstChild("Inventory") the capitol f is breaking it.
Report Abuse
KillerKyle is not online. KillerKyle
Joined: 29 Jul 2007
Total Posts: 6371
08 May 2013 12:34 AM
FindFirstChild and findFirstChild, both work the same. That is not the error. If it was, we would have an output.

Is the frame Visible?
Is the Transparency = 1?
Is the size greater then (0, 0, 0, 0)?
Is the position on screen?
Report Abuse
KillerKyle is not online. KillerKyle
Joined: 29 Jul 2007
Total Posts: 6371
08 May 2013 12:35 AM
Is the script Enabled..?

Maybe the script is loading BEFORE the frame? But that would throw an error.
Report Abuse
KillerKyle is not online. KillerKyle
Joined: 29 Jul 2007
Total Posts: 6371
08 May 2013 12:37 AM
Run this--

print ("Script Loaded")
function onClicked()
print ("Button was pressed")
local open = script.Parent.Parent.Parent:FindFirstChild("Inventory")
print ("Found "..open.Name.."")
open.Visible = true
print (""..open.Name.." is now Visible")
end
print ("Script end")
script.Parent.MouseButton1Click:connect(onClicked)

--I added prints. Once you run this, Copy and paste your Output window to this thread.
Report Abuse
ironman0001 is not online. ironman0001
Joined: 19 Oct 2008
Total Posts: 15676
08 May 2013 01:16 PM
[ Content Deleted ]
Report Abuse
ironman0001 is not online. ironman0001
Joined: 19 Oct 2008
Total Posts: 15676
08 May 2013 01:28 PM
[ Content Deleted ]
Report Abuse
jhend27513 is not online. jhend27513
Joined: 17 Sep 2011
Total Posts: 3369
08 May 2013 01:38 PM
function onClick()

local open = script.Parent.Parent.Parent:FindFirstChild("Inventory")
if open then

open.Visible = true

end

script.Parent.MouseButton1Down:connect(onClick)


Try this.

Report Abuse
Dr01d3k4 is not online. Dr01d3k4
Joined: 11 Oct 2007
Total Posts: 17916
08 May 2013 01:38 PM
What is the className of script.Parent?
Report Abuse
KillerKyle is not online. KillerKyle
Joined: 29 Jul 2007
Total Posts: 6371
08 May 2013 02:20 PM
Oh I see.

script.Parent.MouseButton1Click:connect(onClicked)

It should be MouseButton1Down, not click.
Report Abuse
ironman0001 is not online. ironman0001
Joined: 19 Oct 2008
Total Posts: 15676
08 May 2013 02:44 PM
[ Content Deleted ]
Report Abuse
Dr01d3k4 is not online. Dr01d3k4
Joined: 11 Oct 2007
Total Posts: 17916
08 May 2013 02:45 PM
Are your parents correct?
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