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 » Scripters
Home Search
 

Re: best way for movement?

Previous Thread :: Next Thread 
badfitz67 is not online. badfitz67
Joined: 03 Jun 2010
Total Posts: 13165
29 Dec 2015 11:37 AM
trying to get blocks to move

i've tried using body gyro but all that does is make them spin and zoom in random directions

bodyposition works but they slow down and stop before they even touch what they're going for

You're a blunt tool, old man.
Report Abuse
KapKing47 is not online. KapKing47
Joined: 09 Sep 2012
Total Posts: 5522
29 Dec 2015 11:40 AM
Just use BodyVelocity and do this
bv.Velocity = (target.Position - start.Position).unit * Speed

"My Life is going Good... but..."
Report Abuse
badfitz67 is not online. badfitz67
Joined: 03 Jun 2010
Total Posts: 13165
29 Dec 2015 01:43 PM
works but they randomly just start running into walls

why?

You're a blunt tool, old man.
Report Abuse
KapKing47 is not online. KapKing47
Joined: 09 Sep 2012
Total Posts: 5522
30 Dec 2015 06:35 AM
Um... u mean that it like... doesn't stop sort of, when reaching the target? If so, make the Damping bigger. (D property)

"My Life is going Good... but..."
Report Abuse
badfitz67 is not online. badfitz67
Joined: 03 Jun 2010
Total Posts: 13165
30 Dec 2015 07:14 AM
No, as in it doesn't move the way it's facing

You're a blunt tool, old man.
Report Abuse
KingJacko is not online. KingJacko
Joined: 20 Jun 2008
Total Posts: 3944
30 Dec 2015 07:20 AM
you need to use velocity in a loop since its a force that goes away
Report Abuse
badfitz67 is not online. badfitz67
Joined: 03 Jun 2010
Total Posts: 13165
30 Dec 2015 07:37 AM
like this?

c3 = coroutine.create(function()
while wait(.05) do
if going_to_apple then
script.Parent.CFrame = CFrame.new(script.Parent.Position, apple.Position)
bv.Velocity = (apple.Position - script.Parent.Position).unit * MoveSpeed.Value
end
end
end)

You're a blunt tool, old man.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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