TheUnknownDiscord

car?

Aug 25th, 2021 (edited)
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.84 KB | None | 0 0
  1. owner = game:GetService("Players").Lucas_YT111 -- Change name
  2. Seat = Instance.new("VehicleSeat")
  3. Seat.Parent = game.Workspace.Lucas_YT111 -- Change name
  4. Seat.Size = Vector3.new(4,1,10)
  5. Seat.Position = Vector3.new(10.278,6.5,-8.057)
  6. Seat.Anchored = true
  7. Seat.TurnSpeed = 2
  8. Seat.TopSurface = Enum.SurfaceType.Smooth
  9. Seat.BottomSurface = Enum.SurfaceType.Smooth
  10. wait(0.0001)
  11. local Rats = Instance.new("Sound", Seat)
  12. Rats.SoundId = "rbxassetid://2627574953"
  13. Rats.Volume = 1
  14. Rats.Looped = true
  15. Seat:Sit(owner.Character.Humanoid)
  16. back = Instance.new("Part")
  17. back2 = Instance.new("Part")
  18. back3 = Instance.new("Part")
  19. back4 = Instance.new("Part")
  20. back5 = Instance.new("Part")
  21. Steer = Instance.new("Part")
  22. back.TopSurface = Enum.SurfaceType.Smooth
  23. back.BottomSurface = Enum.SurfaceType.Smooth
  24. back2.TopSurface = Enum.SurfaceType.Smooth
  25. back2.BottomSurface = Enum.SurfaceType.Smooth
  26. back3.TopSurface = Enum.SurfaceType.Smooth
  27. back3.BottomSurface = Enum.SurfaceType.Smooth
  28. back4.TopSurface = Enum.SurfaceType.Smooth
  29. back4.BottomSurface = Enum.SurfaceType.Smooth
  30. back5.TopSurface = Enum.SurfaceType.Smooth
  31. back5.BottomSurface = Enum.SurfaceType.Smooth
  32. Weld = Instance.new("Weld")
  33. Weld2 = Instance.new("Weld")
  34. Weld3 = Instance.new("Weld")
  35. Weld4 = Instance.new("Weld")
  36. Weld5 = Instance.new("Weld")
  37. Weld6 = Instance.new("Weld")
  38. Steer.CFrame = CFrame.Angles(0, math.rad(180), 0)
  39. back.Parent = Seat
  40. back2.Parent = Seat
  41. back3.Parent = Seat
  42. back4.Parent = Seat
  43. back5.Parent = Seat
  44. Steer.Parent = Seat
  45. Weld.Parent = back
  46. Weld.Part0 = back
  47. Weld.Part1 = Seat
  48. Weld2.Parent = back2
  49. Weld2.Part0 = back2
  50. Weld2.Part1 = Seat
  51. Weld3.Parent = back3
  52. Weld3.Part0 = back3
  53. Weld3.Part1 = Seat
  54. Weld4.Parent = back4
  55. Weld4.Part0 = back4
  56. Weld4.Part1 = Seat
  57. Weld5.Parent = back5
  58. Weld5.Part0 = back5
  59. Weld5.Part1 = Seat
  60. Weld6.Parent = Steer
  61. Weld6.Part0 = Steer
  62. Weld6.Part1 = Seat
  63. back.Anchored = true
  64. back2.Anchored = true
  65. back3.Anchored = true
  66. back4.Anchored = true
  67. back5.Anchored = true
  68. Steer.Anchored = true
  69. Steer.Size = Vector3.new(2, 1, 1)
  70. back.Size = Vector3.new(3.2, 1.5, 0.5)
  71. back2.Size = Vector3.new(3.2, 1.5, 0.5)
  72. back3.Size = Vector3.new(0.35, 1.5, 10)
  73. back4.Size = Vector3.new(0.35, 1.5, 10)
  74. back5.Size = Vector3.new(3.2, 1.5, 3.5)
  75. Steer.Position = Vector3.new(10.278, 8.75, -9.685)
  76. back.Position = Vector3.new(10.278,7.75,-3.25)
  77. back2.Position = Vector3.new(10.278,7.75,-7.25)
  78. back3.Position = Vector3.new(12,7.75,-8.057)
  79. back4.Position = Vector3.new(8.5,7.75,-8.057)
  80. back5.Position = Vector3.new(10.25,7.75,-11.557)
  81. Mesh1 = Instance.new("SpecialMesh")
  82. Mesh1.Parent = Steer
  83. Mesh1.MeshId = "http://www.roblox.com/asset/?id=4666694012"
  84. Mesh1.TextureId = "http://www.roblox.com/asset/?id=4666694193"
  85. Mesh1.Scale = Vector3.new(5, 5, 5)
  86. wait(0.25)
  87. wheel = Instance.new("Part")
  88. wheel2 = Instance.new("Part")
  89. wheel3 = Instance.new("Part")
  90. wheel4 = Instance.new("Part")
  91. wheel.LeftSurface = Enum.SurfaceType.Hinge
  92. wheel.Parent = Seat
  93. wheel2.LeftSurface = Enum.SurfaceType.Hinge
  94. wheel2.Parent = Seat
  95. wheel3.LeftSurface = Enum.SurfaceType.Hinge
  96. wheel3.Parent = Seat
  97. wheel4.LeftSurface = Enum.SurfaceType.Hinge
  98. wheel4.Parent = Seat
  99. wheel.CFrame = CFrame.Angles(0, math.rad(180), 0)
  100. wheel2.CFrame = CFrame.Angles(0, math.rad(180), 0)
  101. wheel.Anchored = true
  102. wheel2.Anchored = true
  103. wheel3.Anchored = true
  104. wheel4.Anchored = true
  105. wheel.Position = Vector3.new(7.278,6.5,-12.057)
  106. wheel2.Position = Vector3.new(7.278,6.5,-4.057)
  107. wheel3.Position = Vector3.new(13.278,6.5,-12.057)
  108. wheel4.Position = Vector3.new(13.278,6.5,-4.057)
  109. wheel.Shape = Enum.PartType.Cylinder
  110. wheel2.Shape = Enum.PartType.Cylinder
  111. wheel3.Shape = Enum.PartType.Cylinder
  112. wheel4.Shape = Enum.PartType.Cylinder
  113. wheel.Size = Vector3.new(2, 2, 2)
  114. wheel2.Size = Vector3.new(2, 2, 2)
  115. wheel3.Size = Vector3.new(2, 2, 2)
  116. wheel4.Size = Vector3.new(2, 2, 2)
  117. Mesh = Instance.new("SpecialMesh")
  118. Mesh.Parent = wheel
  119. Mesh.MeshId = "http://www.roblox.com/asset/?id=1629642306"
  120. Mesh.TextureId = "http://www.roblox.com/asset/?id=1629644149"
  121. Mesh.Scale = Vector3.new(5, 2.25, 2.25)
  122. Mesh2 = Instance.new("SpecialMesh")
  123. Mesh2.Parent = wheel2
  124. Mesh2.MeshId = "http://www.roblox.com/asset/?id=1629642306"
  125. Mesh2.TextureId = "http://www.roblox.com/asset/?id=1629644149"
  126. Mesh2.Scale = Vector3.new(5, 2.25, 2.25)
  127. Mesh3 = Instance.new("SpecialMesh")
  128. Mesh3.Parent = wheel3
  129. Mesh3.MeshId = "http://www.roblox.com/asset/?id=1629642306"
  130. Mesh3.TextureId = "http://www.roblox.com/asset/?id=1629644149"
  131. Mesh3.Scale = Vector3.new(5, 2.25, 2.25)
  132. Mesh4 = Instance.new("SpecialMesh")
  133. Mesh4.Parent = wheel4
  134. Mesh4.MeshId = "http://www.roblox.com/asset/?id=1629642306"
  135. Mesh4.TextureId = "http://www.roblox.com/asset/?id=1629644149"
  136. Mesh4.Scale = Vector3.new(5, 2.25, 2.25)
  137. wheel:MakeJoints({wheel, Seat})
  138. wheel2:MakeJoints({wheel2, Seat})
  139. wheel3:MakeJoints({wheel3, Seat})
  140. wheel4:MakeJoints({wheel4, Seat})
  141. wait(0.25)
  142. Seat.Anchored = false
  143. wheel.Anchored = false
  144. wheel2.Anchored = false
  145. wheel3.Anchored = false
  146. wheel4.Anchored = false
  147. back.Anchored = false
  148. back2.Anchored = false
  149. back3.Anchored = false
  150. back4.Anchored = false
  151. back5.Anchored = false
  152. Steer.Anchored = false
  153. Rats:Play()
  154. local isTouched = false
  155.  
  156. local function damagePlayer(otherPart)
  157. local partParent = otherPart.Parent
  158. local humanoid = partParent:FindFirstChildWhichIsA("Humanoid")
  159. if humanoid then
  160. if not isTouched then -- Check that debounce variable is not true
  161. isTouched = true -- Set variable to true
  162. for i,v in pairs(humanoid:GetDescendants()) do
  163. if v:IsA("Motor6D") and v.Parent.Name ~= "HumanoidRootPart" then
  164. local Socket = Instance.new("BallSocketConstraint")
  165. local a1 = Instance.new("Attachment")
  166. local a2 = Instance.new("Attachment")
  167. a1.Parent = v.Part0
  168. a2.Parent = v.Part1
  169. Socket.Parent = v.Parent
  170. Socket.Attachment0 = a1
  171. Socket.Attachment1 = a2
  172. a1.CFrame = v.C0
  173. a2.CFrame = v.C1
  174. Socket.LimitsEnabled = True
  175. Socket.TwistLimitsEnabled = true
  176. v:Destroy()
  177. humanoid.RequiresNeck = false
  178. humanoid.PlatformStand = true
  179. humanoid.Health = humanoid.Health - 35
  180. print("OUCH!")
  181. wait(1) -- Wait for reset time duration
  182. for i,v in pairs(humanoid:GetDescendants()) do
  183. if v:IsA("BallSocketConstraint") then
  184. v.UpperAngle = 0
  185. v.TwistUpperAngle = 0
  186. v.TwistLowerAngle = 0
  187. local Joints = Instance.new("Motor6D",v.Parent)
  188. Joints.Part0 = v.Attachment0.Parent
  189. Joints.Part1 = v.Attachment1.Parent
  190. Joints.C0 = v.Attachment0.CFrame
  191. Joints.C1 = v.Attachment1.CFrame
  192. v:Destroy()
  193. humanoid.PlatformStand = true
  194. wait(0.5)
  195. isTouched = false -- Reset variable to false
  196. end
  197. end
  198. end
  199. end
  200. end
  201. end
  202. end
  203.  
  204. back5.Touched:Connect(damagePlayer)
Add Comment
Please, Sign In to add comment