View difference between Paste ID: WdqbZqtv and 9DCnbmJh
SHOW: | | - or go back to the newest paste.
1
script.Parent = owner.Character
2
Seat = Instance.new("VehicleSeat")
3
Seat.Parent = script
4
Seat.Size = Vector3.new(4,1,10)
5-
Seat.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(0,8,-8.057)
5+
Seat.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(0,15,-8.057)
6
Seat.TopSurface = Enum.SurfaceType.Smooth
7
Seat.BottomSurface = Enum.SurfaceType.Smooth
8-
Bumper = Instance.new("Part")
8+
9-
Bumper.Parent = script
9+
10-
Bumper.Size = Vector3.new(7.75,2.25,1)
10+
wheel.Size = Vector3.new(1,5,3)
11-
Weldlol3 = Instance.new("Weld")
11+
12-
Weldlol3.Parent = Seat
12+
13-
Weldlol3.Part0 = Seat
13+
14-
Weldlol3.Part1 = Bumper
14+
15-
Weldlol3.C1 = Weldlol3.C1 * CFrame.new(0,-1.25,9.75)
15+
16-
side = Instance.new("Part")
16+
17-
side.Parent = script
17+
wheel2.Size = Vector3.new(1,5,3)
18-
side.Size = Vector3.new(1.75,0.25,17.15)
18+
19-
Weldside = Instance.new("Weld")
19+
20-
Weldside.Parent = Seat
20+
21-
Weldside.Part0 = Seat
21+
22-
Weldside.Part1 = side
22+
                attachment03.Parent = wheel
23-
Weldside.C1 = Weldside.C1 * CFrame.new(3.0625,-2.25,0.625)
23+
24-
side2 = Instance.new("Part")
24+
25-
side2.Parent = script
25+
26-
side2.Size = Vector3.new(1.75,0.25,17.15)
26+
27-
Weldside2 = Instance.new("Weld")
27+
28-
Weldside2.Parent = Seat
28+
29-
Weldside2.Part0 = Seat
29+
alignposition3.MotorMaxTorque = 1000000000
30-
Weldside2.Part1 = side2
30+
31-
Weldside2.C1 = Weldside2.C1 * CFrame.new(-3.0625,-2.25,0.625)
31+
32-
Bumper3 = Instance.new("Part")
32+
33-
Bumper3.Parent = script
33+
attachment13.WorldCFrame = attachment13.Parent.CFrame * CFrame.new(-3.739,-5,0)* CFrame.Angles(0,0,0)
34-
Bumper3.Size = Vector3.new(4,2.25,4.65)
34+
attachment03.WorldCFrame = attachment03.Parent.CFrame * CFrame.new(3.739,0,0)* CFrame.Angles(0,0,0)
35-
Weldlol32 = Instance.new("Weld")
35+
36-
Weldlol32.Parent = Bumper
36+
                attachment023.Parent = wheel2
37-
Weldlol32.Part0 = Bumper
37+
38-
Weldlol32.Part1 = Bumper3
38+
39-
Weldlol32.C1 = Weldlol32.C1 * CFrame.new(0,0,-2.5)
39+
40-
Bumper2 = Instance.new("Part")
40+
41-
Bumper2.Parent = script
41+
42-
Bumper2.Size = Vector3.new(7.75,2.25,1)
42+
43-
Weldlol31 = Instance.new("Weld")
43+
alignposition23.MotorMaxTorque = 1000000000
44-
Weldlol31.Parent = Seat
44+
45-
Weldlol31.Part0 = Seat
45+
46-
Weldlol31.Part1 = Bumper2
46+
47-
Weldlol31.C1 = Weldlol31.C1 * CFrame.new(0,-1.25,-8.5)
47+
attachment123.WorldCFrame = attachment123.Parent.CFrame * CFrame.new(3.739,-5,0)
48-
Bumper4 = Instance.new("Part")
48+
attachment023.WorldCFrame = attachment023.Parent.CFrame * CFrame.new(-3.739,0,0)
49-
Bumper4.Parent = script
49+
50-
Bumper4.Size = Vector3.new(4,2.25,4.65)
50+
51-
Weldlol33 = Instance.new("Weld")
51+
wheel3.Size = Vector3.new(1,5,3)
52-
Weldlol33.Parent = Bumper2
52+
wheel3.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(-3.739,6.5,-7.25)
53-
Weldlol33.Part0 = Bumper2
53+
54-
Weldlol33.Part1 = Bumper4
54+
55-
Weldlol33.C1 = Weldlol33.C1 * CFrame.new(0,0,2.5)
55+
56
wheel4.Parent = Seat
57
wheel4.Size = Vector3.new(1,5,3)
58-
wheel.Size = Vector3.new(1,3,3)
58+
wheel4.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(3.739,6.5,-7.25)
59-
steer = Instance.new("Part")
59+
60-
steer.Parent = Seat
60+
61-
steer.Size = Vector3.new(1,1,1)
61+
62-
steer2 = Instance.new("Part")
62+
                attachment031.Parent = wheel3
