Advertisement
Isaiah20Yt

OP Jailbreak Car Speed, Rainbow Car - By Isaiah20Yt

Dec 19th, 2020
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.75 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)
  47. function changecolor(colorcar)
  48. plr = game:GetService("Players")
  49. value = colorcar
  50. for i,v in pairs(workspace.Vehicles:GetChildren()) do
  51. for k,d in pairs (v:GetChildren()) do
  52. if v ~= nil then
  53. if v:FindFirstChild("Seat") then
  54. if v.Seat:FindFirstChild("PlayerName") then
  55. if v.Seat.PlayerName.Value == plr.LocalPlayer.Name then
  56. for a,b in pairs (d:GetChildren()) do
  57. if b.Name == "Body" then
  58. b.Color = value
  59. end
  60. end
  61. end
  62. end
  63. end
  64. end
  65. end
  66. end
  67. end
  68.  
  69. while wait(1) do
  70. wait(0.5)
  71. changecolor(Color3.fromRGB(255,119,0))
  72. wait(0.5)
  73. changecolor(Color3.fromRGB(255,0,0))
  74. wait(0.5)
  75. changecolor(Color3.fromRGB(255,255,0))
  76. wait(0.5)
  77. changecolor(Color3.fromRGB(98,37,209))
  78. wait(0.5)
  79. changecolor(Color3.fromRGB(0,255,0))
  80. wait(0.5)
  81. changecolor(Color3.fromRGB(0,255,255))
  82. wait(0.5)
  83. changecolor(Color3.fromRGB(255,176,0))
  84. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement