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 » Scripters
Home Search
 

Re: I need help with a script connection

Previous Thread :: Next Thread 
beinas is not online. beinas
Joined: 16 Feb 2015
Total Posts: 3017
10 Aug 2015 03:13 AM
So, I use a surface GUI with a button connection to a new GUI in the lighting.
function onClick(mouse)
if game.Lighting.SceenGui.Label.Visible == true then
script.Parent.Parent.Lab1.Visible = false--visible
script.Parent.BackgroundColor = BrickColor.new("Bright green")
script.Parent.Text = "Music Player"
end
end
script.Parent.MouseButton1Click:connect(onClick)

If anyone has any suggestions or a different script please message me.
Report Abuse
Ghorre is not online. Ghorre
Joined: 15 Feb 2015
Total Posts: 160
10 Aug 2015 03:14 AM
"if game.Lighting.SceenGui.Label.Visible == true then"

SceenGui? Typo?

If it's not that - post what the problem is...


GOD is a DJ
Report Abuse
beinas is not online. beinas
Joined: 16 Feb 2015
Total Posts: 3017
10 Aug 2015 03:20 AM
ScreenGui is what I am trying to connect it to. But on the SurfaceGui it doesn't open the GUI from the lighting. I am trying to create a new interface for music player. Click SurfaceGui then opens a new on the players screen and you can change music, volume etc.
Report Abuse
Deafgift100 is not online. Deafgift100
Joined: 09 May 2010
Total Posts: 3958
10 Aug 2015 03:29 AM
you wrote SCEENgui
Report Abuse
beinas is not online. beinas
Joined: 16 Feb 2015
Total Posts: 3017
10 Aug 2015 03:35 AM
Yeah, I just fixed my typo I still cannot get it to work
Report Abuse
Isosta is not online. Isosta
Joined: 10 May 2015
Total Posts: 14729
10 Aug 2015 06:05 AM
why do you have a screen gui in lighting


FilteringDisabled is for squares
Report Abuse
FutureWebsiteOwner is online. FutureWebsiteOwner
Joined: 29 Jul 2014
Total Posts: 468
10 Aug 2015 06:06 AM
cause he's storing a UI
Report Abuse
Isosta is not online. Isosta
Joined: 10 May 2015
Total Posts: 14729
10 Aug 2015 06:08 AM
Future you need to stop giving people advice.
Everything I've seen you post today about scripting is either incorrect, inefficient, or deprecated.


FilteringDisabled is for squares
Report Abuse
FutureWebsiteOwner is online. FutureWebsiteOwner
Joined: 29 Jul 2014
Total Posts: 468
10 Aug 2015 06:08 AM
you have something against me?
Report Abuse
Isosta is not online. Isosta
Joined: 10 May 2015
Total Posts: 14729
10 Aug 2015 06:10 AM
No, I just think you're incompetent and shouldn't assist people with scripting.
Not saying that you're a bad scripter, you could be tired or something, idk, but every post you've made today has given me a cancer.


FilteringDisabled is for squares
Report Abuse
FutureWebsiteOwner is online. FutureWebsiteOwner
Joined: 29 Jul 2014
Total Posts: 468
10 Aug 2015 06:11 AM
yeah, you have something against me...
Report Abuse
Isosta is not online. Isosta
Joined: 10 May 2015
Total Posts: 14729
10 Aug 2015 06:12 AM
that's not something against you. I personally have no issue with your personality or anything like that, you're just an incompetent scripter :/


FilteringDisabled is for squares
Report Abuse
FutureWebsiteOwner is online. FutureWebsiteOwner
Joined: 29 Jul 2014
Total Posts: 468
10 Aug 2015 06:14 AM
you must have something against me since I'm not close to an incompetent scripter. But i guess it's your opinion :l
Report Abuse
Zentoc is not online. Zentoc
Joined: 15 Aug 2012
Total Posts: 126
10 Aug 2015 06:15 AM
stop posting irrelevant things on this thread.
Report Abuse
FutureWebsiteOwner is online. FutureWebsiteOwner
Joined: 29 Jul 2014
Total Posts: 468
10 Aug 2015 06:20 AM
i know storing a UI in lighting is inefficient but i was just answering your question :P
Report Abuse
beinas is not online. beinas
Joined: 16 Feb 2015
Total Posts: 3017
12 Aug 2015 06:26 PM
Future is correct I was storying a UI. So your wrong.
Report Abuse
Isosta is not online. Isosta
Joined: 10 May 2015
Total Posts: 14729
13 Aug 2015 04:37 AM
@beinas,
No, I'm not wrong, but storing a GUI in lighting is inefficient. They made server and replicated storage for a reason.
Report Abuse
UnashamedTrash is not online. UnashamedTrash
Joined: 15 Jul 2014
Total Posts: 15
13 Aug 2015 07:10 AM
"storing a GUI in lighting is inefficient"

it's not necessarily inefficient, it's just terribly outdated
Report Abuse
KingJacko is not online. KingJacko
Joined: 20 Jun 2008
Total Posts: 3944
13 Aug 2015 07:18 AM
"just terribly outdated"
"just"
"JUST"

um.
That still makes it a worse place to store instances.
Report Abuse
UnashamedTrash is not online. UnashamedTrash
Joined: 15 Jul 2014
Total Posts: 15
13 Aug 2015 08:14 AM
does ReplicatedStorage have some special feature that makes storing things in it more efficient?

I know ServerStorage is server only so that's an advantage for some things
Report Abuse
Isosta is not online. Isosta
Joined: 10 May 2015
Total Posts: 14729
13 Aug 2015 12:12 PM
Replicated storage is for when you're using filteringenabled and need instances to be available to client and server.
Report Abuse
Isosta is not online. Isosta
Joined: 10 May 2015
Total Posts: 14729
13 Aug 2015 12:12 PM
It's also the common storage place for remoteevents and remotefunctions
Report Abuse
Moistality is not online. Moistality
Joined: 01 Nov 2012
Total Posts: 58
13 Aug 2015 12:23 PM
ReplicatedStorage > Lighting

Roblox made ReplicatedStorage for a reason and it's to get rid of people storing their stuff in Lighting.

http://wiki.roblox.com/index.php?title=API:Class/ReplicatedStorage

"A container whose contents are replicated to the server and all connected clients. This is an intended replacement of the Lighting service as a storage place for ROBLOX assets, such as models."
Report Abuse
NeonSkelion is not online. NeonSkelion
Joined: 16 Aug 2012
Total Posts: 12452
13 Aug 2015 01:13 PM
Lighting should only be used for Lighting.


"who needs themes when you have memes"
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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