View difference between Paste ID: dv4SS0tt and ZhREZKV9
SHOW: | | - or go back to the newest paste.
1
seat = Instance.new("VehicleSeat", script)
2-
seat.Size = Vector3.new(3,1,7.5)
2+
seat.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(-5,0,10)
3-
seat.CFrame = CFrame.new(10,10,10)
3+
stand = Instance.new("Part", script)
4
stand.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(0,-2.5,10)
5-
seat2 = Instance.new("Seat", script)
5+
stand.Size = Vector3.new(15,5,10)
6-
seat2.Size = Vector3.new(1.5,1,3)
6+
stand.Anchored = true
7-
seat2.CFrame = CFrame.new(10,10,13.5)
7+
stand.Material = "SmoothPlastic"
8-
seat3 = Instance.new("Seat", script)
8+
seat.Material = "SmoothPlastic"
9-
seat3.Size = Vector3.new(1.5,1,3)
9+
seat2 = Instance.new("VehicleSeat", script)
10-
seat3.CFrame = CFrame.new(10,10,13.5)
10+
seat2.Material = "SmoothPlastic"
11-
wheel = Instance.new("Part")
11+
seat.Color = Color3.fromRGB(0,0,0)
12-
wheel.Parent = seat
12+
seat2.Color = Color3.fromRGB(0,0,0)
13-
wheel.Size = Vector3.new(2,4,4)
13+
seat2.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(5,0,10)
14-
wheel.TopSurface = Enum.SurfaceType.Smooth
14+
paddle = Instance.new("Part", script)
15-
wheel.BottomSurface = Enum.SurfaceType.Smooth
15+
paddle.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(-15,10,5)
16-
wheel2 = Instance.new("Part")
16+
paddle.Color = Color3.fromRGB(255,255,255)
17-
wheel2.Parent = seat
17+
paddle.Size = Vector3.new(1,7.5,0.125)
18-
wheel2.Size = Vector3.new(2,4,4)
18+
paddle.CanCollide = false
19-
wheel2.TopSurface = Enum.SurfaceType.Smooth
19+
paddle3 = Instance.new("Part", script)
20-
wheel2.BottomSurface = Enum.SurfaceType.Smooth
20+
paddle3.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(0,16,5)
21-
wheel3 = Instance.new("Part")
21+
oldcf = owner.Character.HumanoidRootPart.CFrame * CFrame.new(0,16,5)
22-
wheel3.Parent = seat
22+
paddle3.Color = Color3.fromRGB(255,255,255)
23-
wheel3.Size = Vector3.new(2,4,4)
23+
paddle3.Size = Vector3.new(1,1,0.125)
24-
wheel3.TopSurface = Enum.SurfaceType.Smooth
24+
bounce = Instance.new("Sound",paddle3)
25-
wheel3.BottomSurface = Enum.SurfaceType.Smooth
25+
bounce.SoundId = "rbxassetid://877986348"
26-
wheel4 = Instance.new("Part")
26+
bounce.Volume = 7.5
27-
wheel4.Parent = seat
27+
paddle2 = Instance.new("Part", script)
28-
wheel4.Size = Vector3.new(2,4,4)
28+
paddle2.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(15,10,5)
29-
wheel4.TopSurface = Enum.SurfaceType.Smooth
29+
paddle2.Color = Color3.fromRGB(255,255,255)
30-
wheel4.BottomSurface = Enum.SurfaceType.Smooth
30+
paddle2.Size = Vector3.new(1,7.5,0.125)
31-
wheel.Shape = Enum.PartType.Cylinder 
31+
paddle2.CanCollide = false
32-
wheel2.Shape = Enum.PartType.Cylinder 
32+
wall = Instance.new("Part", script)
33-
wheel3.Shape = Enum.PartType.Cylinder 
33+
wall.CanTouch = false
34-
wheel4.Shape = Enum.PartType.Cylinder 
34+
wall.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(0,16,4.875)
35-
local a = Instance.new("Part", seat)
35+
wall.Size = Vector3.new(40,20,0.125)
36-
local a2 = Instance.new("Part", seat)
36+
wall.Anchored = true
37-
a.Transparency = 1
37+
wall.Color = Color3.fromRGB(0,0,0)
38-
a2.Transparency = 1
38+
wall4 = Instance.new("Part", script)
39-
a.Size = Vector3.new(1,1,1)
39+
wall4.CanTouch = false
40-
a2.Size = Vector3.new(1,1,1)
40+
wall4.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(0,16,5.25)
41-
local at0 = Instance.new("Attachment" , a)
41+
wall4.Size = Vector3.new(40,20,0.05)
42-
at0.CFrame = CFrame.Angles(0,0,math.rad(-90))
42+
wall4.Anchored = true
43-
local at1 = Instance.new("Attachment" , a2)
43+
wall4.Transparency = 0.75
44-
at1.CFrame = CFrame.Angles(0,0,math.rad(-90))
44+
wall7 = Instance.new("Part", script)
45-
local spring = Instance.new("SpringConstraint" , a)
45+
wall7.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(-15,30,4.875)
46-
spring.Attachment0 = at0
46+
wall7.Size = Vector3.new(5,5,0.05)
47-
spring.Attachment1 = at1
47+
wall7.Anchored = true
48-
spring.Stiffness = 30000
48+
wall8 = Instance.new("Part", script)
49-
spring.FreeLength = 2.2
49+
wall8.CanTouch = false
50-
spring.Enabled = true
50+
wall8.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(15,30,4.875)
51-
spring.Visible = true
51+
wall8.Size = Vector3.new(5,5,0.125)
52-
spring.Damping = 400
52+
wall8.Anchored = true
53-
local prism = Instance.new("PrismaticConstraint" , a)
53+
       local screengui3 = Instance.new("SurfaceGui", wall7)
54-
prism.Attachment0 = at0
54+
        screengui3.Name = "Hud3"
55-
prism.Attachment1 = at1
55+
screengui3.Face = Enum.NormalId.Back
56-
prism.LimitsEnabled = true
56+
        tl1 = Instance.new("TextBox", screengui3)
57-
prism.LowerLimit = -2
57+
        tl1.Size = UDim2.new(1, 0, 1, 0)
58-
prism.UpperLimit = 2
58+
        tl1.BackgroundTransparency = 1
59-
local a3 = Instance.new("Part", seat)
59+
		tl1.Text = "Score 0"
60-
local a4 = Instance.new("Part", seat)
60+
        screengui3.AlwaysOnTop = true
61-
a3.Transparency = 1
61+
       local screengui4 = Instance.new("SurfaceGui", wall8)
62-
a4.Transparency = 1
62+
        screengui4.Name = "Hud3"
63-
a3.Size = Vector3.new(1,1,1)
63+
screengui4.Face = Enum.NormalId.Back
64-
a4.Size = Vector3.new(1,1,1)
64+
        tl2 = Instance.new("TextBox", screengui4)
65-
local at2 = Instance.new("Attachment" , a3)
65+
        tl2.Size = UDim2.new(1, 0, 1, 0)
66-
at2.CFrame = CFrame.Angles(0,0,math.rad(-90))
66+
        tl2.BackgroundTransparency = 1
67-
local at3 = Instance.new("Attachment" , a4)
67+
		tl2.Text = "Score 0"
68-
at3.CFrame = CFrame.Angles(0,0,math.rad(-90))
68+
        screengui3.AlwaysOnTop = true
