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: I need help. I don't think my code works..

Previous Thread :: Next Thread 
mic144 is not online. mic144
Joined: 14 Oct 2009
Total Posts: 1598
06 Sep 2012 10:56 PM
Ok so I want this brick when its completely transpareny for the child script(s) to be disabled. I have little knowledge of coding.

function check(part)
a = script.Parent
if a.Transparency ~= nil then
script.Parent.lava.Disabled = false
else
script.Parent.lava.Disabled = true
end
end
script.Parent.Touched:connect(check)


Whats wrong with it?
Report Abuse
mic144 is not online. mic144
Joined: 14 Oct 2009
Total Posts: 1598
06 Sep 2012 10:56 PM
THe lava is the name of the child script...
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
06 Sep 2012 11:04 PM
function check(part)
a = script.Parent
if a.Transparency == 1 then
script.Parent.lava.Disabled = true
else
script.Parent.lava.Disabled = false
end
end
script.Parent.Touched:connect(check)

http://wiki.roblox.com/index.php/User:ElectricBlaze
Report Abuse
mic144 is not online. mic144
Joined: 14 Oct 2009
Total Posts: 1598
06 Sep 2012 11:10 PM
I had a feeling that was it. Thank you!
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
06 Sep 2012 11:19 PM
No problem. ;)

http://wiki.roblox.com/index.php/User:ElectricBlaze
Report Abuse
mic144 is not online. mic144
Joined: 14 Oct 2009
Total Posts: 1598
06 Sep 2012 11:21 PM
Lol, I'm more of a sword fighter, barely any scripting XD
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
06 Sep 2012 11:32 PM
:P

http://wiki.roblox.com/index.php/User:ElectricBlaze
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