Driving empire test idk lol

public
vxpreen Jul 22, 2024 Never 41
Clone
Bash paste1.bash 311 lines (290 loc) | 14.82 KB
1
-- loadstring(game:HttpGet("https://pastecode.dev/raw/9k6yc1ng/paste1.bash"))()
2
3
local Players = game:GetService("Players")
4
local VirtualUser = game:GetService("VirtualUser")
5
local UserInputService = game:GetService("UserInputService")
6
7
local function activateAFK()
8
local GC = getconnections or get_signal_cons
9
if GC then
10
for _, connection in pairs(GC(Players.LocalPlayer.Idled)) do
11
if connection["Disable"] then
12
connection["Disable"](connection)
13
elseif connection["Disconnect"] then
14
connection["Disconnect"](connection)
15
end
16
end
17
else
18
Players.LocalPlayer.Idled:Connect(function()
19
VirtualUser:CaptureController()
20
VirtualUser:ClickButton2(Vector2.new())
21
end)
22
end
23
end
24
25
local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/Marco8642/science/main/ui%20libs2", true))()
26
local example = library:CreateWindow({
27
text = "Driving Empire"
28
})
29
30
example:AddBox("Vehicle Velocity Speed", function(object, focus)
31
if focus then
32
getfenv().speed = tonumber(object.Text)
33
end
34
end)
35
36
example:AddToggle("Auto Farm[Velocity]", function(state)
37
_G.testers = (state and true or false)
38
--experimental auto farm
39
spawn(function()
40
local pre = getfenv().location
41
local timer = 0
42
while _G.testers do
43
task.wait()
44
if getfenv().location == pre and timer <= 999 then
45
timer =timer + 1
46
print(timer)
47
wait(1)
48
elseif getfenv().location ~= pre then
49
pre = getfenv().location
50
warn("vehicle is not stuck vehicle reset timer reset")
51
timer = 0
52
wait(1)
53
elseif timer >= 999 then
54
warn("vehicle reset")
55
getfenv().reset = true
56
local chr = game.Players.LocalPlayer.Character
57
local car = chr.Humanoid.SeatPart.Parent
58
car.PrimaryPart.Velocity = Vector3.new(0,0,0)
59
car:PivotTo(CFrame.new(getfenv().location))
60
timer = 0
61
wait(1)
62
end
63
end
64
end)
65
while _G.testers do
66
task.wait()
67
getfenv().reset = false
68
local chr = game.Players.LocalPlayer.Character
69
local car = chr.Humanoid.SeatPart.Parent
70
car.PrimaryPart = car.Weight
71
car:PivotTo(CFrame.new(Vector3.new(-18165.4141, 35.1132317, -505.958588, 0.903390467, 3.72191322e-09, 0.428818882, 4.51138404e-10, 1, -9.62986402e-09, -0.428818882, 8.89298413e-09, 0.903390467)))
72
local mathlock = getfenv().speed or 500
73
getfenv().location = Vector3.new(-34495.0703, 34.9256401, -32833.5625, 0.891037107, -2.07590523e-09, 0.453930438, 4.71897188e-10, 1, 3.64687436e-09, -0.453930438, -3.03529202e-09, 0.891037107)
74
if _G.testers == true and getfenv().reset == false then
75
repeat task.wait()
76
mathlock = getfenv().speed or 500
77
car.PrimaryPart.Velocity = Vector3.new(car.PrimaryPart.Velocity.X,-10,car.PrimaryPart.Velocity.Z)
78
car.PrimaryPart.Velocity =car.PrimaryPart.CFrame.LookVector*mathlock
79
car.PrimaryPart.Velocity = Vector3.new(car.PrimaryPart.Velocity.X,-10,car.PrimaryPart.Velocity.Z)
80
car:PivotTo(CFrame.new(car.PrimaryPart.Position,location))
81
car.PrimaryPart.Velocity = Vector3.new(car.PrimaryPart.Velocity.X,-10,car.PrimaryPart.Velocity.Z)
82
until game.Players.LocalPlayer:DistanceFromCharacter(location)< 50 or _G.testers == false or getfenv().reset == true
83
end
84
getfenv().location = Vector3.new(79.72480773925781, 34.419010162353516, -59.68326950073242)
85
86
if _G.testers == true and getfenv().reset == false then
87
repeat task.wait()
88
mathlock = getfenv().speed or 500
89
car.PrimaryPart.Velocity = Vector3.new(car.PrimaryPart.Velocity.X,-10,car.PrimaryPart.Velocity.Z)
90
car.PrimaryPart.Velocity =car.PrimaryPart.CFrame.LookVector*mathlock
91
car.PrimaryPart.Velocity = Vector3.new(car.PrimaryPart.Velocity.X,-10,car.PrimaryPart.Velocity.Z)
92
car:PivotTo(CFrame.new(car.PrimaryPart.Position,location))
93
car.PrimaryPart.Velocity = Vector3.new(car.PrimaryPart.Velocity.X,-10,car.PrimaryPart.Velocity.Z)
94
until game.Players.LocalPlayer:DistanceFromCharacter(location)< 50 or _G.testers == false or getfenv().reset == true
95
end
96
getfenv().location = Vector3.new(80.43889617919922, 34.45082092285156, 474.7792663574219)
97
if _G.testers == true and getfenv().reset == false then
98
repeat task.wait()
99
mathlock = getfenv().speed or 500
100
car.PrimaryPart.Velocity = Vector3.new(car.PrimaryPart.Velocity.X,-10,car.PrimaryPart.Velocity.Z)
101
car.PrimaryPart.Velocity =car.PrimaryPart.CFrame.LookVector*mathlock
102
car.PrimaryPart.Velocity = Vector3.new(car.PrimaryPart.Velocity.X,-10,car.PrimaryPart.Velocity.Z)
103
car:PivotTo(CFrame.new(car.PrimaryPart.Position,location))
104
car.PrimaryPart.Velocity = Vector3.new(car.PrimaryPart.Velocity.X,-10,car.PrimaryPart.Velocity.Z)
105
until game.Players.LocalPlayer:DistanceFromCharacter(location)< 50 or _G.testers == false or getfenv().reset == true
106
end
107
getfenv().location = Vector3.new(53.504276275634766, 34.399757385253906, 1525.7982177734375)
108
if _G.testers == true and getfenv().reset == false then
109
repeat task.wait()
110
mathlock = getfenv().speed or 500
111
car.PrimaryPart.Velocity = Vector3.new(car.PrimaryPart.Velocity.X,-10,car.PrimaryPart.Velocity.Z)
112
car.PrimaryPart.Velocity =car.PrimaryPart.CFrame.LookVector*mathlock
113
car.PrimaryPart.Velocity = Vector3.new(car.PrimaryPart.Velocity.X,-10,car.PrimaryPart.Velocity.Z)
114
car:PivotTo(CFrame.new(car.PrimaryPart.Position,location))
115
car.PrimaryPart.Velocity = Vector3.new(car.PrimaryPart.Velocity.X,-10,car.PrimaryPart.Velocity.Z)
116
until game.Players.LocalPlayer:DistanceFromCharacter(location)< 50 or _G.testers == false or getfenv().reset == true
117
end
118
getfenv().location = Vector3.new(-112.53301239013672, 28.197858810424805, 2313.957763671875)
119
if _G.testers == true and getfenv().reset == false then
120
repeat task.wait()
121
mathlock = getfenv().speed or 500
122
car.PrimaryPart.Velocity = Vector3.new(car.PrimaryPart.Velocity.X,-10,car.PrimaryPart.Velocity.Z)
123
car.PrimaryPart.Velocity =car.PrimaryPart.CFrame.LookVector*mathlock
124
car.PrimaryPart.Velocity = Vector3.new(car.PrimaryPart.Velocity.X,-10,car.PrimaryPart.Velocity.Z)
125
car:PivotTo(CFrame.new(car.PrimaryPart.Position,location))
126
car.PrimaryPart.Velocity = Vector3.new(car.PrimaryPart.Velocity.X,-10,car.PrimaryPart.Velocity.Z)
127
until game.Players.LocalPlayer:DistanceFromCharacter(location)< 50 or _G.testers == false or getfenv().reset == true
128
end
129
getfenv().location = Vector3.new(-262.3653259277344, 13.525763511657715, 3027.66650390625)
130
if _G.testers == true and getfenv().reset == false then
131
repeat task.wait()
132
mathlock = getfenv().speed or 500
133
car.PrimaryPart.Velocity = Vector3.new(car.PrimaryPart.Velocity.X,-10,car.PrimaryPart.Velocity.Z)
134
car.PrimaryPart.Velocity =car.PrimaryPart.CFrame.LookVector*mathlock
135
car.PrimaryPart.Velocity = Vector3.new(car.PrimaryPart.Velocity.X,-10,car.PrimaryPart.Velocity.Z)
136
car:PivotTo(CFrame.new(car.PrimaryPart.Position,location))
137
car.PrimaryPart.Velocity = Vector3.new(car.PrimaryPart.Velocity.X,-10,car.PrimaryPart.Velocity.Z)
138
until game.Players.LocalPlayer:DistanceFromCharacter(location)< 50 or _G.testers == false or getfenv().reset == true
139
end
140
getfenv().location = Vector3.new(-452.8047790527344, 13.539205551147461, 3937.51953125)
141
if _G.testers == true and getfenv().reset == false then
142
repeat task.wait()
143
mathlock = getfenv().speed or 500
144
car.PrimaryPart.Velocity = Vector3.new(car.PrimaryPart.Velocity.X,-10,car.PrimaryPart.Velocity.Z)
145
car.PrimaryPart.Velocity =car.PrimaryPart.CFrame.LookVector*mathlock
146
car.PrimaryPart.Velocity = Vector3.new(car.PrimaryPart.Velocity.X,-10,car.PrimaryPart.Velocity.Z)
147
car:PivotTo(CFrame.new(car.PrimaryPart.Position,location))
148
car.PrimaryPart.Velocity = Vector3.new(car.PrimaryPart.Velocity.X,-10,car.PrimaryPart.Velocity.Z)
149
until game.Players.LocalPlayer:DistanceFromCharacter(location)< 50 or _G.testers == false or getfenv().reset == true
150
end
151
getfenv().location = Vector3.new(-671.54150390625, 13.537410736083984, 4993.31591796875)
152
if _G.testers == true and getfenv().reset == false then
153
repeat task.wait()
154
mathlock = getfenv().speed or 500
155
car.PrimaryPart.Velocity = Vector3.new(car.PrimaryPart.Velocity.X,-10,car.PrimaryPart.Velocity.Z)
156
car.PrimaryPart.Velocity =car.PrimaryPart.CFrame.LookVector*mathlock
157
car.PrimaryPart.Velocity = Vector3.new(car.PrimaryPart.Velocity.X,-10,car.PrimaryPart.Velocity.Z)
158
car:PivotTo(CFrame.new(car.PrimaryPart.Position,location))
159
car.PrimaryPart.Velocity = Vector3.new(car.PrimaryPart.Velocity.X,-10,car.PrimaryPart.Velocity.Z)
160
until game.Players.LocalPlayer:DistanceFromCharacter(location)< 50 or _G.testers == false or getfenv().reset == true
161
end
162
end
163
end)
164
165
example:AddToggle("Auto Farm[Normal]", function(state)
166
_G.testers2 = (state and true or false)
167
--experimental auto farm
168
while _G.testers2 do
169
task.wait()
170
local chr = game.Players.LocalPlayer.Character
171
local car = chr.Humanoid.SeatPart.Parent
172
car.PrimaryPart = car.Weight
173
car:PivotTo(CFrame.new(Vector3.new(-100.07780456542969, 15.585329055786133, -1618.3812255859375),Vector3.new(-32.031883239746094, 24.379409790039062, -1091.4705810546875)))
174
local mathlock = 350
175
176
local location = Vector3.new(-32.031883239746094, 24.379409790039062, -1091.4705810546875)
177
178
local location = Vector3.new(11.930032730102539, 24.91741180419922, -732.8578491210938)
179
repeat task.wait()
180
game:GetService("VirtualInputManager"):SendKeyEvent(true,"W",false,game)
181
car:PivotTo(CFrame.new(car.PrimaryPart.Position,location))
182
until game.Players.LocalPlayer:DistanceFromCharacter(location) < 50
183
local location = Vector3.new(79.72480773925781, 34.419010162353516, -59.68326950073242)
184
185
repeat task.wait()
186
game:GetService("VirtualInputManager"):SendKeyEvent(true,"W",false,game)
187
car:PivotTo(CFrame.new(car.PrimaryPart.Position,location))
188
until game.Players.LocalPlayer:DistanceFromCharacter(location) < 50
189
190
local location = Vector3.new(80.43889617919922, 34.45082092285156, 474.7792663574219)
191
repeat task.wait()
192
game:GetService("VirtualInputManager"):SendKeyEvent(true,"W",false,game)
193
car:PivotTo(CFrame.new(car.PrimaryPart.Position,location))
194
until game.Players.LocalPlayer:DistanceFromCharacter(location) < 50
195
196
local location = Vector3.new(53.504276275634766, 34.399757385253906, 1525.7982177734375)
197
repeat task.wait()
198
game:GetService("VirtualInputManager"):SendKeyEvent(true,"W",false,game)
199
car:PivotTo(CFrame.new(car.PrimaryPart.Position,location))
200
until game.Players.LocalPlayer:DistanceFromCharacter(location) < 50
201
202
local location = Vector3.new(-112.53301239013672, 28.197858810424805, 2313.957763671875)
203
repeat task.wait()
204
game:GetService("VirtualInputManager"):SendKeyEvent(true,"W",false,game)
205
car:PivotTo(CFrame.new(car.PrimaryPart.Position,location))
206
until game.Players.LocalPlayer:DistanceFromCharacter(location) < 50
207
208
local location = Vector3.new(-262.3653259277344, 13.525763511657715, 3027.66650390625)
209
repeat task.wait()
210
game:GetService("VirtualInputManager"):SendKeyEvent(true,"W",false,game)
211
car:PivotTo(CFrame.new(car.PrimaryPart.Position,location))
212
until game.Players.LocalPlayer:DistanceFromCharacter(location) < 50
213
214
local location = Vector3.new(-452.8047790527344, 13.539205551147461, 3937.51953125)
215
repeat task.wait()
216
game:GetService("VirtualInputManager"):SendKeyEvent(true,"W",false,game)
217
car:PivotTo(CFrame.new(car.PrimaryPart.Position,location))
218
until game.Players.LocalPlayer:DistanceFromCharacter(location) < 50
219
220
local location = Vector3.new(-671.54150390625, 13.537410736083984, 4993.31591796875)
221
repeat task.wait()
222
game:GetService("VirtualInputManager"):SendKeyEvent(true,"W",false,game)
223
car:PivotTo(CFrame.new(car.PrimaryPart.Position,location))
224
until game.Players.LocalPlayer:DistanceFromCharacter(location) < 50
225
end
226
end)
227
228
example:AddToggle("Auto Farm[Helicopter]", function(state)
229
getfenv().helifarm = (state and true or false)
230
if getfenv().helifarm then
231
local chr = game.Players.LocalPlayer.Character
232
local car = chr.Humanoid.SeatPart.Parent
233
car.PrimaryPart = car.Weight
234
car.PrimaryPart.Velocity =car.PrimaryPart.CFrame.UpVector*1000
235
wait(3)
236
end
237
while getfenv().helifarm do
238
wait()
239
local chr = game.Players.LocalPlayer.Character
240
local car = chr.Humanoid.SeatPart.Parent
241
car.PrimaryPart = car.Weight
242
local mathlock = getfenv().speed or 500
243
getfenv().location = Vector3.new(-13859.18359375, 1181.971435546875, -11547.607421875)
244
if getfenv().helifarm then
245
repeat task.wait()
246
mathlock = getfenv().speed or 500
247
car.PrimaryPart.Velocity =car.PrimaryPart.CFrame.LookVector*mathlock
248
car:PivotTo(CFrame.new(car.PrimaryPart.Position,location))
249
until game.Players.LocalPlayer:DistanceFromCharacter(location)< 50 or _G.testers == false or getfenv().reset == true
250
end
251
local mathlock = getfenv().speed or 500
252
getfenv().location = Vector3.new(-14023.6533203125, 1682.490966796875, 12927.0751953125)
253
if getfenv().helifarm then
254
repeat task.wait()
255
mathlock = getfenv().speed or 500
256
car.PrimaryPart.Velocity =car.PrimaryPart.CFrame.LookVector*mathlock
257
car:PivotTo(CFrame.new(car.PrimaryPart.Position,location))
258
until game.Players.LocalPlayer:DistanceFromCharacter(location)< 50 or _G.testers == false or getfenv().reset == true
259
end
260
local mathlock = getfenv().speed or 500
261
getfenv().location = Vector3.new(23936.044921875, 1675.274658203125, 4146.3720703125)
262
if getfenv().helifarm then
263
repeat task.wait()
264
mathlock = getfenv().speed or 500
265
car.PrimaryPart.Velocity =car.PrimaryPart.CFrame.LookVector*mathlock
266
car:PivotTo(CFrame.new(car.PrimaryPart.Position,location))
267
until game.Players.LocalPlayer:DistanceFromCharacter(location)< 50 or _G.testers == false or getfenv().reset == true
268
end
269
local mathlock = getfenv().speed or 500
270
getfenv().location = Vector3.new(23936.044921875, 1675.274658203125, 4146.3720703125)
271
if getfenv().helifarm then
272
repeat task.wait()
273
mathlock = getfenv().speed or 500
274
car.PrimaryPart.Velocity =car.PrimaryPart.CFrame.LookVector*mathlock
275
car:PivotTo(CFrame.new(car.PrimaryPart.Position,location))
276
until game.Players.LocalPlayer:DistanceFromCharacter(location)< 50 or _G.testers == false or getfenv().reset == true
277
end
278
end
279
end)
280
281
local misc = library:CreateWindow({
282
text = "Misc"
283
})
284
285
misc:AddButton("Remove Speed Traps", function()
286
workspace.Speedtraps:Destroy()
287
end)
288
289
misc:AddButton("Teleport to Respawn", function()
290
local player = Players.LocalPlayer
291
if player and player.Character then
292
player.Character:SetPrimaryPartCFrame(CFrame.new(-319.720795, 17.3981628, -1667.30908, 0.827741802, 4.10740526e-08, 0.561109185, -1.94369054e-08, 1, -4.45284343e-08, -0.561109185, 2.59518202e-08, 0.827741802))
293
end
294
end)
295
296
misc:AddToggle("AFK Mode", function(state)
297
if state then
298
activateAFK()
299
else
300
local GC = getconnections or get_signal_cons
301
if GC then
302
for _, connection in pairs(GC(Players.LocalPlayer.Idled)) do
303
if connection["Disable"] then
304
connection["Disable"](connection)
305
elseif connection["Disconnect"] then
306
connection["Disconnect"](connection)
307
end
308
end
309
end
310
end
311
end)