69-
local spring2 = Instance.new("SpringConstraint" , a3)
69+
tl2.TextSize = 200
70-
spring2.Attachment0 = at2
70+
tl1.TextSize = 200
71-
spring2.Attachment1 = at3
71+
tl1.TextColor3 = Color3.fromRGB(255,255,255)
72-
spring2.Stiffness = 30000
72+
tl2.TextColor3 = Color3.fromRGB(255,255,255)
73-
spring2.FreeLength = 2.2
73+
wall2 = Instance.new("Part", script)
74-
spring2.Enabled = true
74+
wall2.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(0,6,5)
75-
spring2.Visible = true
75+
wall2.Size = Vector3.new(40,0.525,0.5)
76-
spring2.Damping = 400
76+
wall2.Anchored = true
77-
local prism2 = Instance.new("PrismaticConstraint" , a3)
77+
wall2.Color = Color3.fromRGB(0,0,0)
78-
prism2.Attachment0 = at2
78+
wall2.Name = "Limits"
79-
prism2.Attachment1 = at3
79+
wall5 = Instance.new("Part", script)
80-
prism2.LimitsEnabled = true
80+
wall5.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(20,16,5)
81-
prism2.LowerLimit = -2
81+
wall5.Size = Vector3.new(0.525,20,0.5)
82-
prism2.UpperLimit = 2
82+
wall5.Anchored = true
83-
local a5 = Instance.new("Part", seat)
83+
wall5.Color = Color3.fromRGB(0,0,0)
84-
local a6 = Instance.new("Part", seat)
84+
wall5.Name = "Limits3"
85-
a5.Transparency = 1
85+
wall6 = Instance.new("Part", script)
86-
a6.Transparency = 1
86+
wall6.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(-20,16,5)
87-
a5.Size = Vector3.new(1,1,1)
87+
wall6.Size = Vector3.new(0.525,20,0.5)
88-
a6.Size = Vector3.new(1,1,1)
88+
wall6.Anchored = true
89-
local blockweld3 = Instance.new("Weld", seat)
89+
wall6.Color = Color3.fromRGB(0,0,0)
90-
blockweld3.Part0 = a5
90+
wall6.Name = "Limits4"
91-
blockweld3.Part1 = seat
91+
wall3 = Instance.new("Part", script)
92-
blockweld3.C0 = CFrame.new(-3.5, -2, -5.75)
92+
wall3.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(0,26,5)
93-
local blockweld = Instance.new("Weld", seat)
93+
wall3.Size = Vector3.new(40,0.525,0.5)
94-
blockweld.Part0 = seat2
94+
wall3.Anchored = true
95-
blockweld.Part1 = seat
95+
wall3.Color = Color3.fromRGB(0,0,0)
96-
blockweld.C0 = CFrame.new(-0.75,0,-4)
96+
wall3.Name = "Limits2"
97-
local blockweld2 = Instance.new("Weld", seat)
97+
98-
blockweld2.Part0 = seat3
98+
seat2.Anchored = true
99-
blockweld2.Part1 = seat
99+
speed = 25
100-
blockweld2.C0 = CFrame.new(0.75,0,-4)
100+
bp = Instance.new("BodyPosition",paddle)
101-
local at4 = Instance.new("Attachment" , a5)
101+
bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
102-
at4.CFrame = CFrame.Angles(0,0,math.rad(-90))
102+
bp.P = 1000000
103-
local at5 = Instance.new("Attachment" , a6)
103+
bp.Position = paddle.Position
104-
at5.CFrame = CFrame.Angles(0,0,math.rad(-90))
104+
bg = Instance.new("BodyGyro",paddle)
105-
local spring3 = Instance.new("SpringConstraint" , a5)
105+
bg.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
106-
spring3.Attachment0 = at4
106+
bp3 = Instance.new("BodyPosition",paddle2)
107-
spring3.Attachment1 = at5
107+
bp3.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
108-
spring3.Stiffness = 30000
108+
bp3.P = 1000000
109-
spring3.FreeLength = 2.2
109+
bp3.Position = paddle2.Position
110-
spring3.Enabled = true
110+
bg3 = Instance.new("BodyGyro",paddle2)
111-
spring3.Visible = true
111+
bg3.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
112-
spring3.Damping = 400
112+
bp2 = Instance.new("BodyVelocity",paddle3)
113-
local prism3 = Instance.new("PrismaticConstraint" , a5)
113+
bp2.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
114-
prism3.Attachment0 = at4
114+
bp2.Velocity = Vector3.new(0,0,0)
115-
prism3.Attachment1 = at5
115+
bg2 = Instance.new("BodyGyro",paddle3)
116-
prism3.LimitsEnabled = true
116+
bg2.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
117-
prism3.LowerLimit = -2
117+
bg2.P = 100000000
118-
prism3.UpperLimit = 2
118+
bg3.P = 100000000
119-
local a7 = Instance.new("Part", seat)
119+
bg.P = 100000000
120-
local a8 = Instance.new("Part", seat)
120+
for i,v in pairs(script:GetDescendants()) do
121-
a7.Transparency = 1
121+
if v:IsA("Part") then
122-
a8.Transparency = 1
122+
v.Locked = true
123-
a7.Size = Vector3.new(1,1,1)
123+
124-
a8.Size = Vector3.new(1,1,1)
124+
125-
local blockweld4 = Instance.new("Weld", seat)
125+
bg2.CFrame = paddle3.CFrame
126-
blockweld4.Part0 = a7
126+
bg3.CFrame = paddle2.CFrame
127-
blockweld4.Part1 = seat
127+
bg.CFrame = paddle.CFrame
128-
blockweld4.C0 = CFrame.new(3.5, -2, -5.75)
128+
129-
local at6 = Instance.new("Attachment" , a7)
129+
on2 = false
130-
at6.CFrame = CFrame.Angles(0,0,math.rad(-90))
130+
start = false
131-
local at7 = Instance.new("Attachment" , a8)
131+
132-
at7.CFrame = CFrame.Angles(0,0,math.rad(-90))
132+
pcall(function()
133-
local spring4 = Instance.new("SpringConstraint" , a7)
133+
	if seat.Occupant ~= nil then
134-
spring4.Attachment0 = at6
134+
paddle:SetNetworkOwner(game:GetService("Players"):GetPlayerFromCharacter(seat.Occupant.Parent))
135-
spring4.Attachment1 = at7
135+
136-
spring4.Stiffness = 30000
136+
end)
137-
spring4.FreeLength = 2.2
137+
	if property == "Throttle" then
