|
| 14 Apr 2014 06:42 PM |
Hi, i am a beginner to script, still learning. And i was wonderer how you would make a Brick Float up and then back down...
|
|
|
| Report Abuse |
|
|
| |
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 14 Apr 2014 06:44 PM |
Try using a "For i =" loop to raise and lower the position of the brick. http://wiki.roblox.com/index.php?title=Loops |
|
|
| Report Abuse |
|
|
|
| 14 Apr 2014 06:54 PM |
| Is that as simple as it gets? Or could you make it a little simpler? :P Like I said... I'm new. |
|
|
| Report Abuse |
|
|
|
| 14 Apr 2014 06:54 PM |
| I did try, i'm not being lazy. Just with Loops i always get lost... |
|
|
| Report Abuse |
|
|
transIate
|
  |
| Joined: 20 Jun 2013 |
| Total Posts: 2699 |
|
|
| 14 Apr 2014 06:57 PM |
t=tick()); coroutine.wrap(function() while wait''do part.CFrame=CFrame.new(0,4+t,0)*CFrame.Angles(0,math.rad(180),0); end end)();
|
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 14 Apr 2014 07:00 PM |
| Will that bring the brick up and back down? |
|
|
| Report Abuse |
|
|
|
| 14 Apr 2014 07:10 PM |
Try checking out this video.
https://www.youtube.com/watch?v=O2Ikk1JSInw
This goes over for loops and how it can be used to do a non-forever loop using for statements.
If you want, with enough patience, you can check out this decent series. It explains clearly to new players and will help you a lot. IMO, this guy deserves more views =P |
|
|
| Report Abuse |
|
|
transIate
|
  |
| Joined: 20 Jun 2013 |
| Total Posts: 2699 |
|
| |
|