|
| 07 Dec 2013 01:13 PM |
| I am having troubles with making a brick moving and moving. |
|
|
| Report Abuse |
|
|
CrniOrao
|
  |
| Joined: 12 Oct 2008 |
| Total Posts: 2274 |
|
|
| 07 Dec 2013 01:19 PM |
| How do you want it to move? |
|
|
| Report Abuse |
|
|
|
| 07 Dec 2013 02:06 PM |
| Position. Sorry, building. |
|
|
| Report Abuse |
|
|
| |
|
|
| 07 Dec 2013 02:13 PM |
Heres an example of a brick moving up and down. Made it for a water script.
part = script.Parent a = 0 while true do a = 0 repeat a = a + 1 part.CFrame = CFrame.new(part.Position + Vector3.new(0,.1,0)) wait() until a == 50
wait() a = 0 repeat a = a + 1 part.CFrame = CFrame.new(part.Position - Vector3.new(0,.1,0)) wait() until a == 50 wait(1) end |
|
|
| Report Abuse |
|
|
|
| 07 Dec 2013 02:55 PM |
Well, this is how to make a brick constantly move x+
while true do part.Position = Vector3.new(part.Position.X+1,part.Position.Y,part.Position.Z) end
Also, please note that this would make the brick start at the CURRENT position, and continuously go x+. Also, part would obviously be the brick. |
|
|
| Report Abuse |
|
|
| |
|
|
| 07 Dec 2013 03:00 PM |
| Oh, yeah. xD Remember a wait. :P |
|
|
| Report Abuse |
|
|