generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Is It Possible To Use A Script To Move An Entire Model?

Previous Thread :: Next Thread 
IAmThe0nly0ne is not online. IAmThe0nly0ne
Joined: 01 Feb 2014
Total Posts: 770
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 is not online. Ace23333
Joined: 20 Nov 2011
Total Posts: 1341
25 Feb 2014 05:12 PM
Actually there is... :MoveTo(Vector3.new(coordinates))
Report Abuse
IAmThe0nly0ne is not online. IAmThe0nly0ne
Joined: 01 Feb 2014
Total Posts: 770
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 is not online. 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
IAmThe0nly0ne is not online. IAmThe0nly0ne
Joined: 01 Feb 2014
Total Posts: 770
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 is not online. 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
IAmThe0nly0ne is not online. IAmThe0nly0ne
Joined: 01 Feb 2014
Total Posts: 770
25 Feb 2014 05:28 PM
What loop?
I'm not new to lua...but I forgot it after learning JavaScript.
Report Abuse
Ace23333 is not online. 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
IAmThe0nly0ne is not online. IAmThe0nly0ne
Joined: 01 Feb 2014
Total Posts: 770
25 Feb 2014 06:22 PM
while 1+1 = 2, xD Infinite loop!
Report Abuse
IAmThe0nly0ne is not online. IAmThe0nly0ne
Joined: 01 Feb 2014
Total Posts: 770
26 Feb 2014 07:10 PM
So again, is there anyway to check the EXACT studs apart from 2 bricks?
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
26 Feb 2014 07:28 PM
(brick2.Position = brick1.Position).Magnitude
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
26 Feb 2014 07:32 PM
(brick1.Position - brick2.Position).Magnitude*
Report Abuse
IAmThe0nly0ne is not online. IAmThe0nly0ne
Joined: 01 Feb 2014
Total Posts: 770
26 Feb 2014 09:42 PM
Thanks a bunch man.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image