138-
spring4.Enabled = true
138+
		if seat.Throttle ~= 0 then
139-
spring4.Visible = true
139+
on = true
140-
spring4.Damping = 400
140+
		elseif seat.Throttle == 0 then
141-
local prism4 = Instance.new("PrismaticConstraint" , a7)
141+
142-
prism4.Attachment0 = at6
142+
143-
prism4.Attachment1 = at7
143+
144-
prism4.LimitsEnabled = true
144+
		if seat.Steer == -1 then
145-
prism4.LowerLimit = -2
145+
if not start then
146-
prism4.UpperLimit = 2
146+
bp2.Velocity = paddle3.CFrame.rightVector * 10
147-
  local attachment031 = Instance.new("Attachment")
147+
start = true
148-
                attachment031.Parent = wheel
148+
elseif start then
149-
                local attachment131 = Instance.new("Attachment")
149+
bp2.Velocity = Vector3.new(0,0,0)
150-
                attachment131.Parent = a2
150+
paddle3.CFrame = oldcf
151-
                alignposition31 = Instance.new("HingeConstraint")
151+
start = false
152-
                alignposition31.Parent = a2
152+
153-
alignposition31.ActuatorType = Enum.ActuatorType.None
153+
		elseif seat.Steer == 1 then
154-
                alignposition31.Attachment0 = attachment031
154+
paddle3.CFrame = oldcf
155-
                alignposition31.Attachment1 = attachment131
155+
156-
attachment131.WorldCFrame = attachment131.Parent.CFrame * CFrame.new(0,0,0)
156+
157-
wheel.CFrame = a2.CFrame
157+
158-
  local attachment0231 = Instance.new("Attachment")
158+
local function carMove2(property)
159-
                attachment0231.Parent = wheel2
159+
pcall(function()
160-
                local attachment1231 = Instance.new("Attachment")
160+
	if seat2.Occupant ~= nil then
161-
                attachment1231.Parent = a4
161+
paddle2:SetNetworkOwner(game:GetService("Players"):GetPlayerFromCharacter(seat.Occupant.Parent))
162-
                alignposition231 = Instance.new("HingeConstraint")
162+
163-
                alignposition231.Parent = a4
163+
end)
164-
alignposition231.ActuatorType = Enum.ActuatorType.None
164+
	if property == "Throttle" then
165-
                alignposition231.Attachment0 = attachment0231
165+
		if seat2.Throttle ~= 0 then
166-
                alignposition231.Attachment1 = attachment1231
166+
on2 = true
167-
attachment1231.WorldCFrame = attachment1231.Parent.CFrame  * CFrame.new(0,0,0)
167+
		elseif seat2.Throttle == 0 then
168-
wheel2.CFrame = a4.CFrame
168+
on2 = false
169-
  local attachment03 = Instance.new("Attachment")
169+
170-
                attachment03.Parent = wheel3
170+
171-
                local attachment13 = Instance.new("Attachment")
171+
172-
                attachment13.Parent = a6
172+
173-
                alignposition3 = Instance.new("HingeConstraint")
173+
seat2.Changed:Connect(carMove2)
174-
                alignposition3.Parent = a6
174+
count = 0
175-
alignposition3.ActuatorType = "Motor"
175+
count2 = 0
176-
alignposition3.MotorMaxAcceleration = 10000000
176+
177-
alignposition3.MotorMaxTorque = 10000000
177+
local density = 10
178-
alignposition3.Name = "Hinge1"
178+
local friction = 0
179-
                alignposition3.Attachment0 = attachment03
179+
180-
                alignposition3.Attachment1 = attachment13
180+
181-
attachment13.WorldCFrame = attachment13.Parent.CFrame * CFrame.new(0,0,0)
181+
182-
wheel3.CFrame = a6.CFrame
182+
183-
  local attachment023 = Instance.new("Attachment")
183+
paddle.CustomPhysicalProperties = physProperties
184-
                attachment023.Parent = wheel4
184+
paddle2.CustomPhysicalProperties = physProperties
185-
                local attachment123 = Instance.new("Attachment")
185+
paddle3.CustomPhysicalProperties = physProperties
186-
                attachment123.Parent = a8
186+
187-
                alignposition23 = Instance.new("HingeConstraint")
187+
currentz = paddle.Position.z
188-
                alignposition23.Parent = a8
188+
currentz2 = paddle2.Position.z
189-
alignposition23.ActuatorType = "Motor"
189+
paddle3.Touched:Connect(function(hit)
190-
alignposition23.MotorMaxAcceleration = 10000000
190+
coroutine.wrap(function()
191-
alignposition23.MotorMaxTorque = 10000000
191+
if hit.Name ~= "Limits3" then
192-
alignposition23.Name = "Hinge2"
192+
if hit.Name ~= "Limits4" then
193-
                alignposition23.Attachment0 = attachment023
193+
if hit.Name ~= "Limits" then
194-
                alignposition23.Attachment1 = attachment123
194+
if hit.Name ~= "Limits2" then
195-
wheel4.CFrame = a8.CFrame
195+
bounce.PlaybackSpeed = math.random(0.85,1.25)
196-
attachment123.WorldCFrame = attachment123.Parent.CFrame * CFrame.new(0,0,0)
196+
bounce:Play()
197-
  local attachmentlol = Instance.new("Attachment")
197+
bp2.Velocity = CFrame.new(paddle3.Position,hit.Position).lookVector * -10
198-
                attachmentlol.Parent = seat
198+
elseif hit.Name == "Limits2" then
199-
attachmentlol.WorldCFrame = attachmentlol.Parent.CFrame * CFrame.new(3.5, 2, -3.75) * CFrame.Angles(0,0,math.rad(-90))
199+
bounce.PlaybackSpeed = math.random(0.85,1.25)
200-
  local attachmentlol2 = Instance.new("Attachment")
200+
bounce:Play()
201-
                attachmentlol2.Parent = seat
201+
bp2.Velocity = bp2.Velocity + Vector3.new(0,-10,0)
202-
attachmentlol2.WorldCFrame = attachmentlol2.Parent.CFrame * CFrame.new(-3.5, 2, -3.75) * CFrame.Angles(0,0,math.rad(-90))
202+
203-
                alignposition = Instance.new("HingeConstraint")
203+
elseif hit.Name == "Limits" then
204-
                alignposition.Parent = seat
204+
bounce.PlaybackSpeed = math.random(0.85,1.25)
205-
alignposition.ActuatorType = "Servo"
205+
bounce:Play()
206-
alignposition.TargetAngle = 0
206+
bp2.Velocity = bp2.Velocity + Vector3.new(0,10,0)
207-
alignposition.Name = "Hinge4"
207+
208-
alignposition.ServoMaxTorque = 100000000000
208+
elseif hit.Name == "Limits4" then
209-
alignposition.AngularSpeed = 10000000
209+
count = count + 1
210-
                alignposition.Attachment0 = attachmentlol
210+
paddle3.CFrame = oldcf
211-
                alignposition.Attachment1 = at0
211+
		tl2.Text = "Score "..count
212-
                alignposition2 = Instance.new("HingeConstraint")
212+
213-
                alignposition2.Parent = seat
213+
elseif hit.Name == "Limits3" then
214-
alignposition2.ActuatorType = "Servo"
214+
count2 = count2 + 1
215-
alignposition2.TargetAngle = 0
215+
paddle3.CFrame = oldcf
216-
alignposition2.Name = "Hinge4"
216+
		tl1.Text = "Score "..count2
217-
alignposition2.ServoMaxTorque = 100000000000
217+
218-
alignposition2.AngularSpeed = 10000000
218+
end)()
219-
                alignposition2.Attachment0 = attachmentlol2
219+
end)
220-
                alignposition2.Attachment1 = at2
220+
while true do
221-
a.CanCollide = false
221+
task.wait()
222-
a2.CanCollide = false
222+
if on then
223-
a3.CanCollide = false
223+
bp.Position = Vector3.new(paddle.Position.x,math.clamp(paddle.Position.y,14,24),currentz) + Vector3.new(0,seat.Throttle * 1.5,0)
224-
a4.CanCollide = false
224+
225-
a5.CanCollide = false
225+
if on2 then
226-
a6.CanCollide = false
226+
bp3.Position = Vector3.new(paddle2.Position.x,math.clamp(paddle2.Position.y,14,24),currentz2) + Vector3.new(0,seat2.Throttle * 1.5,0)
227-
a7.CanCollide = false
227+
228-
a8.CanCollide = false
228+
end