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: Gui script not showing up?

Previous Thread :: Next Thread 
RaveRae is not online. RaveRae
Joined: 25 Aug 2014
Total Posts: 218
29 Sep 2014 08:48 PM
game.StarterGui.DJGui.Close.Visible = false
game.StarterGui.DJGui.ScrollingFrame.Visible = false

function onClicked(PlayerWhoClicked)
game.StarterGui.DJGui.ScrollingFrame.Visible = true
game.StarterGui.DJGui.Close.Visible = true

end

script.Parent.ClickDetector.MouseButton1up:connect(function(Clicked)

end)

I don't understand why the gui isn't showing up when I click on the button with the click detector.
Report Abuse
cole7778 is not online. cole7778
Joined: 19 Nov 2009
Total Posts: 7827
29 Sep 2014 09:00 PM
it should be MouseButtone1Down
Report Abuse
cole7778 is not online. cole7778
Joined: 19 Nov 2009
Total Posts: 7827
29 Sep 2014 09:00 PM
Button*
Report Abuse
4444vince2 is not online. 4444vince2
Joined: 08 Nov 2008
Total Posts: 4880
29 Sep 2014 09:15 PM
Well cause...


game.StarterGui.DJGui.Close.Visible = false
game.StarterGui.DJGui.ScrollingFrame.Visible = false

function onClicked(PlayerWhoClicked) --This works but nothing is connected to it.
--Also don't do it this way or it will only show up to everyone who repsawns
game.StarterGui.DJGui.ScrollingFrame.Visible = true
game.StarterGui.DJGui.Close.Visible = true

end

script.Parent.ClickDetector.MouseButton1up:connect(function(Clicked)
--This is what is ran when you click it..
end)

Do this:

script.Parent.ClickDetector.MouseClick:connect(function(Player)
Player.PlayerGui:WaitForChild'DJGui'--Waits for DJGui then once it's found it will open the guis
Player.PlayerGui.DJGui.ScrollingFrame.Visible = true
Player.PlayerGui.DJGui.Close.Visible = true
end)
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