|
| 25 Feb 2014 04:55 PM |
| I am making a game...and part of it requires a animated boat...is there anyway to acheive this? I think there is not but I wanted to make sure. |
|
|
| Report Abuse |
|
|
Ace23333
|
  |
| Joined: 20 Nov 2011 |
| Total Posts: 1341 |
|
|
| 25 Feb 2014 05:12 PM |
| Actually there is... :MoveTo(Vector3.new(coordinates)) |
|
|
| Report Abuse |
|
|
|
| 25 Feb 2014 05:13 PM |
| that simple? Would it looks like it is going across water though? like for i = 1,300 do game.Workspace.Boat:MoveTo(Vector3.new(0,i,0)) |
|
|
| Report Abuse |
|
|
Ace23333
|
  |
| Joined: 20 Nov 2011 |
| Total Posts: 1341 |
|
|
| 25 Feb 2014 05:16 PM |
| Oh yeah you can do also :MoveTo(0, i, 0) |
|
|
| Report Abuse |
|
|
|
| 25 Feb 2014 05:18 PM |
| Okay, thanks. Now is there anyway I can see how many exact studs are from Part1 to Part2? |
|
|
| Report Abuse |
|
|
Ace23333
|
  |
| Joined: 20 Nov 2011 |
| Total Posts: 1341 |
|
|
| 25 Feb 2014 05:26 PM |
Oh oh wait you want to make it moves from one point to another... Do the loop... I'm on phone so I can't make you script correctly now... |
|
|
| Report Abuse |
|
|
|
| 25 Feb 2014 05:28 PM |
What loop? I'm not new to lua...but I forgot it after learning JavaScript. |
|
|
| Report Abuse |
|
|
Ace23333
|
  |
| Joined: 20 Nov 2011 |
| Total Posts: 1341 |
|
|
| 25 Feb 2014 06:07 PM |
Boat = game.Workspace.Boat while 1 + 1 = 2 do wait(0.1) local anim = game.Workspace:GetChildren() for i = 1,#anim do if anim(i).Name = Boat.Name then anim(i).Position = Vector3.new(anim(i).Position.X + 0.4)
I'm on phone so I can't check it... This one is for continuous loop.... You could simply add wait() and then stop the script C: |
|
|
| Report Abuse |
|
|
|
| 25 Feb 2014 06:22 PM |
| while 1+1 = 2, xD Infinite loop! |
|
|
| Report Abuse |
|
|
|
| 26 Feb 2014 07:10 PM |
| So again, is there anyway to check the EXACT studs apart from 2 bricks? |
|
|
| Report Abuse |
|
|
|
| 26 Feb 2014 07:28 PM |
| (brick2.Position = brick1.Position).Magnitude |
|
|
| Report Abuse |
|
|
|
| 26 Feb 2014 07:32 PM |
| (brick1.Position - brick2.Position).Magnitude* |
|
|
| Report Abuse |
|
|
| |
|