-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVehicleSimulator
More file actions
535 lines (503 loc) · 16.7 KB
/
Copy pathVehicleSimulator
File metadata and controls
535 lines (503 loc) · 16.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
local Config = {
WindowName = "V.G Hub",
Color = Color3.fromRGB(255,128,64),
Keybind = Enum.KeyCode.RightControl
}
repeat wait() until game:IsLoaded() wait()
game:GetService("Players").LocalPlayer.Idled:connect(function()
game:GetService("VirtualUser"):ClickButton2(Vector2.new())
end)
spawn(
function()
function findCar()
local v = workspace.Vehicles:getChildren()
for i = 1, #v do
if v[i]:findFirstChild("owner") then
if v[i].owner.Value == game.Players.LocalPlayer.Name then
myCar = v[i]
end
end
end
end
while not found do
wait()
v = Workspace.Vehicles:GetChildren()
for i = 1, #v do
if v[i]:FindFirstChild("owner") then
if v[i].owner.Value == game:GetService("Players").LocalPlayer.Name then
found = true
vehicle = v[i]
vehStats = myCar
elseif v[i + 1] == nil and not found then
end
end
end
vehicle.PrimaryPart = vehicle.Chassis.VehicleSeat
end
end
)
local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/1201for/V.G-Hub/main/im-retarded-3"))()
local Window = Library:CreateWindow(Config, game:GetService("CoreGui"))
local Tab1 = Window:CreateTab("Vehicle Simulator")
local Tab2 = Window:CreateTab("UI Settings")
local Section1 = Tab1:CreateSection("AutoFarms")
local Section2 = Tab1:CreateSection("Misc")
local Section3 = Tab2:CreateSection("Menu")
local Section4 = Tab2:CreateSection("Background")
local Toggle1 = Section1:CreateToggle("AutoFarm", nil, function(State)
yes = State
while yes do
wait(2)
game:GetService("ReplicatedStorage"):FindFirstChild("Game Modes V2").Shared.Remotes.RemoteFunctions.join_mode:InvokeServer(
14
)
wait(10)
game.workspace.Gravity = 0
vehicle:SetPrimaryPartCFrame(CFrame.new(3797.04126, 218.264709, 1279.51123))
wait(1)
vehicle:SetPrimaryPartCFrame(CFrame.new(741.995667, 218.39447, 1268.79517))
wait(1)
vehicle:SetPrimaryPartCFrame(CFrame.new(-1845.48865, 215.05127, 817.057678))
wait(1)
vehicle:SetPrimaryPartCFrame(CFrame.new(-1770.52124, 216.340317, -245.751541))
wait(1)
vehicle:SetPrimaryPartCFrame(CFrame.new(-1808.76917, 218.795319, -1856.72449))
wait(1)
vehicle:SetPrimaryPartCFrame(CFrame.new(-1432.80762, 251.541611, -3359.58862))
wait(1)
vehicle:SetPrimaryPartCFrame(CFrame.new(-970.624268, 278.644684, -4248.86475))
wait(1)
vehicle:SetPrimaryPartCFrame(CFrame.new(547.690125, 218.290939, -5550.86621))
wait(1)
vehicle:SetPrimaryPartCFrame(CFrame.new(4722.86865, 218.292831, -5810.66064))
wait(1)
vehicle:SetPrimaryPartCFrame(CFrame.new(5768.37891, 216.670074, -5430.50195))
wait(1)
vehicle:SetPrimaryPartCFrame(CFrame.new(5916.41113, 216.090073, -4740.63135))
wait(1)
vehicle:SetPrimaryPartCFrame(CFrame.new(6094.18945, 216.095245, -3406.89966))
wait(1)
vehicle:SetPrimaryPartCFrame(CFrame.new(6032.45703, 218.26474, -2197.7395))
wait(1)
vehicle:SetPrimaryPartCFrame(CFrame.new(6215.73682, 218.289642, -95.2416306))
wait(1)
vehicle:SetPrimaryPartCFrame(CFrame.new(5445.78418, 218.293152, 1252.74744))
wait(1)
vehicle:SetPrimaryPartCFrame(CFrame.new(3797.04126, 218.264709, 1279.51123))
wait(1)
game.workspace.Gravity = 196.2
wait(2)
local part = game:GetService("Players").LocalPlayer.PlayerGui:FindFirstChild("Endrace_results")
if part then
part:remove()
end
end
end)
local Toggle1 = Section1:CreateToggle("MilesFarm", nil, function(State)
bitch1 = State
findCar()
myCar.Handling.MaxSpeed.Value = 1000
myCar.Handling.Torque.Value = 50000
myCar.Handling.SteeringRadiusConstant.Value = 15000
myCar.Handling.FrictionRoad.Value = 250
myCar.Handling.Nitro.NitroSpeed.Value = 5000
myCar.Handling.Nitro.NitroForce.Value = 10000
myCar.Handling.TurboJump.TurboJumpHeight.Value = 250
spawn(
function()
while bitch1 do
wait()
game:GetService("VirtualInputManager"):SendKeyEvent(true, "W", false, uwu)
end
end
)
while bitch1 do
game.workspace.Gravity = 500
vehicle:SetPrimaryPartCFrame(CFrame.new(3106.53198, 235.20755, -335.314545))
wait(1)
end
if not bitch1 then
game.workspace.Gravity = 196.2
end
end)
local Toggle1 = Section1:CreateToggle("AutoFarm Crates", nil, function(State)
jjsploit = State
game:GetService("RunService").Stepped:connect(
function()
if jjsploit then
game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
end
end
)
game:GetService "Players".LocalPlayer.Character:FindFirstChildOfClass "Humanoid":ChangeState("Jumping")
while wait() and jjsploit do
wait(0.5)
local v = workspace:GetChildren()
for i = 1, #v do
if v[i].ClassName == "Model" then
local v2 = v[i]:GetChildren()
for i = 1, #v2 do
if v2[i].ClassName == "Model" then
local v3 = v2[i]:GetChildren()
for i = 1, #v3 do
if v3[i].ClassName == "MeshPart" then
if v3[i]:FindFirstChild("Smoke") then
game.Players.LocalPlayer.Character:MoveTo(v3[i].CFrame.p)
wait()
game.Players.LocalPlayer.Character.Humanoid:MoveTo(v3[i].CFrame.p)
wait(4)
end
end
end
end
end
end
end
end
end)
local TextBox1 = Section1:CreateTextBox("MaxSpeed", "Only numbers", true, function(Value)
findCar()
myCar.Handling.MaxSpeed.Value = Value
end)
local TextBox1 = Section1:CreateTextBox("Torque", "Only numbers", true, function(Value)
findCar()
myCar.Handling.Torque.Value = Value
end)
local TextBox1 = Section1:CreateTextBox("SteeringRadiusConstant", "Only numbers", true, function(Value)
findCar()
myCar.Handling.SteeringRadiusConstant.Value = Value
end)
local TextBox1 = Section1:CreateTextBox("FrictionRoad", "Only numbers", true, function(Value)
findCar()
myCar.Handling.FrictionRoad.Value = Value
end)
local TextBox1 = Section1:CreateTextBox("NitroSpeed", "Only numbers", true, function(Value)
findCar()
myCar.Handling.Nitro.NitroSpeed.Value = Value
end)
local TextBox1 = Section1:CreateTextBox("NitroForce", "Only numbers", true, function(Value)
findCar()
myCar.Handling.Nitro.NitroForce.Value = Value
end)
local TextBox1 = Section1:CreateTextBox("TurboJumpHeight","Only numbers", true, function(Value)
findCar()
myCar.Handling.TurboJump.TurboJumpHeight.Value = Value
end)
local TextBox1 = Section2:CreateTextBox("WalkSpeed", "Only numbers", true, function(Value)
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = Value
end)
local TextBox1 = Section2:CreateTextBox("JumpPower", "Only numbers", true, function(Value)
game.Players.LocalPlayer.Character.Humanoid.JumpPower = Value
end)
local Toggle1 = Section2:CreateToggle("Infinite Jump", nil, function(State)
Infinite = State
game:GetService("UserInputService").JumpRequest:connect(function()
if Infinite then
game:GetService"Players".LocalPlayer.Character:FindFirstChildOfClass'Humanoid':ChangeState("Jumping")
end
end) end)
local Toggle1 = Section2:CreateToggle("G Noclip", nil, function(State)
sex = State
noclip = false
game:GetService('RunService').Stepped:connect(function()
if noclip then
game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
end
end)
plr = game.Players.LocalPlayer
mouse = plr:GetMouse()
mouse.KeyDown:connect(function(key)
if key == "g" then
if sex then
noclip = not noclip
game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
end end
end) end)
local Toggle1 = Section2:CreateToggle("B Fly", nil, function(State)
sex2 = State
local Max = 0
local Players = game.Players
local LP = Players.LocalPlayer
local Mouse = LP:GetMouse()
Mouse.KeyDown:connect(function(k)
if k:lower() == 'b' then
Max = Max + 1
getgenv().Fly = false
if sex2 then
local T = LP.Character.UpperTorso
local S = {
F = 0,
B = 0,
L = 0,
R = 0
}
local S2 = {
F = 0,
B = 0,
L = 0,
R = 0
}
local SPEED = 5
local function FLY()
getgenv().Fly = true
local BodyGyro = Instance.new('BodyGyro', T)
local BodyVelocity = Instance.new('BodyVelocity', T)
BodyGyro.P = 9e4
BodyGyro.maxTorque = Vector3.new(9e9, 9e9, 9e9)
BodyGyro.cframe = T.CFrame
BodyVelocity.velocity = Vector3.new(0, 0.1, 0)
BodyVelocity.maxForce = Vector3.new(9e9, 9e9, 9e9)
spawn(function()
repeat
wait()
LP.Character.Humanoid.PlatformStand = false
if S.L + S.R ~= 0 or S.F + S.B ~= 0 then
SPEED = 200
elseif not (S.L + S.R ~= 0 or S.F + S.B ~= 0) and SPEED ~= 0 then
SPEED = 0
end
if (S.L + S.R) ~= 0 or (S.F + S.B) ~= 0 then
BodyVelocity.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (S.F + S.B)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(S.L + S.R, (S.F + S.B) * 0.2, 0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p)) * SPEED
S2 = {
F = S.F,
B = S.B,
L = S.L,
R = S.R
}
elseif (S.L + S.R) == 0 and (S.F + S.B) == 0 and SPEED ~= 0 then
BodyVelocity.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (S2.F + S2.B)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(S2.L + S2.R, (S2.F + S2.B) * 0.2, 0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p)) * SPEED
else
BodyVelocity.velocity = Vector3.new(0, 0.1, 0)
end
BodyGyro.cframe = game.Workspace.CurrentCamera.CoordinateFrame
until not getgenv().Fly
S = {
F = 0,
B = 0,
L = 0,
R = 0
}
S2 = {
F = 0,
B = 0,
L = 0,
R = 0
}
SPEED = 0
BodyGyro:destroy()
BodyVelocity:destroy()
LP.Character.Humanoid.PlatformStand = false
end)
end
Mouse.KeyDown:connect(function(k)
if k:lower() == 'w' then
S.F = 1
elseif k:lower() == 's' then
S.B = -1
elseif k:lower() == 'a' then
S.L = -1
elseif k:lower() == 'd' then
S.R = 1
end
end)
Mouse.KeyUp:connect(function(k)
if k:lower() == 'w' then
S.F = 0
elseif k:lower() == 's' then
S.B = 0
elseif k:lower() == 'a' then
S.L = 0
elseif k:lower() == 'd' then
S.R = 0
end
end)
FLY()
if Max == 2 then
getgenv().Fly = false
Max = 0
end
end
end
end)
end)
local Button1 = Section2:CreateButton("Anti Lag", function()
for _,v in pairs(game:GetService("Workspace"):GetDescendants()) do
if v:IsA("BasePart") and not v.Parent:FindFirstChild("Humanoid") then --- i stole this from the actual game LOL >-<
v.Material = Enum.Material.SmoothPlastic;
if v:IsA("Texture") then
v:Destroy();
end end;
end;
end)
local Button1 = Section2:CreateButton("Teleport to RandomPlayer", function()
local randomPlayer = game.Players:GetPlayers()
[math.random(1,#game.Players:GetPlayers())]
game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(randomPlayer.Character.Head.Position.X, randomPlayer.Character.Head.Position.Y, randomPlayer.Character.Head.Position.Z)) end)
local Button1 = Section2:CreateButton("Lag Switch F3", function()
local a = false
local b = settings()
game:service'UserInputService'.InputEnded:connect(function(i)
if i.KeyCode == Enum.KeyCode.F3 then
a = not a
b.Network.IncomingReplicationLag = a and 10 or 0
end
end) end)
local Button1 = Section2:CreateButton("ServerHop", function()
local PlaceID = game.PlaceId
local AllIDs = {}
local foundAnything = ""
local actualHour = os.date("!*t").hour
local Deleted = false
local File = pcall(function()
AllIDs = game:GetService('HttpService'):JSONDecode(readfile("NotSameServers.json"))
end)
if not File then
table.insert(AllIDs, actualHour)
writefile("NotSameServers.json", game:GetService('HttpService'):JSONEncode(AllIDs))
end
function TPReturner()
local Site;
if foundAnything == "" then
Site = game.HttpService:JSONDecode(game:HttpGet('https://games.roblox.com/v1/games/' .. PlaceID .. '/servers/Public?sortOrder=Asc&limit=100'))
else
Site = game.HttpService:JSONDecode(game:HttpGet('https://games.roblox.com/v1/games/' .. PlaceID .. '/servers/Public?sortOrder=Asc&limit=100&cursor=' .. foundAnything))
end
local ID = ""
if Site.nextPageCursor and Site.nextPageCursor ~= "null" and Site.nextPageCursor ~= nil then
foundAnything = Site.nextPageCursor
end
local num = 0;
for i,v in pairs(Site.data) do
local Possible = true
ID = tostring(v.id)
if tonumber(v.maxPlayers) > tonumber(v.playing) then
for _,Existing in pairs(AllIDs) do
if num ~= 0 then
if ID == tostring(Existing) then
Possible = false
end
else
if tonumber(actualHour) ~= tonumber(Existing) then
local delFile = pcall(function()
delfile("NotSameServers.json")
AllIDs = {}
table.insert(AllIDs, actualHour)
end)
end
end
num = num + 1
end
if Possible == true then
table.insert(AllIDs, ID)
wait()
pcall(function()
writefile("NotSameServers.json", game:GetService('HttpService'):JSONEncode(AllIDs))
wait()
game:GetService("TeleportService"):TeleportToPlaceInstance(PlaceID, ID, game.Players.LocalPlayer)
end)
wait(4)
end
end
end
end
function Teleport()
while wait() do
pcall(function()
TPReturner()
if foundAnything ~= "" then
TPReturner()
end
end)
end
end
-- If you'd like to use a script before server hopping (Like a Automatic Chest collector you can put the Teleport() after it collected everything.
Teleport()
end)
local Button1 = Section2:CreateButton("Rejoin", function()
game:GetService("TeleportService"):Teleport(game.PlaceId, game:GetService("Players").LocalPlayer) end)
local Toggle3 = Section3:CreateToggle("UI Toggle", nil, function(State)
Window:Toggle(State)
end)
Toggle3:CreateKeybind(tostring(Config.Keybind):gsub("Enum.KeyCode.", ""), function(Key)
Config.Keybind = Enum.KeyCode[Key]
end)
Toggle3:SetState(true)
Section3:CreateLabel("Credits DekuDimz#7960")
Section3:CreateLabel("Credits AlexR32#3232 Ui")
Section3:CreateLabel("Credits The3Bakers")
local Colorpicker3 = Section3:CreateColorpicker("UI Color", function(Color)
Window:ChangeColor(Color)
end)
Colorpicker3:UpdateColor(Config.Color)
-- credits to jan for patterns
local Dropdown3 = Section4:CreateDropdown("Image")
local Option7 = Dropdown3:AddOption("Default", function(String)
Window:SetBackground("2151741365")
end)
local Option8 = Dropdown3:AddOption("Hearts", function(String)
Window:SetBackground("6073763717")
end)
local Option9 = Dropdown3:AddOption("Abstract", function(String)
Window:SetBackground("6073743871")
end)
local Option10 = Dropdown3:AddOption("Hexagon", function(String)
Window:SetBackground("6073628839")
end)
local Option11 = Dropdown3:AddOption("Circles", function(String)
Window:SetBackground("6071579801")
end)
local Option12 = Dropdown3:AddOption("Lace With Flowers", function(String)
Window:SetBackground("6071575925")
end)
local Option13 = Dropdown3:AddOption("Floral", function(String)
Window:SetBackground("5553946656")
end)
Option7:SetOption()
local Colorpicker4 = Section4:CreateColorpicker("Color", function(Color)
Window:SetBackgroundColor(Color)
end)
Colorpicker4:UpdateColor(Color3.new(1,1,1))
local Slider3 = Section4:CreateSlider("Transparency",0,1,nil,false, function(Value)
Window:SetBackgroundTransparency(Value)
end)
Slider3:SetValue(0)
local Slider4 = Section4:CreateSlider("Tile Scale",0,1,nil,false, function(Value)
Window:SetTileScale(Value)
end)
Slider4:SetValue(0.5)
game.StarterGui:SetCore("SendNotification", {
Title = "Warning";
Text = "RightControl to toggle";
})
game.StarterGui:SetCore("SendNotification", {
Title = "Credis";
Text = "CharWar Serverhops Toxic Mods screen thingy And Kiriot22 esp,IY for fly script inspiration";
})
wait(5)
local function copyDiscord()
setclipboard("https://discord.gg/RHemSXfPpw")
end
local StarterGui = game:GetService("StarterGui")
local bindable = Instance.new("BindableFunction")
local function sendNotification(titleText, descText)
StarterGui:SetCore("SendNotification",{
Title = titleText;
Text = descText;
Icon = "";
Duration = 5;
})
end
function bindable.OnInvoke(response)
if response == "Yes" then
copyDiscord()
sendNotification("Discord Copied")
end
end
StarterGui:SetCore("SendNotification", {
Title = "V.G Hub Discord",
Text = "Copy to clipboard?",
Duration = 5,
Callback = bindable,
Button1 = "Yes",
Button2 = "No"
})