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: Button Sliding Door

Previous Thread :: Next Thread 
kandan is not online. kandan
Joined: 18 Apr 2010
Total Posts: 73
01 Nov 2011 05:08 PM
How do I make it when you press a button (ClickDetector) a door slides open?
Example at: Secrets of the Library by Flyingbrain.
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
01 Nov 2011 05:10 PM
script.Parent.ClickDetector.MouseClick:connect(function() -- Ehh, my best guess, don't use click detectors

for i=1,10 do
workspace.Mydoor.CFrame=workspace.Mydoor.CFrame+Vector3.new(1,0,0)
end

end)
Report Abuse
kandan is not online. kandan
Joined: 18 Apr 2010
Total Posts: 73
02 Nov 2011 04:32 AM
I forgot one detail! Closing again!
Report Abuse
ultralegomaster5096 is not online. ultralegomaster5096
Joined: 17 Jan 2011
Total Posts: 4351
02 Nov 2011 04:44 AM
@nate; You got the connection line right.
Report Abuse
kandan is not online. kandan
Joined: 18 Apr 2010
Total Posts: 73
02 Nov 2011 05:25 PM
Plz help me?! I WANT MAH MOMMEH!
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
02 Nov 2011 05:27 PM
script.Parent.ClickDetector.MouseClick:connect(function() -- Ehh, my best guess, don't use click detectors
for i=1,10 do
workspace.Mydoor.CFrame=workspace.Mydoor.CFrame+Vector3.new(1,0,0)
wait(2)
workspace.Mydoor.CFrame=workspace.Mydoor.CFrame+Vector3.new(0,0,0)
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