63-
steer2.Parent = Seat
63+
64-
steer2.Size = Vector3.new(1,1,1)
64+
                attachment131.Parent = wheel
65-
steer.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(-3.739,1,-7.25)
65+
66-
steer2.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(3.739,1,-7.25)
66+
67-
steer.Transparency = 1
67+
alignposition31.ActuatorType = "Motor"
68-
steer.CanCollide = false
68+
alignposition31.MotorMaxAcceleration = 10000000
69-
steer2.Transparency = 1
69+
alignposition31.MotorMaxTorque = 1000000000
70-
steer2.CanCollide = false
70+
71-
wheelsus = Instance.new("Part")
71+
72-
wheelsus.Parent = Seat
72+
attachment131.WorldCFrame = attachment131.Parent.CFrame * CFrame.new(0,-8,0)* CFrame.Angles(0,0,0)
73-
wheelsus.Size = Vector3.new(1,1,1)
73+
attachment031.WorldCFrame = attachment031.Parent.CFrame * CFrame.new(0,4,0)* CFrame.Angles(0,0,0)
74-
wheelsus2 = Instance.new("Part")
74+
75-
wheelsus2.Parent = Seat
75+
                attachment0231.Parent = wheel4
76-
wheelsus2.Size = Vector3.new(1,1,1)
76+
77-
wheelsus.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(-3.739,1,-7.25)
77+
                attachment1231.Parent = wheel2
78-
wheelsus2.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(3.739,1,-7.25)
78+
79-
wheelsus.Transparency = 1
79+
80-
wheelsus.CanCollide = false
80+
alignposition231.ActuatorType = "Motor"
81-
wheelsus2.Transparency = 1
81+
alignposition231.MotorMaxAcceleration = 10000000
82-
wheelsus2.CanCollide = false
82+
alignposition231.MotorMaxTorque = 1000000000
83
                alignposition231.Attachment0 = attachment0231
84
                alignposition231.Attachment1 = attachment1231
85
attachment1231.WorldCFrame = attachment1231.Parent.CFrame * CFrame.new(0,-8,0)
86
attachment0231.WorldCFrame = attachment0231.Parent.CFrame * CFrame.new(0,4,0)
87
local function carMove(property)
88
	if property == "Throttle" then
89-
wheel2.Size = Vector3.new(1,3,3)
89+
if Seat.Throttle == 1 then
90
		alignposition23.AngularVelocity = 1.75
91
	        alignposition3.AngularVelocity = -1.25
92
		alignposition231.AngularVelocity = -1.25
93
	        alignposition31.AngularVelocity = 1.25
94
elseif Seat.Throttle == -1 then
95-
wheel3.Size = Vector3.new(1,3,3)
95+
		alignposition23.AngularVelocity = -1.25
96-
wheel3.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(-3.739,6.5,5.75)
96+
	        alignposition3.AngularVelocity = 1.75
97
		alignposition231.AngularVelocity = 1.25
98
	        alignposition31.AngularVelocity = -1.25
99
elseif Seat.Throttle == 0 then
100
		alignposition23.AngularVelocity = 0
101-
wheel4.Size = Vector3.new(1,3,3)
101+
	        alignposition3.AngularVelocity = 0
102-
wheel4.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(3.739,6.5,5.75)
102+
		alignposition231.AngularVelocity = 0
103
	        alignposition31.AngularVelocity = 0
104
	end
105-
wheel.Shape = Enum.PartType.Cylinder 
105+
106-
wheel2.Shape = Enum.PartType.Cylinder 
106+
107-
wheel3.Shape = Enum.PartType.Cylinder 
107+
108-
wheel4.Shape = Enum.PartType.Cylinder 
108+
    local hatweld = Instance.new("NoCollisionConstraint", wheel)
109-
  local attachment0 = Instance.new("Attachment")
109+
    hatweld.Part0 = wheel
110-
                attachment0.Parent = steer
110+
    hatweld.Part1 = wheel3
111-
                local attachment1 = Instance.new("Attachment")
111+
    local hatweld2 = Instance.new("NoCollisionConstraint", wheel2)
112-
                attachment1.Parent = Seat
112+
    hatweld2.Part0 = wheel2
113-
                alignposition = Instance.new("HingeConstraint")
113+
    hatweld2.Part1 = wheel4
114-
                alignposition.Parent = Seat
114+
wait(0.5)
115-
alignposition.ActuatorType = "Servo"
115+
local xzGyro = Instance.new("BodyGyro")
116-
alignposition.TargetAngle = 0
116+
xzGyro.MaxTorque = Vector3.new(10000000000,0,10000000000)
117-
alignposition.Name = "Hinge4"
117+
xzGyro.P = 1000000000
118-
alignposition.ServoMaxTorque = 10000000
118+
xzGyro.D = 100000
119-
alignposition.AngularSpeed = 10000000
119+
xzGyro.Parent = Seat
120-
                alignposition.Attachment0 = attachment0
120+
Seat.Anchored = false