|
| 14 Jul 2015 11:09 AM |
Originally, I had used the first set of code to move a platform. However, this made all the bricks look choppy as it moved.
function holodoorUp() for i=1, 200 do holodoor:TranslateBy(Vector3.new(0,-0.2,0)) wait(.1) end It was suggested I use the SetPrimaryPartCFrame method. This works, but not in the way I had planned. Instead of moving it down gradually like the first method, it just instantly places it at the point (0,-0.2,0).
How would I instead get it to move down 0.2 studs at a time?
function holodoorDown() for i=1, 200 do holodoor:SetPrimaryPartCFrame(CFrame.new(0,-0.2,0)) wait(.1) end end
StratusNinja || Emperor of Stratus || Watch my stream - http://twitch.tv/stratusninja |
|
|
| Report Abuse |
|
|
| 14 Jul 2015 11:16 AM |
holodoor:SetPrimaryPartCFrame(CFrame.new(0,-0.2,0)) Look at this line and the Y value. You're instantly setting it to -.2, if you want it to translate bit by bit, consider setting a variable for Y and then decreasing/increasing it in the direction you want to go. |
|
|
| Report Abuse |
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
|
| 14 Jul 2015 12:04 PM |
Please don't repost. I gave you the solution
Hello World! |
|
|
| Report Abuse |
|