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: Why won't this work

Previous Thread :: Next Thread 
0mrlight0 is not online. 0mrlight0
Joined: 22 Sep 2012
Total Posts: 85
06 Jul 2016 02:46 PM
i've put this tool in starterpack and when it is equipped it is meant to show a gui...
why on earth won't this work.
wait(0.5)
-- VARIABLE LIST
local HC = script.Parent
local Folder = game.StarterGui.HQControls
local Background = Folder.Background
local MainMenu = Folder.MainMenu
local MMExterior = MainMenu.MMExterior
local MMLights = MainMenu.MMLights





HC.Equipped:connect(function()
Background.Visible = true
MMExterior.Visible = true
end)


HC.Equipped:connect(function()
Background.Visible = false
MMExterior.Visible = false
MMLights.Visible = false
end)


Report Abuse
DurstAuric is not online. DurstAuric
Joined: 12 May 2009
Total Posts: 8066
06 Jul 2016 02:51 PM
"local Folder = game.StarterGui.HQControls"
Okay then.


-=[ RAP: 345,693 || DurstAuric; the narb of ROBLOX ]=-
Report Abuse
0mrlight0 is not online. 0mrlight0
Joined: 22 Sep 2012
Total Posts: 85
06 Jul 2016 02:53 PM
What? Thats the name of the ScreenGui, that i changed


Report Abuse
DurstAuric is not online. DurstAuric
Joined: 12 May 2009
Total Posts: 8066
06 Jul 2016 02:54 PM
local Folder = game:GetService("Players").LocalPlayer.Backpack:WaitForChild("HQControls")

-- Script must be a LocalScript


-=[ RAP: 345,710 || DurstAuric; the narb of ROBLOX ]=-
Report Abuse
0mrlight0 is not online. 0mrlight0
Joined: 22 Sep 2012
Total Posts: 85
06 Jul 2016 02:58 PM
Script is local, that still didn't work.


Report Abuse
Skellobit is not online. Skellobit
Joined: 13 Apr 2016
Total Posts: 12758
06 Jul 2016 02:59 PM
change Backpack to PlayerGui

Formerly ToxicDominator - add 17,509 posts | :(){:|:&};:
Report Abuse
0mrlight0 is not online. 0mrlight0
Joined: 22 Sep 2012
Total Posts: 85
06 Jul 2016 03:00 PM
omg, that worked. How come? sorry im a new scripter.


Report Abuse
Skellobit is not online. Skellobit
Joined: 13 Apr 2016
Total Posts: 12758
06 Jul 2016 03:10 PM
because GUIs aren't cloned into Backpack from StarterGui, durst made a silly mistake

Formerly ToxicDominator - add 17,509 posts | :(){:|:&};:
Report Abuse
DurstAuric is not online. DurstAuric
Joined: 12 May 2009
Total Posts: 8066
06 Jul 2016 03:11 PM
Oh yeah, my mistake. Ahaha. xd


-=[ RAP: 345,845 || DurstAuric; the narb of ROBLOX ]=-
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