--BROUGHT TO YOU BY RobloxScripter.com!--
local Speed = 100000 --// Speed
local Car = game.Players.LocalPlayer.Character.Humanoid.SeatPart.Parent --// Get car
local Thing = Instance.new("BodyVelocity",game.Players.LocalPlayer.Character.Humanoid.SeatPart)
local heartbeat = game:GetService("RunService").Heartbeat
local input = game:GetService("UserInputService")
local WDown = false
local SDown = false
input.InputBegan:connect(function(key)
if key.KeyCode == Enum.KeyCode.W then
WDown = true
elseif key.KeyCode == Enum.KeyCode.S then
SDown = true
end
end)
input.InputEnded:connect(function(key)
if key.KeyCode == Enum.KeyCode.W then
WDown = false
elseif key.KeyCode == Enum.KeyCode.S then
SDown = false
end
end)
game:GetService("RunService").Heartbeat:connect(function()
if game.Players.LocalPlayer.Character.Humanoid.SeatPart ~= nil then
if WDown == true then
Thing.Velocity = Vector3.new(Thing.Parent.CFrame.lookVector.X*Speed,Thing.Parent.CFrame.lookVector.Y*Speed,Thing.Parent.CFrame.lookVector.Z*Speed)
elseif SDown == true then
Thing.Velocity = Vector3.new(-Thing.Parent.CFrame.lookVector.X*Speed,-Thing.Parent.CFrame.lookVector.Y*Speed,-Thing.Parent.CFrame.lookVector.Z*Speed)
end
else
Thing.Velocity = Vector3.new(0,0,0)
end
end)