Advertisement
SilentWraith

Jailbreak Car Speed [SCRIPT]

May 16th, 2018
23,668
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.44 KB | None | 0 0
  1. ---By:Unknown
  2. dir = 0
  3. gs = game.GetService
  4. gs(game,"RunService").RenderStepped:connect(function()
  5.    for i,v in next,workspace.Vehicles:children() do
  6.        if v.Name ~= "Heli" then
  7.            if v:FindFirstChild("Engine") then
  8.                local bf,cf = v.Engine:FindFirstChild("NewForce"),v:GetPrimaryPartCFrame().lookVector
  9.                if not bf then
  10.                    bf = v.Engine:FindFirstChild("BodyForce") or v.Engine:FindFirstChild("VectorForce")
  11.                    if bf then
  12.                        bf = bf:Clone()
  13.                        bf.Parent = v.Engine
  14.                        bf.Name = "NewForce"
  15.                    end
  16.                end
  17.                if bf then
  18.                    local fa = 1
  19.                    if v.Name:lower():find("bike") then fa = .3 elseif v.Name:lower():find("bugg") then fa = .5 end
  20.                    if v.Seat.PlayerName.Value ~= game:GetService("Players").LocalPlayer.Name then fa = 0 end
  21.                    bf.Force = Vector3.new(cf.X*300000*dir*fa,0,cf.Z*300000*dir*fa)
  22.                end
  23.            end
  24.       end
  25.    end
  26. end)
  27. val = {
  28. {Enum.KeyCode.W,1};
  29. {Enum.KeyCode.S,-1};
  30. }
  31. uis = gs(game,"UserInputService")
  32. chk = function(k)
  33.    for i,v in next,val do
  34.        if v[1]==k.KeyCode then
  35.            return v[2]
  36.        end
  37.    end
  38. end
  39. uis.InputBegan:connect(function(k)
  40. dir = chk(k) or dir
  41. end)
  42. uis.InputEnded:connect(function(k)
  43.    if chk(k) == dir then
  44.        dir = 0
  45.    end
  46. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement