Advertisement
Dan_TzaghyYTB

Ultimate Driving / Hack Script Speed Car

Nov 9th, 2020 (edited)
16,749
1
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 1 0
  1. print'made by Dan Tzaghy on Pastebin'
  2. mouse = game:service'Players'.LocalPlayer:GetMouse()
  3. mouse.KeyDown:Connect(function(key)
  4. if key == "W" or key == "w" then
  5. for i,v in pairs(workspace["_Main"].Vehicles:GetDescendants()) do
  6. if v:IsA"VehicleSeat" then
  7. if v.Occupant == game:service'Players'.LocalPlayer.Character:FindFirstChildOfClass'Humanoid' then
  8. car = v.Parent
  9. car.PrimaryPart = car.Core.HitBox
  10. end
  11. end
  12. end
  13. W = true
  14. end
  15. end)
  16. mouse.KeyUp:Connect(function(key)
  17. if key == "W" or key == "w" then
  18. W = false
  19. end
  20. end)
  21. mouse.KeyDown:Connect(function(key)
  22. if key == "S" or key == "s" then
  23. S = true
  24. end
  25. end)
  26. mouse.KeyUp:Connect(function(key)
  27. if key == "S" or key == "s" then
  28. S = false
  29. end
  30. end)
  31. for i,v in pairs(workspace["_Main"].Vehicles:GetDescendants()) do
  32. if v:IsA"VehicleSeat" then
  33. if v.Occupant == game:service'Players'.LocalPlayer.Character:FindFirstChildOfClass'Humanoid' then
  34. car = v.Parent
  35. car.PrimaryPart = car.Core.HitBox
  36. end
  37. end
  38. end
  39. game:service'RunService'.Stepped:Connect(function()
  40. if W then
  41. for i,v in pairs(car:GetDescendants()) do
  42. if v:IsA"BasePart" then
  43. v.Velocity = v.Velocity*1.01
  44. end
  45. end
  46. end
  47. if S then
  48. for i,v in pairs(car:GetDescendants()) do
  49. if v:IsA"BasePart" then
  50. v.Velocity = v.Velocity*0.95
  51. end
  52. end
  53. end
  54. end)
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement