Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Seat = Instance.new("VehicleSeat")
- Seat.Parent = script
- Seat.Size = Vector3.new(4,1,10)
- Seat.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(0,8,-8.057)
- Seat.TopSurface = Enum.SurfaceType.Smooth
- Seat.BottomSurface = Enum.SurfaceType.Smooth
- Bumper = Instance.new("Part")
- Bumper.Parent = script
- Bumper.Size = Vector3.new(7.75,2.25,1)
- Weldlol3 = Instance.new("Weld")
- Weldlol3.Parent = Seat
- Weldlol3.Part0 = Seat
- Weldlol3.Part1 = Bumper
- Weldlol3.C1 = Weldlol3.C1 * CFrame.new(0,-1.25,9.75)
- Bumper3 = Instance.new("Part")
- Bumper3.Parent = script
- Bumper3.Size = Vector3.new(4,2.25,4.65)
- Weldlol32 = Instance.new("Weld")
- Weldlol32.Parent = Bumper
- Weldlol32.Part0 = Bumper
- Weldlol32.Part1 = Bumper3
- Weldlol32.C1 = Weldlol32.C1 * CFrame.new(0,0,-2.5)
- Bumper2 = Instance.new("Part")
- Bumper2.Parent = script
- Bumper2.Size = Vector3.new(7.75,2.25,1)
- Weldlol31 = Instance.new("Weld")
- Weldlol31.Parent = Seat
- Weldlol31.Part0 = Seat
- Weldlol31.Part1 = Bumper2
- Weldlol31.C1 = Weldlol31.C1 * CFrame.new(0,-1.25,-8.5)
- Bumper4 = Instance.new("Part")
- Bumper4.Parent = script
- Bumper4.Size = Vector3.new(4,2.25,4.65)
- Weldlol33 = Instance.new("Weld")
- Weldlol33.Parent = Bumper2
- Weldlol33.Part0 = Bumper2
- Weldlol33.Part1 = Bumper4
- Weldlol33.C1 = Weldlol33.C1 * CFrame.new(0,0,2.5)
- Seat.Anchored = true
- wheel3 = Instance.new("Part")
- wheel3.Parent = Seat
- wheel3.Size = Vector3.new(5,1,5)
- wheel3.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(-3.739,6.5,5.75)
- wheel3.TopSurface = Enum.SurfaceType.Smooth
- wheel3.BottomSurface = Enum.SurfaceType.Smooth
- wheel4 = Instance.new("Part")
- wheel4.Parent = Seat
- wheel4.Size = Vector3.new(5,1,5)
- wheel4.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(3.739,6.5,5.75)
- wheel4.TopSurface = Enum.SurfaceType.Smooth
- wheel4.BottomSurface = Enum.SurfaceType.Smooth
- local attachment03 = Instance.new("Attachment")
- attachment03.Parent = wheel3
- local attachment13 = Instance.new("Attachment")
- attachment13.Parent = Seat
- alignposition3 = Instance.new("HingeConstraint")
- alignposition3.Parent = Seat
- alignposition3.ActuatorType = "Servo"
- alignposition3.TargetAngle = -35
- alignposition3.Name = "Hinge3"
- alignposition3.ServoMaxTorque = 10000000
- alignposition3.AngularSpeed = 10000000
- alignposition3.Attachment0 = attachment03
- alignposition3.Attachment1 = attachment13
- attachment13.WorldCFrame = attachment13.Parent.CFrame * CFrame.new(0,5,-15.75)
- attachment03.WorldCFrame = attachment03.Parent.CFrame * CFrame.new(0,0,2.5)
- local attachment023 = Instance.new("Attachment")
- attachment023.Parent = wheel4
- local attachment123 = Instance.new("Attachment")
- attachment123.Parent = Seat
- alignposition23 = Instance.new("HingeConstraint")
- alignposition23.Parent = Seat
- alignposition23.ActuatorType = "Servo"
- alignposition23.TargetAngle = 35
- alignposition23.Name = "Hinge3"
- alignposition23.ServoMaxTorque = 10000000
- alignposition23.AngularSpeed = 10000000
- alignposition23.Attachment0 = attachment023
- alignposition23.Attachment1 = attachment123
- attachment123.WorldCFrame = attachment123.Parent.CFrame * CFrame.new(0,0, -15.75)
- attachment023.WorldCFrame = attachment023.Parent.CFrame * CFrame.new(0,0,2.5)
- local motor1 = alignposition3
- local motor2 = alignposition23
- local steerServo = alignposition
- local steerServo2 = alignposition2
- local maxSpeed = 42.5
- local angleSteer = 35
- local function carMove(property)
- if property == "Steer" then
- alignposition3.TargetAngle = angleSteer * Seat.Steer
- alignposition23.TargetAngle = angleSteer * -Seat.Steer
- end
- end
- Seat.Changed:Connect(carMove)
- local density = 1
- local friction = 1
- local elasticity = 0
- local frictionWeight = 100000000000
- local elasticityWeight = 0
- local physProperties = PhysicalProperties.new(density, friction, elasticity, frictionWeight, elasticityWeight)
- Seat.CustomPhysicalProperties = physProperties
- wheel3.CustomPhysicalProperties = physProperties
- wheel4.CustomPhysicalProperties = physProperties
- wait(0.25)
- Seat.Anchored = false
- local carHealth = 125
- times = 0
- -- function Touch(balls)
- -- balls.Touched = true
- -- end
Add Comment
Please, Sign In to add comment