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: Simple script wont work.

Previous Thread :: Next Thread 
Rethiux is not online. Rethiux
Joined: 14 Nov 2012
Total Posts: 1132
01 Feb 2014 04:26 PM
local MapOpen = game.Workspace.Awards
function onClick()
MapOpen.Parent = game.Lighting
script.Parent.Visible = false
end

script.Parent.MouseButton1Down:connect(onClick)

+=~TRC IS AWESOME~=+ (Rethiux) *TRC: (MR) Commander*
Report Abuse
DiamondBladee is not online. DiamondBladee
Joined: 24 Feb 2013
Total Posts: 3527
01 Feb 2014 04:27 PM
Try removing the local.
Report Abuse
rossb654mail is not online. rossb654mail
Joined: 12 Oct 2009
Total Posts: 11004
01 Feb 2014 04:28 PM
Try removing the local.[2]
Does anything show up in the output?
Report Abuse
Rethiux is not online. Rethiux
Joined: 14 Nov 2012
Total Posts: 1132
01 Feb 2014 04:45 PM
local MapOpen = script.Parent.Value.Value
function onClick()
MapOpen.Parent = game.Lighting
script.Parent.Visible = false
end

script.Parent.MouseButton1Down:connect(onClick)



Value is an ObjectVlaue. Value.Value = game.Lighting.Awards

+=~TRC IS AWESOME~=+ (Rethiux) *TRC: (MR) Commander*
Report Abuse
maxomega3 is not online. maxomega3
Joined: 11 Jun 2010
Total Posts: 10668
01 Feb 2014 04:47 PM
You didn't take their advice at all. Remove the "local" in the variable at the top to make it a global variable.
Report Abuse
rossb654mail is not online. rossb654mail
Joined: 12 Oct 2009
Total Posts: 11004
01 Feb 2014 05:02 PM
He looks like an idiot C&Ger, based on his siggy. We get a lot at C&G, but a few are mature enough to produce a grammatically correct sentence.
Report Abuse
Rethiux is not online. Rethiux
Joined: 14 Nov 2012
Total Posts: 1132
01 Feb 2014 05:09 PM
Oh shut up.

+=~TRC IS AWESOME~=+ (Rethiux) *TRC: (MR) Commander*
Report Abuse
rossb654mail is not online. rossb654mail
Joined: 12 Oct 2009
Total Posts: 11004
01 Feb 2014 05:09 PM
Told you.
Back to the point, remove local and feed back.
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