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 |
|
|
|
| 11 Jul 2012 02:55 PM |
| I wouldn't script it. I would build it. Maybe use bodypositions |
|
|
| Report Abuse |
|
|
WhiteRain
|
  |
| Joined: 24 Apr 2010 |
| Total Posts: 2723 |
|
| |
|
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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
| |
|
|
| 11 Jul 2012 03:22 PM |
| Im not very good with open buttons yet. |
|
|
| Report Abuse |
|
|
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 |
|
|
| |
|
| |
|