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: Opening a GUI from a StarterGui (Script)

Previous Thread :: Next Thread 
BloxianBoy1234 is not online. BloxianBoy1234
Joined: 27 Oct 2013
Total Posts: 1006
20 Apr 2015 02:40 PM
Hi, I am not quite sure about this script. But it just not working, I tried testing this as a local script and tested in-game and in test server. Still couldn't work!

Can you figure this script out?

function lighting()
local Control = game:GetService("StarterGui").WorkingOnGui.CeilingLightControl.Visible = true
end

script.Parent.MouseButton1Down:connect(lighting)
Report Abuse
gerov is not online. gerov
Joined: 05 Feb 2011
Total Posts: 5504
20 Apr 2015 02:43 PM
Do this:


function lighting()
game:GetService("StarterGui").WorkingOnGui.CeilingLightControl.Visible = true
end

script.Parent.MouseButton1Down:connect(lighting)


You cannot assign a variable and change a value on the same line in the way you were doing it.
Report Abuse
BloxianBoy1234 is not online. BloxianBoy1234
Joined: 27 Oct 2013
Total Posts: 1006
20 Apr 2015 02:47 PM
I have just figured that out, but it's not a local script which I could try.
Report Abuse
NovusTheory is not online. NovusTheory
Joined: 14 Oct 2009
Total Posts: 4532
20 Apr 2015 02:48 PM
:GetService("StarterGui")

Uhh, How has nobody caught that you can't edit the StarterGui
Report Abuse
BloxianBoy1234 is not online. BloxianBoy1234
Joined: 27 Oct 2013
Total Posts: 1006
20 Apr 2015 02:50 PM
Tried it in a local script, but it still doesn't work. Any other solutions?
Report Abuse
BloxianBoy1234 is not online. BloxianBoy1234
Joined: 27 Oct 2013
Total Posts: 1006
20 Apr 2015 04:12 PM
Bump.
Report Abuse
MajikkuSoul is not online. MajikkuSoul
Joined: 15 Feb 2014
Total Posts: 196
20 Apr 2015 04:31 PM
Ewwwwwwwwwwwwwwww who edits a gui from the starter gui. *COUGH* PlayerGui *COUGH*

script.Parent.MouseButton1Down:connect(function(lighting)
p = game.Players.LocalPlayer
p.PlayerGui.WorkingOnGui.CeilingLightControl.Visible = true
end)


~ All you need to know is that I'm an otaku
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