Advertisement
TheUnknownDiscord

Untitled

Oct 11th, 2021 (edited)
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Seat = Instance.new("VehicleSeat")
  2. Seat.Parent = owner.Character
  3. Seat.Size = Vector3.new(4,1,10)
  4. Seat.Position = Vector3.new(10.278,6.5,-8.057)
  5. Seat.Anchored = true
  6. Seat.TurnSpeed = 2
  7. Seat.MaxSpeed = 65
  8. Seat.TopSurface = Enum.SurfaceType.Smooth
  9. Seat.BottomSurface = Enum.SurfaceType.Smooth
  10. wait(0.0001)
  11. Seat:Sit(owner.Character.Humanoid)
  12. wait(0.25)
  13. wheel = Instance.new("Part")
  14. wheel2 = Instance.new("Part")
  15. wheel3 = Instance.new("Part")
  16. wheel4 = Instance.new("Part")
  17. wheel.RightSurface = Enum.SurfaceType.Hinge
  18. wheel.Parent = Seat
  19. wheel2.RightSurface = Enum.SurfaceType.Hinge
  20. wheel2.Parent = Seat
  21. wheel3.LeftSurface = Enum.SurfaceType.Hinge
  22. wheel3.Parent = Seat
  23. wheel4.LeftSurface = Enum.SurfaceType.Hinge
  24. wheel4.Parent = Seat
  25. wheel.Anchored = true
  26. wheel2.Anchored = true
  27. wheel3.Anchored = true
  28. wheel4.Anchored = true
  29. wheel.Position = Vector3.new(7.278,6.5,-12.057)
  30. wheel2.Position = Vector3.new(7.278,6.5,-4.057)
  31. wheel3.Position = Vector3.new(13.278,6.5,-12.057)
  32. wheel4.Position = Vector3.new(13.278,6.5,-4.057)
  33. wheel.Shape = Enum.PartType.Cylinder
  34. wheel2.Shape = Enum.PartType.Cylinder
  35. wheel3.Shape = Enum.PartType.Cylinder
  36. wheel4.Shape = Enum.PartType.Cylinder
  37. wheel.Size = Vector3.new(2, 3, 3)
  38. wheel2.Size = Vector3.new(2, 3, 3)
  39. wheel3.Size = Vector3.new(2, 3, 3)
  40. wheel4.Size = Vector3.new(2, 3, 3)
  41. wheel:MakeJoints({wheel, Seat})
  42. wheel2:MakeJoints({wheel2, Seat})
  43. wheel3:MakeJoints({wheel3, Seat})
  44. wheel4:MakeJoints({wheel4, Seat})
  45. wait(0.25)
  46. Seat.Anchored = false
  47. wheel.Anchored = false
  48. wheel2.Anchored = false
  49. wheel3.Anchored = false
  50. wheel4.Anchored = false
  51. local density = 1
  52. local friction = 1
  53. local elasticity = 0
  54. local frictionWeight = 100000000000
  55. local elasticityWeight = 0
  56. local physProperties = PhysicalProperties.new(density, friction, elasticity, frictionWeight, elasticityWeight)
  57. Seat.CustomPhysicalProperties = physProperties
  58. wheel.CustomPhysicalProperties = physProperties
  59. wheel2.CustomPhysicalProperties = physProperties
  60. wheel3.CustomPhysicalProperties = physProperties
  61. wheel4.CustomPhysicalProperties = physProperties
  62.  
  63. function killfunction(part)
  64. pcall(function()
  65. local Model = part:FindFirstAncestorOfClass("Model")
  66. if Model then
  67. local PC = game:GetService("Players"):GetPlayerFromCharacter(Model)
  68. if PC then
  69. if PC ~= owner then
  70. PC.Character.Humanoid.BreakJointsOnDeath = false
  71. PC.Character.Humanoid.Health = 0
  72. local limbcollider = Instance.new("Part", PC.Character:findFirstChild("Right Arm"))
  73. limbcollider.Size = Vector3.new(1.4,1,1)
  74. limbcollider.Shape = "Cylinder"
  75. limbcollider.Transparency = 1
  76. limbcollider.Name = "LimbCollider"
  77. local limbcolliderweld = Instance.new("Weld", limbcollider)
  78. limbcolliderweld.Part0 = PC.Character:findFirstChild("Right Arm")
  79. limbcolliderweld.Part1 = limbcollider
  80. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  81. local limbcollider2 = Instance.new("Part", PC.Character:findFirstChild("Left Arm"))
  82. limbcollider2.Size = Vector3.new(1.4,1,1)
  83. limbcollider2.Shape = "Cylinder"
  84. limbcollider2.Transparency = 1
  85. limbcollider2.Name = "LimbCollider"
  86. local limbcolliderweld2 = Instance.new("Weld", limbcollider)
  87. limbcolliderweld2.Part0 = PC.Character:findFirstChild("Left Arm")
  88. limbcolliderweld2.Part1 = limbcollider2
  89. limbcolliderweld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  90. local limbcollider3 = Instance.new("Part", PC.Character:findFirstChild("Right Leg"))
  91. limbcollider3.Size = Vector3.new(1.3,1,1)
  92. limbcollider3.Shape = "Cylinder"
  93. limbcollider3.Transparency = 1
  94. limbcollider3.Name = "LimbCollider"
  95. local limbcolliderweld3 = Instance.new("Weld", limbcollider)
  96. limbcolliderweld3.Part0 = PC.Character:findFirstChild("Right Leg")
  97. limbcolliderweld3.Part1 = limbcollider3
  98. limbcolliderweld3.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  99. local limbcollider4 = Instance.new("Part", PC.Character:findFirstChild("Left Leg"))
  100. limbcollider4.Size = Vector3.new(1.3,1,1)
  101. limbcollider4.Shape = "Cylinder"
  102. limbcollider4.Transparency = 1
  103. limbcollider4.Name = "LimbCollider"
  104. local limbcolliderweld4 = Instance.new("Weld", limbcollider)
  105. limbcolliderweld4.Part0 = PC.Character:findFirstChild("Left Leg")
  106. limbcolliderweld4.Part1 = limbcollider4
  107. limbcolliderweld4.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  108. for i,v in pairs(PC.Character:GetDescendants()) do
  109. if v:IsA("Motor6D") and v.Parent.Name ~= "HumanoidRootPart" then
  110. local Socket = Instance.new("BallSocketConstraint")
  111. local a1 = Instance.new("Attachment")
  112. local a2 = Instance.new("Attachment")
  113. a1.Parent = v.Part0
  114. a2.Parent = v.Part1
  115. Socket.Parent = v.Parent
  116. Socket.Attachment0 = a1
  117. Socket.Attachment1 = a2
  118. a1.CFrame = v.C0
  119. a2.CFrame = v.C1
  120. Socket.LimitsEnabled = true
  121. Socket.TwistLimitsEnabled = true
  122. v:Destroy()
  123. end
  124. end
  125. end
  126. end
  127. end
  128. end)
  129. end
  130. Seat.Touched:Connect(killfunction)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement