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: Global(_G) Door #HELP!#

Previous Thread :: Next Thread 
Yoyoking11TC is not online. Yoyoking11TC
Joined: 12 Jul 2011
Total Posts: 30
30 Aug 2011 06:57 PM
Okay so I'm making this door using Global. But for somereason it prints Nill making the door Nill, any suggestions?

No output

_G.One = "Running"
_G.Two = 0.5
_G.Three = true
_G.Four = false
_G.Five = 0
-------------------------------------------------------------------------
script.Parent.ClickDetector.MouseClick:connect(function()
if script.Parent.Transparency == _G.Five then
script.Parent.Transparency = _G.Two
script.Parent.CanCollide = _G.Four
print(_G.One)
else
script.Parent.Transparency = _G.Five
script.Parent.CanCollide = _G.Three
print(_G.One)
end
end)
Report Abuse
Yoyoking11TC is not online. Yoyoking11TC
Joined: 12 Jul 2011
Total Posts: 30
30 Aug 2011 07:13 PM
Bump
Report Abuse
Yoyoking11TC is not online. Yoyoking11TC
Joined: 12 Jul 2011
Total Posts: 30
30 Aug 2011 07:20 PM
Bump
Report Abuse
Flurite is not online. Flurite
Joined: 03 Apr 2011
Total Posts: 5386
30 Aug 2011 07:23 PM
There doesn't seem to be any problems.. can I see the full output?

~Flurite
Report Abuse
Yoyoking11TC is not online. Yoyoking11TC
Joined: 12 Jul 2011
Total Posts: 30
30 Aug 2011 07:25 PM
Nothing, doesnt even say it ran but it went to Nill.

All that happend was
>
0
Report Abuse
deathman12e3 is not online. deathman12e3
Joined: 10 Nov 2009
Total Posts: 7284
30 Aug 2011 08:06 PM
Make sure the Variables are stated first. I'm suggesting the variables are in a seperate script.
Report Abuse
roblock7777 is not online. roblock7777
Joined: 21 Aug 2008
Total Posts: 3383
30 Aug 2011 08:12 PM
Transparency = G.One.

G.One = "Running"

NaN?

Make it a number value.
Report Abuse
roblock7777 is not online. roblock7777
Joined: 21 Aug 2008
Total Posts: 3383
30 Aug 2011 08:13 PM
Oh, sorry.

I misread.

*you need to specify the message type
Report Abuse
Yoyoking11TC is not online. Yoyoking11TC
Joined: 12 Jul 2011
Total Posts: 30
31 Aug 2011 08:47 AM
Ohhh right. Yeah. Thank's :D
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