Curozilla
|
  |
| Joined: 18 Jun 2014 |
| Total Posts: 2219 |
|
|
| 28 Sep 2014 06:03 PM |
local BALL = script.Parent while true do BALL.CFrame = CFrame.new(-255, 11, -52) wait(0.1) BALL.CFrame = CFrame.new(-255, 11, -51) wait(0.1) BALL.CFrame = CFrame.new(-255, 11, -50) wait(0.1) BALL.CFrame = CFrame.new(-255, 11, -49) wait(0.1) BALL.CFrame = CFrame.new(-255, 11, -48) wait(0.1) BALL.CFrame = CFrame.new(-255, 11, -47) wait(0.1) BALL.CFrame = CFrame.new(-255, 11, -49) wait(0.1) end |
|
|
| Report Abuse |
|
|
|
| 28 Sep 2014 06:04 PM |
Use a for loop
http://wiki.roblox.com/index.php?title=Loops#For |
|
|
| Report Abuse |
|
|
|
| 28 Sep 2014 06:06 PM |
ball =script.Parent
while wait(.1) do ball.CFrame = ball.CFrame +Vector3.new(0,0,1) end |
|
|
| Report Abuse |
|
|
Curozilla
|
  |
| Joined: 18 Jun 2014 |
| Total Posts: 2219 |
|
|
| 28 Sep 2014 06:07 PM |
| Ah, thanks a lot Master. :D |
|
|
| Report Abuse |
|
|
|
| 28 Sep 2014 06:08 PM |
lol np i had issues like this when i began
did the above work btw? |
|
|
| Report Abuse |
|
|
Curozilla
|
  |
| Joined: 18 Jun 2014 |
| Total Posts: 2219 |
|
|
| 28 Sep 2014 06:38 PM |
It did. Here's my "WIP" script.
BALL = script.Parent
while wait(0.05) do BALL.CFrame = BALL.CFrame +Vector3.new(0,0,0.5) end
repeat wait() until BALL.Position==("-255,11,29") BALL.CFrame = BALL.CFrame +Vector3.new(0,0,-24)
The last two lines are pretty much not complete. |
|
|
| Report Abuse |
|
|
|
| 28 Sep 2014 06:39 PM |
| does that need fixing or are you just showing me? |
|
|
| Report Abuse |
|
|
Curozilla
|
  |
| Joined: 18 Jun 2014 |
| Total Posts: 2219 |
|
|
| 28 Sep 2014 06:43 PM |
| Actually I kinda need help, lol. I want the brick to move to the original position after it reaches a certain position. |
|
|
| Report Abuse |
|
|
|
| 28 Sep 2014 06:48 PM |
ball =script.Parent orig = ball.CFrame for i = 1,10 do wait(.1) ball.CFrame = ball.CFrame +Vector3.new(0,0,1) end ball.CFrame = orig
-- replace 10 with how many times u want it to move up |
|
|
| Report Abuse |
|
|