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: Bodyforce and lookvectors

Previous Thread :: Next Thread 
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
15 Mar 2015 03:41 PM
Bf.force=OpponentPlayer.Character.Torso.Position+Vector3.new(OpponentPlayer.Character.Torso.CFrame.lookVector.x-2000,0,0)


I keep getting mixed results, i really cannot find the right axis
I want the player to go backwards
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
15 Mar 2015 03:44 PM
Bf.force = OpponentPlayer.Character.Torso.CFrame.lookVector*-2000;
Like that?

Also you can use BodyThrust and just set it to (0, 0, 2000)
Report Abuse
distalDigitPhalanx is not online. distalDigitPhalanx
Joined: 25 Jan 2015
Total Posts: 1509
15 Mar 2015 03:46 PM
Do like this:

torso = --put a torso here
torso.BodyForce.force = torso.CFrame.lookVector * -500 --replace -500 with whatever value

this will push torso backwards. To stop them from FLYING backwards, later do this:

wait(--your wait time here)
torso.BodyForce.force = Vector3.new() --this just creates a vector3 of 0,0,0
Report Abuse
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
15 Mar 2015 03:55 PM
thanks errybody
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