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: If statement help

Previous Thread :: Next Thread 
Rspkme is not online. Rspkme
Joined: 06 Feb 2008
Total Posts: 1013
06 Apr 2014 05:52 PM
I need help, if someone were to click a brick then it would unlock the door, something like this (add the clicked thingy :P),

game.Workspace.Basement.Door.Locked.Value = false


(Locked is a local value inside of "door")

Please help :D
Report Abuse
Rspkme is not online. Rspkme
Joined: 06 Feb 2008
Total Posts: 1013
06 Apr 2014 06:02 PM
bump, no reply?
Report Abuse
Rspkme is not online. Rspkme
Joined: 06 Feb 2008
Total Posts: 1013
06 Apr 2014 06:06 PM
20 views and no one replied, i thought it was scripting help..
Report Abuse
transIate is not online. transIate
Joined: 20 Jun 2013
Total Posts: 2699
06 Apr 2014 06:29 PM
script.Parent.Button1Down:connect(function()
if(script.Parent.Door.CanCollide==true)then
script.Parent.Door.CanCollide=false
print'opened'
else
script.Parent.Button2Down:connect(function()
script.Parent.Door.CanCollide=true;
end)end);
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