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: Why doesnt this change the value?

Previous Thread :: Next Thread 
Hibobb is not online. Hibobb
Joined: 18 Apr 2010
Total Posts: 2146
07 Aug 2013 04:36 PM
_G.Open = {}
_G.Closed = {}

script.Parent.Touched:connect(function(hit)
if hit.Name ~= "GridPart" then
script.Parent.Available.Value = false
table.insert(_G.Closed,script.Parent)
elseif hit.Name == "GridPart" then
script.Parent.Available.Value = true
table.insert(_G.Open,script.Parent)
end
end)
Report Abuse
Hibobb is not online. Hibobb
Joined: 18 Apr 2010
Total Posts: 2146
08 Aug 2013 08:52 AM
^
Report Abuse
Hibobb is not online. Hibobb
Joined: 18 Apr 2010
Total Posts: 2146
08 Aug 2013 09:42 AM
help
Report Abuse
Hibobb is not online. Hibobb
Joined: 18 Apr 2010
Total Posts: 2146
08 Aug 2013 04:15 PM
How hard is this?
Report Abuse
Hibobb is not online. Hibobb
Joined: 18 Apr 2010
Total Posts: 2146
08 Aug 2013 04:21 PM
Alright since no one is helping I tried a few tests. It appears the whole script is not working. When I do print(_G.Open) it returns false
Report Abuse
FedoraTime is not online. FedoraTime
Joined: 15 Jul 2012
Total Posts: 996
08 Aug 2013 04:32 PM
Because in this line:

table.insert(--whatever you put in here)

You put 'script.Parent'. You need to put the table name.
Report Abuse
Hibobb is not online. Hibobb
Joined: 18 Apr 2010
Total Posts: 2146
08 Aug 2013 04:33 PM
The table name is _G.Open, I am inserting script.Parent into the table
Report Abuse
FedoraTime is not online. FedoraTime
Joined: 15 Jul 2012
Total Posts: 996
08 Aug 2013 04:37 PM
What is 'script.Parent' ?

A brick? A script?
Report Abuse
Hibobb is not online. Hibobb
Joined: 18 Apr 2010
Total Posts: 2146
08 Aug 2013 04:48 PM
A brick
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