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 » Scripters
Home Search
 

Button Click Door

Previous Thread :: Next Thread 
underdog1227 is not online. underdog1227
Joined: 29 Apr 2009
Total Posts: 2226
28 Sep 2014 09:10 PM
I am having problems (once again) in studio. I am trying to create a door that when you click the button once it opens upwards. When you click it again slides down to its original spot. The problem is when I click open again it goes higher up and makes the door unable to close properly. The door goes higher and higher each time I open it again. Anyone know how to prevent this?
Report Abuse
IcyFires is not online. IcyFires
Joined: 29 Jun 2013
Total Posts: 5046
28 Sep 2014 11:32 PM
open = false
script.Parent.ClickDetector.MouseClick:connect(function(ok)
if open == false then
--open door code--
end
if open == true then
--close door code--
end
end)
Report Abuse
IcyFires is not online. IcyFires
Joined: 29 Jun 2013
Total Posts: 5046
28 Sep 2014 11:33 PM
I also forgot, change the variable "open" when you open and close the door
Report Abuse
builderman0621 is not online. builderman0621
Joined: 13 Jul 2010
Total Posts: 1612
29 Sep 2014 08:35 AM
why do people ask for so many scripts here
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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