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: Change direction of BodyVelocity

Previous Thread :: Next Thread 
aIternatlveaccount is not online. aIternatlveaccount
Joined: 21 Feb 2016
Total Posts: 295
20 Aug 2016 06:36 PM
I'm looking at api's and I see no way on how to do this? Anyway how?
Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
20 Aug 2016 06:42 PM
bodyvelocity.Velocity

??
Report Abuse
aIternatlveaccount is not online. aIternatlveaccount
Joined: 21 Feb 2016
Total Posts: 295
20 Aug 2016 06:47 PM
no lol
Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
20 Aug 2016 06:48 PM
wiki: BodyVelocity

all the properties should be plain in sight
Report Abuse
aIternatlveaccount is not online. aIternatlveaccount
Joined: 21 Feb 2016
Total Posts: 295
20 Aug 2016 06:53 PM
im trying to change the direction into my mouses direction
Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
20 Aug 2016 06:54 PM
look at the CFrame.new() function, especially the one that requires only 2 arguments
Report Abuse
aIternatlveaccount is not online. aIternatlveaccount
Joined: 21 Feb 2016
Total Posts: 295
20 Aug 2016 06:57 PM
1. i know how cframe works
2. pretty sure that only works with gyro.cframe = CFrame.new(gyro.Parent.Position, (stuffhere)
3. if there is one for bodyvelocity, could you show me?
Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
20 Aug 2016 06:58 PM
are you serious lol

CFrame.new(part1.CFrame.p,part2.CFrame.p).lookVector*strength
Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
20 Aug 2016 06:59 PM
you have to change with local script or sent mouse.Hit.p to a server script

need to call GetMouse on the player to receive the mouse

http://wiki.roblox.com/index.php?title=API:Class/Player

http://wiki.roblox.com/index.php?title=API:Class/Mouse
Report Abuse
aIternatlveaccount is not online. aIternatlveaccount
Joined: 21 Feb 2016
Total Posts: 295
20 Aug 2016 07:02 PM
ugh
if ur going to insult me dont post at all
+ how do you think i actually started this post without knowing what those are. i dont need a lesson, i need an example
Report Abuse
aIternatlveaccount is not online. aIternatlveaccount
Joined: 21 Feb 2016
Total Posts: 295
20 Aug 2016 07:03 PM
>doesn't mention lookvector at all
>bodygyro doesnt need lookvector, so i assume all bodymovers dont need it
Report Abuse
aIternatlveaccount is not online. aIternatlveaccount
Joined: 21 Feb 2016
Total Posts: 295
20 Aug 2016 07:05 PM
and yet it still doesnt work
i quit
Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
20 Aug 2016 07:09 PM
lookVector is the direction of a CFrame so it gives you a Vector3 pointing towards the part*strength lol

needs to be set every time in loops
Report Abuse
aIternatlveaccount is not online. aIternatlveaccount
Joined: 21 Feb 2016
Total Posts: 295
20 Aug 2016 07:10 PM
problem is the part doesnt move at all actually
Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
20 Aug 2016 07:11 PM
because strength needs to be high and because all parts should be unanchored
Report Abuse
aIternatlveaccount is not online. aIternatlveaccount
Joined: 21 Feb 2016
Total Posts: 295
20 Aug 2016 07:14 PM
i know that, stop telling me basic solutions
Report Abuse
AggressiveCatch is not online. AggressiveCatch
Joined: 17 Jul 2011
Total Posts: 5840
20 Aug 2016 07:24 PM
local speed = 100

bodymover.Velocity = mouse.UnitRay.Direction*speed
Report Abuse
aIternatlveaccount is not online. aIternatlveaccount
Joined: 21 Feb 2016
Total Posts: 295
20 Aug 2016 07:27 PM
@aggressive
works, how would i disable it on 1 axis though
Report Abuse
2eggnog is not online. 2eggnog
Joined: 08 Nov 2008
Total Posts: 1351
20 Aug 2016 07:29 PM
mouse.UnitRay.Direction*speed * Vector3.new(1,0,1)


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