TheUnknownDiscord

cronch

Oct 14th, 2021 (edited)
31
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Seat = Instance.new("VehicleSeat")
  2. Seat.Parent = script
  3. Seat.Size = Vector3.new(4,1,10)
  4. Seat.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(0,8,-8.057)
  5. Seat.TopSurface = Enum.SurfaceType.Smooth
  6. Seat.BottomSurface = Enum.SurfaceType.Smooth
  7. Bumper = Instance.new("Part")
  8. Bumper.Parent = script
  9. Bumper.Size = Vector3.new(7.75,2.25,1)
  10. Weldlol3 = Instance.new("Weld")
  11. Weldlol3.Parent = Seat
  12. Weldlol3.Part0 = Seat
  13. Weldlol3.Part1 = Bumper
  14. Weldlol3.C1 = Weldlol3.C1 * CFrame.new(0,-1.25,9.75)
  15. Bumper3 = Instance.new("Part")
  16. Bumper3.Parent = script
  17. Bumper3.Size = Vector3.new(4,2.25,4.65)
  18. Weldlol32 = Instance.new("Weld")
  19. Weldlol32.Parent = Bumper
  20. Weldlol32.Part0 = Bumper
  21. Weldlol32.Part1 = Bumper3
  22. Weldlol32.C1 = Weldlol32.C1 * CFrame.new(0,0,-2.5)
  23. Bumper2 = Instance.new("Part")
  24. Bumper2.Parent = script
  25. Bumper2.Size = Vector3.new(7.75,2.25,1)
  26. Weldlol31 = Instance.new("Weld")
  27. Weldlol31.Parent = Seat
  28. Weldlol31.Part0 = Seat
  29. Weldlol31.Part1 = Bumper2
  30. Weldlol31.C1 = Weldlol31.C1 * CFrame.new(0,-1.25,-8.5)
  31. Bumper4 = Instance.new("Part")
  32. Bumper4.Parent = script
  33. Bumper4.Size = Vector3.new(4,2.25,4.65)
  34. Weldlol33 = Instance.new("Weld")
  35. Weldlol33.Parent = Bumper2
  36. Weldlol33.Part0 = Bumper2
  37. Weldlol33.Part1 = Bumper4
  38. Weldlol33.C1 = Weldlol33.C1 * CFrame.new(0,0,2.5)
  39. Seat.Anchored = true
  40. wheel3 = Instance.new("Part")
  41. wheel3.Parent = Seat
  42. wheel3.Size = Vector3.new(5,1,5)
  43. wheel3.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(-3.739,6.5,5.75)
  44. wheel3.TopSurface = Enum.SurfaceType.Smooth
  45. wheel3.BottomSurface = Enum.SurfaceType.Smooth
  46. wheel4 = Instance.new("Part")
  47. wheel4.Parent = Seat
  48. wheel4.Size = Vector3.new(5,1,5)
  49. wheel4.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(3.739,6.5,5.75)
  50. wheel4.TopSurface = Enum.SurfaceType.Smooth
  51. wheel4.BottomSurface = Enum.SurfaceType.Smooth
  52. local attachment03 = Instance.new("Attachment")
  53. attachment03.Parent = wheel3
  54. local attachment13 = Instance.new("Attachment")
  55. attachment13.Parent = Seat
  56. alignposition3 = Instance.new("HingeConstraint")
  57. alignposition3.Parent = Seat
  58. alignposition3.ActuatorType = "Servo"
  59. alignposition3.TargetAngle = -35
  60. alignposition3.Name = "Hinge3"
  61. alignposition3.ServoMaxTorque = 10000000
  62. alignposition3.AngularSpeed = 10000000
  63. alignposition3.Attachment0 = attachment03
  64. alignposition3.Attachment1 = attachment13
  65. attachment13.WorldCFrame = attachment13.Parent.CFrame * CFrame.new(0,5,-15.75)
  66. attachment03.WorldCFrame = attachment03.Parent.CFrame * CFrame.new(0,0,2.5)
  67. local attachment023 = Instance.new("Attachment")
  68. attachment023.Parent = wheel4
  69. local attachment123 = Instance.new("Attachment")
  70. attachment123.Parent = Seat
  71. alignposition23 = Instance.new("HingeConstraint")
  72. alignposition23.Parent = Seat
  73. alignposition23.ActuatorType = "Servo"
  74. alignposition23.TargetAngle = 35
  75. alignposition23.Name = "Hinge3"
  76. alignposition23.ServoMaxTorque = 10000000
  77. alignposition23.AngularSpeed = 10000000
  78. alignposition23.Attachment0 = attachment023
  79. alignposition23.Attachment1 = attachment123
  80. attachment123.WorldCFrame = attachment123.Parent.CFrame * CFrame.new(0,0, -15.75)
  81. attachment023.WorldCFrame = attachment023.Parent.CFrame * CFrame.new(0,0,2.5)
  82. local motor1 = alignposition3
  83. local motor2 = alignposition23
  84. local steerServo = alignposition
  85. local steerServo2 = alignposition2
  86. local maxSpeed = 42.5
  87. local angleSteer = 35
  88. local function carMove(property)
  89. if property == "Steer" then
  90. alignposition3.TargetAngle = angleSteer * Seat.Steer
  91. alignposition23.TargetAngle = angleSteer * -Seat.Steer
  92. end
  93. end
  94. Seat.Changed:Connect(carMove)
  95. local density = 1
  96. local friction = 1
  97. local elasticity = 0
  98. local frictionWeight = 100000000000
  99. local elasticityWeight = 0
  100. local physProperties = PhysicalProperties.new(density, friction, elasticity, frictionWeight, elasticityWeight)
  101. Seat.CustomPhysicalProperties = physProperties
  102. wheel3.CustomPhysicalProperties = physProperties
  103. wheel4.CustomPhysicalProperties = physProperties
  104. wait(0.25)
  105. Seat.Anchored = false
  106. local carHealth = 125
  107. times = 0
  108. -- function Touch(balls)
  109. -- balls.Touched = true
  110. -- end
  111.  
RAW Paste Data Copied