Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
| |
|
ns001111
|
  |
| Joined: 15 Jan 2011 |
| Total Posts: 2849 |
|
|
| 11 Sep 2011 12:00 PM |
thing = game.Workspace:FindFirstChild("ElevatorPlatform")
function onClick() repeat thing.CFrame = thing.CFrame + Vector3.new(0,0.2,0) wait() until thing.Position.Y == 1 wait() end
script.Parent.MouseClick:connect(onClick)
~ ns |
|
|
| Report Abuse |
|
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
| |
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
| |
|
|
| 11 Sep 2011 12:21 PM |
Try <= 1 instead of == 1
[If I owned a school, it would be closed by now.] |
|
|
| Report Abuse |
|
|
|
| 11 Sep 2011 12:21 PM |
| Actually you'd want to use >= |
|
|
| Report Abuse |
|
|
|
| 11 Sep 2011 12:23 PM |
That would check if it was bigger than 1.
[If I owned a school, it would be closed by now.] |
|
|
| Report Abuse |
|
|
|
| 11 Sep 2011 12:43 PM |
| that is what is needed it the platform is equal or highter than the destinated height then end the loop someone said it correctly you need to use >= |
|
|
| Report Abuse |
|
|