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
 

car script problem

Previous Thread :: Next Thread 
vastqud is not online. vastqud
Joined: 10 Sep 2011
Total Posts: 2464
08 Oct 2016 03:00 PM
wait(3)
local speed = 54
local dir = script.Parent.primary.CFrame.lookVector
local dir2 = dir.Z
local vel = dir2*speed
local vel2 = -vel
local bv = script.Parent.primary.BodyVelocity
bv.Velocity = Vector3.new(0,-2,vel2)
script.Parent.primary.Velocity = Vector3.new(0,-2, vel2)

this car script works, it makes it go forward, but if the car falls off of a cliff or something, it's hardly affected by gravity and very slowly floats back down to the ground. also, the car sometimes starts to point upward, so i had to add -2 velocity to the Y value. does anyone know how to fix this? i would like for the car to only point straight, and not float as it falls off cliffs.
Report Abuse
vastqud is not online. vastqud
Joined: 10 Sep 2011
Total Posts: 2464
08 Oct 2016 03:02 PM
b
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