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: Script help!!

Previous Thread :: Next Thread 
Bhug101 is not online. Bhug101
Joined: 03 Feb 2009
Total Posts: 5199
11 Jul 2012 02:50 PM
I'm working on designing a garage, and I want to make a realistic garage door.
For example:
I click the open button and the door starts to move on a "track".

Instead of working like other garage doors, when it is opening, the door itself "folds" up as it goes up the track.

How can I do something like this? I can easily make the door and track, but Im not sure how I would script it. Suggestions?
Report Abuse
ninjaknight101 is not online. ninjaknight101
Joined: 04 Apr 2011
Total Posts: 1281
11 Jul 2012 02:55 PM
I wouldn't script it. I would build it. Maybe use bodypositions
Report Abuse
WhiteRain is not online. WhiteRain
Joined: 24 Apr 2010
Total Posts: 2723
11 Jul 2012 02:56 PM
Or Cframe Animations..
Report Abuse
Bhug101 is not online. Bhug101
Joined: 03 Feb 2009
Total Posts: 5199
11 Jul 2012 03:07 PM
I'm not sure how to use body positions, nor cframe animations?
Report Abuse
Shaneflint22 is not online. Shaneflint22
Joined: 25 Mar 2011
Total Posts: 1083
11 Jul 2012 03:14 PM
Well it would be easier if the door was in seperate parts. If you did this you could script the inivisual parts to move at the same time. For example you could script 1 part and move its position in the script. Next when it reaches the top you could change the velocity in the script to go at an angle. After this go level out and go back but do this with each part at the same time.
Report Abuse
Shaneflint22 is not online. Shaneflint22
Joined: 25 Mar 2011
Total Posts: 1083
11 Jul 2012 03:17 PM
So it would be like this
game.Workspace.Part.Cframe=new(X,2,Z)

wait(.1)

game.Workspace.Part.Cframe=new(X,3,Z)

wait(.1)

ect-
Report Abuse
Shaneflint22 is not online. Shaneflint22
Joined: 25 Mar 2011
Total Posts: 1083
11 Jul 2012 03:19 PM
change how much it moves up depending on where it starts if it starts at .9 move it to 1.9 the next time. i only put in the Y values
Report Abuse
Bhug101 is not online. Bhug101
Joined: 03 Feb 2009
Total Posts: 5199
11 Jul 2012 03:19 PM
@shane, if I build the door/track system, could you modify it to work? I'm not a very good scripter :(
Report Abuse
Shaneflint22 is not online. Shaneflint22
Joined: 25 Mar 2011
Total Posts: 1083
11 Jul 2012 03:20 PM
oops i made a mistake it would be

game.Workspace.Part.Cframe=Cframe.new(X,2,Z)
Report Abuse
Shaneflint22 is not online. Shaneflint22
Joined: 25 Mar 2011
Total Posts: 1083
11 Jul 2012 03:21 PM
yeah
Report Abuse
Shaneflint22 is not online. Shaneflint22
Joined: 25 Mar 2011
Total Posts: 1083
11 Jul 2012 03:22 PM
Im not very good with open buttons yet.
Report Abuse
Bhug101 is not online. Bhug101
Joined: 03 Feb 2009
Total Posts: 5199
11 Jul 2012 03:22 PM
@shane, thank you! I should finish building the door/track system soon!
Report Abuse
Shaneflint22 is not online. Shaneflint22
Joined: 25 Mar 2011
Total Posts: 1083
11 Jul 2012 03:23 PM
ok
Report Abuse
Shaneflint22 is not online. Shaneflint22
Joined: 25 Mar 2011
Total Posts: 1083
11 Jul 2012 03:24 PM
Pm me when its done
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