eruaaaaaaa

Untitled

Jun 20th, 2025 (edited)
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.17 KB | None | 0 0
  1. --!nolint
  2. --!nocheck
  3. --!native
  4. --!optimize 2
  5. local a
  6. a = {
  7. cache = {},
  8. load = function(b)
  9. if not a.cache[b] then
  10. a.cache[b] = { c = a[b]() }
  11. end
  12. return a.cache[b].c
  13. end,
  14. }
  15. do
  16. function a.a()
  17. local b = {}
  18. b.__index = b
  19. function b.new()
  20. local c = {}
  21. setmetatable(c, b)
  22. c.States = {}
  23. c.CurrentState = nil
  24. c.StateCounter = 0
  25. return c
  26. end
  27. function b.DefineStates(c, d)
  28. for e, f in pairs(d) do
  29. c.States[f.Name] = f
  30. end
  31. c.CurrentState = d[1].Name
  32. end
  33. function b.GoTo(c, d)
  34. local e = c.CurrentState
  35. local f, g = c.States[e], c.States[d]
  36. if not g then
  37. return
  38. end
  39. c.CurrentState = d
  40. local h = true
  41. if g.Enter then
  42. local i = c.StateCounter
  43. c.StateCounter += 1
  44. task.delay(120, function()
  45. if c.StateCounter == i then
  46. c.Timeout()
  47. end
  48. end)
  49. warn(`[StateMachine]: Entering: {g.Name}`)
  50. h = g.Enter(e)
  51. end
  52. if h then
  53. if f.Completed then
  54. f.Completed()
  55. end
  56. else
  57. c.CurrentState = e
  58. end
  59. end
  60. return b
  61. end
  62. function a.b()
  63. local b = game:GetService("ReplicatedStorage")
  64. local c, d = (b:WaitForChild("Remotes")), b:WaitForChild("Modules")
  65. local e = d:WaitForChild("Core")
  66. local f, g = require((e:WaitForChild("UI"))), {}
  67. function g.Send(...)
  68. g.CounterTable.event += 1
  69. local h = (c:WaitForChild("Send"))
  70. h:FireServer(g.CounterTable.event, ...)
  71. end
  72. function g.UIGet(...)
  73. return f.get(...)
  74. end
  75. function g.Get(...)
  76. g.CounterTable.func += 1
  77. local h = (c:WaitForChild("Get"))
  78. h:InvokeServer(g.CounterTable.func, ...)
  79. end
  80. function g.FetchPing()
  81. return math.max(game:GetService("Stats").Network.ServerStatsItem["Data Ping"]:GetValue() / 1000, 0.2)
  82. end
  83. if not g.CounterTable then
  84. for h, i in pairs(getgc(true)) do
  85. if typeof(i) == "table" then
  86. if rawget(i, "event") and rawget(i, "func") then
  87. g.CounterTable = i
  88. break
  89. end
  90. end
  91. end
  92. end
  93. return g
  94. end
  95. function a.c()
  96. local b, c, d, e, f = game:GetService("PathfindingService"), game:GetService("RunService"), a.load("b"), {}, {}
  97. f.__index = f
  98. function f.new(g, h)
  99. if e[g] then
  100. return e[g]
  101. end
  102. local i = {}
  103. setmetatable(i, f)
  104. i.Character = h
  105. i.Model = g
  106. i.PathInformation = {
  107. LastCalibrated = 0,
  108. BeenOnWaypoint = 0,
  109. WaypointParts = {},
  110. WaypointPositions = {},
  111. CurrentWaypoint = nil,
  112. Finished = Instance.new("BindableEvent"),
  113. }
  114. e[g] = i
  115. i:Init()
  116. return i
  117. end
  118. function f.VisualizeWaypoint(g, h, i)
  119. local j = Instance.new("Part", workspace)
  120. do
  121. j.Size = Vector3.new(0.3, 0.3, 0.3)
  122. j.Position = i
  123. j.Anchored = true
  124. j.CanCollide = false
  125. j.Material = Enum.Material.Neon
  126. j.Color = h.Action == Enum.PathWaypointAction.Jump and Color3.new(1) or Color3.new(0, 1)
  127. end
  128. j.Name = "lol"
  129. table.insert(g.PathInformation.WaypointParts, j)
  130. end
  131. function f.DriveToPosition(g, h, i)
  132. local j, k = g.Model:GetBoundingBox()
  133. local l =
  134. b:CreatePath({ AgentHeight = math.ceil(k.Y) - 1, AgentRadius = math.ceil(k.X) - 1, AgentCanJump = true })
  135. if g.Model.PrimaryPart then
  136. l:ComputeAsync(g.Model.PrimaryPart.Position, h)
  137. if l.Status == Enum.PathStatus.Success then
  138. g:CleanupOldPath()
  139. g.PathInformation.Initialized = false
  140. for m, n in pairs(l:GetWaypoints()) do
  141. local o = n.Position
  142. if n.Action == Enum.PathWaypointAction.Jump then
  143. o = o + Vector3.new(0, k.Y + 6, 0)
  144. end
  145. g:VisualizeWaypoint(n, o)
  146. table.insert(g.PathInformation.WaypointPositions, o)
  147. end
  148. g.PathInformation.Blocked = l.Blocked:Connect(function() end)
  149. g.PathInformation.FinalDestination = h
  150. g.PathInformation.Speed = i
  151. g.PathInformation.CurrentWaypoint = 0
  152. g.PathInformation.BeenOnWaypoint = tick()
  153. g.PathInformation.Initialized = true
  154. return true
  155. else
  156. warn(`There was an error creating a path: {l.Status}`)
  157. if g.Model.PrimaryPart then
  158. g.Model.PrimaryPart.CFrame =
  159. CFrame.new(g.Model.PrimaryPart.Position + Vector3.new(0.1, 0.1, 0.1))
  160. end
  161. return false
  162. end
  163. end
  164. return false
  165. end
  166. function f.Destroy(g)
  167. local h = g.Model.PrimaryPart and (g.Model.PrimaryPart:FindFirstChild("BodyVelocity"))
  168. if h then
  169. h:Destroy()
  170. end
  171. g:CleanupOldPath()
  172. g.RunConnection:Disconnect()
  173. end
  174. function f.GetPrompt(g)
  175. local h = g.Model.PrimaryPart and (g.Model.PrimaryPart:FindFirstChild("DrivePromptAttachment"))
  176. local i = h and (h:FindFirstChild("DrivePrompt"))
  177. return i
  178. end
  179. function f.Enter(g)
  180. if g.Character and g.Character.PrimaryPart then
  181. g.Character.PrimaryPart.Anchored = false
  182. end
  183. local h = g.Model.PrimaryPart and (g.Model.PrimaryPart:FindFirstChild("DrivePromptAttachment"))
  184. local i = h and (h:FindFirstChild("DrivePrompt"))
  185. if i then
  186. fireproximityprompt(i)
  187. d.Send("lock_vehicle", g.Model, true)
  188. end
  189. end
  190. function f.Sitting(g)
  191. local h = g:GetPrompt()
  192. if h then
  193. return not h.Enabled
  194. end
  195. return false
  196. end
  197. function f.CleanupOldPath(g)
  198. table.clear(g.PathInformation.WaypointPositions)
  199. if g.PathInformation.Blocked then
  200. g.PathInformation.Blocked:Disconnect()
  201. end
  202. for h, i in pairs(workspace:GetChildren()) do
  203. if i.Name == "lol" then
  204. i:Destroy()
  205. end
  206. end
  207. table.clear(g.PathInformation.WaypointParts)
  208. end
  209. function f.StopDrive(g)
  210. g.PathInformation.ForceStop = true
  211. g:CleanupOldPath()
  212. end
  213. function f.Exit(g)
  214. if g.PathInformation.Initialized then
  215. g:StopDrive()
  216. end
  217. d.Get("exit_seat")
  218. end
  219. function f.Init(g)
  220. g.RunConnection = c.Heartbeat:Connect(function()
  221. if g.PathInformation.Initialized and g.Model.PrimaryPart then
  222. local h = (g.Model.PrimaryPart:FindFirstChild("BodyVelocity"))
  223. if
  224. g.PathInformation.CurrentWaypoint >= #g.PathInformation.WaypointPositions
  225. or g.PathInformation.ForceStop
  226. then
  227. g.PathInformation.Initialized = false
  228. g.Driving = false
  229. g.PathInformation.ForceStop = false
  230. if h then
  231. h.Velocity = Vector3.zero
  232. end
  233. g.PathInformation.Finished:Fire()
  234. return
  235. end
  236. local i = g.PathInformation.WaypointPositions[g.PathInformation.CurrentWaypoint + 1]
  237. local j, k = (i - g.Model.PrimaryPart.Position), g.Model.PrimaryPart.Size.Magnitude / 2
  238. local l = k + 2
  239. if (i - g.Model.PrimaryPart.Position).Magnitude < l then
  240. g.PathInformation.CurrentWaypoint += 1
  241. g.PathInformation.BeenOnWaypoint = tick()
  242. return
  243. end
  244. local m = Vector3.new(j.X, 0, j.Z)
  245. if (tick() - g.PathInformation.BeenOnWaypoint) > 0.5 then
  246. g:DriveToPosition(g.PathInformation.FinalDestination, g.PathInformation.Speed)
  247. return
  248. end
  249. if not h then
  250. h = Instance.new("BodyVelocity")
  251. h.MaxForce = Vector3.new(1e9, 1e9, 1e9)
  252. h.P = 100000
  253. h.Parent = g.Model.PrimaryPart
  254. end
  255. if m.Magnitude > 0 then
  256. m = m.Unit
  257. g.Model.PrimaryPart.CFrame =
  258. CFrame.lookAt(g.Model.PrimaryPart.Position, g.Model.PrimaryPart.Position + m)
  259. end
  260. h.Velocity = j.Unit * g.PathInformation.Speed
  261. end
  262. end)
  263. end
  264. return f
  265. end
  266. function a.d()
  267. local b, c, d, e, f =
  268. {
  269. TIME_VARIANCE = 0.07,
  270. COMPARISON_CHECKS = 1,
  271. JUMP_WHEN_STUCK = true,
  272. }, game:GetService("PathfindingService"), game:GetService("Players"), function(b, c)
  273. b(((b == error and "SimplePath Error: ") or "SimplePath: ") .. c)
  274. end, { StatusType = { Idle = "Idle", Active = "Active" }, ErrorType = { LimitReached = "LimitReached", TargetUnreachable = "TargetUnreachable", ComputationError = "ComputationError", AgentStuck = "AgentStuck" } }
  275. f.__index = function(g, h)
  276. if h == "Stopped" and not g._humanoid then
  277. e(error, "Attempt to use Path.Stopped on a non-humanoid.")
  278. end
  279. return (g._events[h] and g._events[h].Event)
  280. or (h == "LastError" and g._lastError)
  281. or (h == "Status" and g._status)
  282. or f[h]
  283. end
  284. local g = Instance.new("Part")
  285. g.Size = Vector3.new(0.3, 0.3, 0.3)
  286. g.Anchored = true
  287. g.CanCollide = false
  288. g.Material = Enum.Material.Neon
  289. g.Shape = Enum.PartType.Ball
  290. local h, i, j, k, l =
  291. function(h, i)
  292. h._lastError = i
  293. h._events.Error:Fire(i)
  294. end, function(h)
  295. local i = {}
  296. for j, k in ipairs(h) do
  297. local l = g:Clone()
  298. l.Position = k.Position
  299. l.Parent = workspace
  300. l.Color = (k == h[#h] and Color3.fromRGB(0, 255, 0)) or (k.Action == Enum.PathWaypointAction.Jump and Color3.fromRGB(255, 0, 0)) or Color3.fromRGB(255, 139, 0)
  301. table.insert(i, l)
  302. end
  303. return i
  304. end, function(h)
  305. if h then
  306. for i, j in ipairs(h) do
  307. j:Destroy()
  308. end
  309. end
  310. return
  311. end, function(h)
  312. for i = 2, #h._waypoints do
  313. if (h._waypoints[i].Position - h._waypoints[i - 1].Position).Magnitude > 0.1 then
  314. return i
  315. end
  316. end
  317. return 2
  318. end, function(h)
  319. pcall(function()
  320. if h._humanoid:GetState() ~= Enum.HumanoidStateType.Jumping and h._humanoid:GetState() ~= Enum.HumanoidStateType.Freefall then
  321. h._humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
  322. end
  323. end)
  324. end
  325. local m, n, o =
  326. function(m)
  327. if m._waypoints[m._currentWaypoint].Action == Enum.PathWaypointAction.Jump then
  328. l(m)
  329. end
  330. m._humanoid:MoveTo(m._waypoints[m._currentWaypoint].Position)
  331. end, function(m)
  332. m._moveConnection:Disconnect()
  333. m._moveConnection = nil
  334. end, function(m)
  335. local n, o = m._waypoints[m._currentWaypoint - 1], m._waypoints[m._currentWaypoint]
  336. m._events.WaypointReached:Fire(m._agent, n, o)
  337. end
  338. local p, q =
  339. function(p, q)
  340. if not getmetatable(p) then
  341. return
  342. end
  343. if not p._humanoid then
  344. if q and p._currentWaypoint + 1 <= #p._waypoints then
  345. o(p)
  346. p._currentWaypoint += 1
  347. elseif q then
  348. p._visualWaypoints = j(p._visualWaypoints)
  349. p._target = nil
  350. p._events.Reached:Fire(p._agent, p._waypoints[p._currentWaypoint])
  351. else
  352. p._visualWaypoints = j(p._visualWaypoints)
  353. p._target = nil
  354. h(p, p.ErrorType.TargetUnreachable)
  355. end
  356. return
  357. end
  358. if q and p._currentWaypoint + 1 <= #p._waypoints then
  359. if p._currentWaypoint + 1 < #p._waypoints then
  360. o(p)
  361. end
  362. p._currentWaypoint += 1
  363. m(p)
  364. elseif q then
  365. n(p)
  366. p._status = f.StatusType.Idle
  367. p._visualWaypoints = j(p._visualWaypoints)
  368. p._events.Reached:Fire(p._agent, p._waypoints[p._currentWaypoint])
  369. else
  370. n(p)
  371. p._status = f.StatusType.Idle
  372. p._visualWaypoints = j(p._visualWaypoints)
  373. h(p, p.ErrorType.TargetUnreachable)
  374. end
  375. end, function(p)
  376. if p._currentWaypoint == #p._waypoints then
  377. return
  378. end
  379. p._position._count = ((p._agent.PrimaryPart.Position - p._position._last).Magnitude <= 0.07 and (p._position._count + 1)) or 0
  380. p._position._last = p._agent.PrimaryPart.Position
  381. if p._position._count >= p._settings.COMPARISON_CHECKS then
  382. if p._settings.JUMP_WHEN_STUCK then
  383. l(p)
  384. end
  385. h(p, p.ErrorType.AgentStuck)
  386. end
  387. end
  388. function f.GetNearestCharacter(r)
  389. local s, t = math.huge
  390. for u, v in ipairs(d:GetPlayers()) do
  391. if v.Character and (v.Character.PrimaryPart.Position - r).Magnitude < s then
  392. t, s = v.Character, (v.Character.PrimaryPart.Position - r).Magnitude
  393. end
  394. end
  395. return t
  396. end
  397. function f.new(r, s, t)
  398. if not (r and r:IsA("Model") and r.PrimaryPart) then
  399. e(error, [[Pathfinding agent must be a valid Model Instance with a set PrimaryPart.]])
  400. end
  401. local u = setmetatable(
  402. {
  403. _settings = t or b,
  404. _events = {
  405. Reached = Instance.new("BindableEvent"),
  406. WaypointReached = Instance.new("BindableEvent"),
  407. Blocked = Instance.new("BindableEvent"),
  408. Error = Instance.new("BindableEvent"),
  409. Stopped = Instance.new("BindableEvent"),
  410. },
  411. _agent = r,
  412. _humanoid = r:FindFirstChildOfClass("Humanoid"),
  413. _path = c:CreatePath(s),
  414. _status = "Idle",
  415. _t = 0,
  416. _position = { _last = Vector3.new(), _count = 0 },
  417. },
  418. f
  419. )
  420. for v, w in pairs(b) do
  421. u._settings[v] = u._settings[v] == nil and w or u._settings[v]
  422. end
  423. u._path.Blocked:Connect(function(...)
  424. if
  425. u._currentWaypoint
  426. and (u._currentWaypoint <= ... and u._currentWaypoint + 1 >= ...)
  427. and u._humanoid
  428. then
  429. l(u)
  430. u._events.Blocked:Fire(u._agent, u._waypoints[...])
  431. end
  432. end)
  433. return u
  434. end
  435. function f:Destroy()
  436. for r, s in ipairs(self._events) do
  437. s:Destroy()
  438. end
  439. self._events = nil
  440. if rawget(self, "_visualWaypoints") then
  441. self._visualWaypoints = j(self._visualWaypoints)
  442. end
  443. self._path:Destroy()
  444. setmetatable(self, nil)
  445. for r, s in pairs(self) do
  446. self[r] = nil
  447. end
  448. end
  449. function f:Stop()
  450. if not self._humanoid then
  451. e(error, "Attempt to call Path:Stop() on a non-humanoid.")
  452. return
  453. end
  454. if self._status == f.StatusType.Idle then
  455. e(function(r)
  456. warn(debug.traceback(r))
  457. end, "Attempt to run Path:Stop() in idle state")
  458. return
  459. end
  460. n(self)
  461. self._status = f.StatusType.Idle
  462. self._visualWaypoints = j(self._visualWaypoints)
  463. self._events.Stopped:Fire(self._model)
  464. end
  465. function f:Run(r)
  466. if self._path then
  467. if not r and not self._humanoid and self._target then
  468. p(self, true)
  469. return
  470. end
  471. if not (r and (typeof(r) == "Vector3" or r:IsA("BasePart"))) then
  472. e(error, "Pathfinding target must be a valid Vector3 or BasePart.")
  473. end
  474. if os.clock() - self._t <= self._settings.TIME_VARIANCE and self._humanoid then
  475. task.wait(os.clock() - self._t)
  476. h(self, self.ErrorType.LimitReached)
  477. return false
  478. elseif self._humanoid then
  479. self._t = os.clock()
  480. end
  481. local s, t = pcall(function()
  482. self._path:ComputeAsync(
  483. self._agent.PrimaryPart.Position,
  484. (typeof(r) == "Vector3" and r) or r.Position
  485. )
  486. end)
  487. if
  488. not s
  489. or self._path.Status == Enum.PathStatus.NoPath
  490. or #self._path:GetWaypoints() < 2
  491. or (self._humanoid and self._humanoid:GetState() == Enum.HumanoidStateType.Freefall)
  492. then
  493. self._visualWaypoints = j(self._visualWaypoints)
  494. task.wait()
  495. h(self, self.ErrorType.ComputationError)
  496. return false
  497. end
  498. self._status = (self._humanoid and f.StatusType.Active) or f.StatusType.Idle
  499. self._target = r
  500. pcall(function()
  501. self._agent.PrimaryPart:SetNetworkOwner(nil)
  502. end)
  503. self._waypoints = self._path:GetWaypoints()
  504. self._currentWaypoint = 2
  505. if self._humanoid then
  506. q(self)
  507. end
  508. j(self._visualWaypoints)
  509. self._visualWaypoints = (self.Visualize and i(self._waypoints))
  510. self._moveConnection = self._humanoid
  511. and (
  512. self._moveConnection or self._humanoid.MoveToFinished:Connect(function(...)
  513. p(self, ...)
  514. end)
  515. )
  516. if self._humanoid then
  517. self._humanoid:MoveTo(self._waypoints[self._currentWaypoint].Position)
  518. elseif #self._waypoints == 2 then
  519. self._target = nil
  520. self._visualWaypoints = j(self._visualWaypoints)
  521. self._events.Reached:Fire(self._agent, self._waypoints[2])
  522. else
  523. self._currentWaypoint = k(self)
  524. p(self, true)
  525. end
  526. end
  527. return true
  528. end
  529. return f
  530. end
  531. function a.e()
  532. local b, c = game:GetService("ContextActionService"), {}
  533. function c:Disable()
  534. b:BindAction("StopMovement", function()
  535. return Enum.ContextActionResult.Sink
  536. end, false, table.unpack(Enum.PlayerActions:GetEnumItems()))
  537. end
  538. function c:Enable()
  539. b:UnbindAction("StopMovement")
  540. end
  541. return c
  542. end
  543. function a.f()
  544. local b, c, d = game:GetService("Players"), a.load("b"), {}
  545. function d:GetGui()
  546. local e = b.LocalPlayer
  547. local f = e:WaitForChild("PlayerGui")
  548. local g = (f:WaitForChild("Items"))
  549. return g
  550. end
  551. function d:GetInventoryItems()
  552. local e = d:GetGui()
  553. local f = (e:WaitForChild("ItemsHolder"))
  554. local g, h = (f:WaitForChild("ItemsScrollingFrame")), {}
  555. for i, j in pairs(g:GetChildren()) do
  556. if j:IsA("ImageButton") and not (j.Name == "ItemTemplate") then
  557. local k, l = j:FindFirstChild("ItemName"), j:FindFirstChild("ItemCount")
  558. if k and l then
  559. local m, n = k.Text, tonumber(string.match(l.Text, "%d+"))
  560. if n then
  561. for o = 1, n do
  562. table.insert(h, m)
  563. end
  564. end
  565. end
  566. end
  567. end
  568. return h
  569. end
  570. function d:EquipItem(e)
  571. local f = d:GetInventoryGUIDByItemName(e)
  572. if f then
  573. c.Get("toggle_equip_item_1", f)
  574. end
  575. end
  576. function d:GetInventoryGUIDByItemName(e)
  577. local f = d:GetGui()
  578. local g = (f:WaitForChild("ItemsHolder"))
  579. local h, i, j = (g:WaitForChild("ItemsScrollingFrame"))
  580. for k, l in pairs(h:GetChildren()) do
  581. if l:IsA("ImageButton") and not (l.Name == "ItemTemplate") then
  582. local m = l:FindFirstChild("ItemName")
  583. if m then
  584. if m.Text:lower() == e:lower() then
  585. i = l.Name
  586. j = (l:FindFirstChild("DestroyedItemIcon").Visible and "Destroyed" or "Alive")
  587. end
  588. end
  589. end
  590. end
  591. return i, j
  592. end
  593. function d:GetSlotsRemaining()
  594. local e = d:GetGui()
  595. local f = (e:WaitForChild("ItemsHolder"))
  596. local g = (f:WaitForChild("ItemsCloseButton"))
  597. local h = (g:FindFirstChild("DefaultItemsMaxItems"))
  598. if h then
  599. local i = h.Text:split("/")
  600. local j, k = tonumber(i[1]), tonumber(i[2])
  601. if j and k then
  602. return k - j
  603. end
  604. end
  605. return 0
  606. end
  607. function d:GetBestHackingTool()
  608. local e, f =
  609. d:GetInventoryItems(), { "HackToolQuantum", "HackToolUltimate", "HackToolPro", "HackToolBasic" }
  610. for g, h in pairs(f) do
  611. if table.find(e, h) then
  612. return h
  613. end
  614. end
  615. return nil
  616. end
  617. return d
  618. end
  619. function a.g()
  620. local b, c, d, e = game:GetService("Players"), a.load("b"), a.load("f"), {}
  621. e.__index = e
  622. function e.new(f, g)
  623. local h = {}
  624. setmetatable(h, e)
  625. h.RadiusPart = h:CreateRadiusPart()
  626. h.Model = f
  627. h.Position = ((f:FindFirstChild("Area"))).Position
  628. return h
  629. end
  630. function e.CreateRadiusPart(f)
  631. local g = Instance.new("Part", workspace)
  632. g.Name = "x"
  633. g.Anchored = true
  634. g.CanCollide = false
  635. g.Transparency = 0.95
  636. g.Material = Enum.Material.Neon
  637. g.Color = Color3.fromRGB(0, 0, 255)
  638. g.Shape = Enum.PartType.Ball
  639. return g
  640. end
  641. function e.GetStatus(f)
  642. local g = (f.Model:FindFirstChild("Screen", true))
  643. if g and g.Enabled then
  644. return "Hacked"
  645. end
  646. return "Not Hacked"
  647. end
  648. function e.GetCushionPosition(f)
  649. local g = (f.Model:FindFirstChild("Area"))
  650. return g.Position - (-(g.CFrame.LookVector).Unit * 2.5)
  651. end
  652. function e.IsSafe(f)
  653. local g, h = 100, true
  654. for i, j in pairs(game:GetService("Players"):GetPlayers()) do
  655. if j == b.LocalPlayer then
  656. continue
  657. end
  658. if not j.Character then
  659. continue
  660. end
  661. local k = (j.Character:FindFirstChild("HumanoidRootPart"))
  662. if k then
  663. h = (k.Position - f.Position).Magnitude > g
  664. if not h then
  665. break
  666. end
  667. end
  668. end
  669. f.RadiusPart.Position = f.Position
  670. f.RadiusPart.Size = Vector3.new(g * 2, g * 2, g * 2)
  671. return h
  672. end
  673. function e.Deposit(f, g)
  674. if g <= 0 then
  675. return
  676. end
  677. c.Get("transfer_funds", "hand", "bank", g)
  678. end
  679. function e.Withdrawl(f, g)
  680. if g <= 0 then
  681. return
  682. end
  683. c.Get("transfer_funds", "bank", "hand", g)
  684. end
  685. function e.Hack(f)
  686. local g = d:GetBestHackingTool()
  687. if f:GetStatus() == "Not Hacked" and g then
  688. c.Send("request_begin_hacking_3", f.Model, g)
  689. task.wait(1)
  690. c.Send("atm_win_3", f.Model)
  691. end
  692. end
  693. return e
  694. end
  695. function a.h()
  696. local b, c = a.load("g"), { ATMS = {}, LastLoaded = 0 }
  697. function c:Init()
  698. for d, e in pairs(workspace:GetDescendants()) do
  699. if e.Name == "x" then
  700. e:Destroy()
  701. end
  702. if e:IsA("Model") and e.Name == "DoorSystem" then
  703. for f, g in pairs(e:GetDescendants()) do
  704. if g:IsA("BasePart") and not g:FindFirstChild("PathfindingModifier") then
  705. local h = Instance.new("PathfindingModifier", g)
  706. h.PassThrough = true
  707. h.Label = "Door"
  708. g.CanCollide = false
  709. end
  710. end
  711. end
  712. end
  713. if (tick() - c.LastLoaded) > 5 then
  714. c.LastLoaded = tick()
  715. table.clear(c.ATMS)
  716. local d = workspace:WaitForChild("Map"):WaitForChild("Props"):WaitForChild("ATMs")
  717. if d then
  718. for e, f in pairs(d:GetChildren()) do
  719. if f:IsA("Model") and f.Name == "ATM" then
  720. local g = b.new(f)
  721. table.insert(c.ATMS, g)
  722. end
  723. end
  724. end
  725. end
  726. end
  727. return c
  728. end
  729. function a.i()
  730. local b, c, d, e, f, g, h, i, j =
  731. game:GetService("TweenService"),
  732. game:GetService("RunService"),
  733. a.load("b"),
  734. a.load("c"),
  735. a.load("d"),
  736. a.load("e"),
  737. a.load("g"),
  738. a.load("h"),
  739. {
  740. OldMoveToTween = nil,
  741. OldMoveToPartInfo = {},
  742. PathFinished = Instance.new("BindableEvent"),
  743. OldPath = nil,
  744. OldPathBlocked = nil,
  745. OldPathFinished = nil,
  746. OldPathReached = nil,
  747. }
  748. function j:GetCharacter()
  749. local k = game:GetService("Players").LocalPlayer
  750. return k.Character or k.CharacterAdded:Wait()
  751. end
  752. function j:GetHumanoid()
  753. local k = j:GetCharacter()
  754. if k then
  755. return k:WaitForChild("Humanoid")
  756. end
  757. return nil
  758. end
  759. function j:CancelWalkToPoint()
  760. if j.OldPath then
  761. j.OldPath:Destroy()
  762. j.OldPath = nil
  763. end
  764. end
  765. function j:GetHandMoney()
  766. local k = d.UIGet("HandBalanceLabel").Text
  767. return (tonumber((string.match(k, "%d+"))))
  768. end
  769. function j:GetBankMoney()
  770. local k = d.UIGet("BankBalanceLabel").Text
  771. return (tonumber((string.match(k, "%d+"))))
  772. end
  773. function j:SetCollisions(k)
  774. local l = j:GetCharacter()
  775. if l then
  776. l:WaitForChild("HumanoidRootPart").Anchored = not k
  777. for m, n in pairs(l:GetDescendants()) do
  778. if n:IsA("BasePart") and n.CanCollide == not k then
  779. n.CanCollide = k
  780. end
  781. end
  782. end
  783. end
  784. function j:WalkToPoint(k) end
  785. function j:IsAlive()
  786. local k = j:GetHumanoid()
  787. return k and k.Health > 0
  788. end
  789. function j:GetClosestUsableATM(k)
  790. local l, m = math.huge
  791. for n, o in pairs(i.ATMS) do
  792. local p = j:GetDistance(o.Position)
  793. if p < l and (k or o:GetStatus() == "Not Hacked") and o:IsSafe() then
  794. l = p
  795. m = o
  796. end
  797. end
  798. return m
  799. end
  800. function j:Sprint(k)
  801. local l = game:GetService("ReplicatedStorage")
  802. local m = (l:WaitForChild("Modules"))
  803. local n = m:WaitForChild("Game")
  804. require(n:WaitForChild("Sprint")).sprinting.set(k)
  805. end
  806. function j:EquipTool(k)
  807. local l = game:GetService("Players").LocalPlayer
  808. local m, n = (l:WaitForChild("Backpack")), j:GetCharacter()
  809. if n then
  810. if not n:FindFirstChild(k) then
  811. local o = m:WaitForChild(k, 3)
  812. o.Parent = n
  813. end
  814. end
  815. end
  816. function j:GetDistance(k)
  817. local l = j:GetCharacter()
  818. local m = l and (l:WaitForChild("HumanoidRootPart"))
  819. if m then
  820. return (m.Position - k).Magnitude
  821. end
  822. return 0
  823. end
  824. function j:GetVehicle()
  825. local k = j:GetHumanoid()
  826. local l = k and k.SeatPart
  827. local m = l and l:FindFirstAncestorOfClass("Model")
  828. local n = m and m:FindFirstChild("Chassis")
  829. if n then
  830. local o = m and e.new(m, (j:GetCharacter()))
  831. return o
  832. elseif m and not n then
  833. k:ChangeState(Enum.HumanoidStateType.Jumping)
  834. end
  835. return nil
  836. end
  837. return j
  838. end
  839. function a.j()
  840. local b, c = a.load("a"), a.load("i")
  841. local d = function(d, e, f)
  842. local g = c:GetCharacter()
  843. if g then
  844. g.PrimaryPart.Anchored = false
  845. end
  846. if not d.Model:FindFirstChild("Chassis") then
  847. return false
  848. end
  849. local h, i = 10, false
  850. for j = 1, h do
  851. local k = d:DriveToPosition(e, 55)
  852. if k then
  853. i = true
  854. break
  855. else
  856. warn(`Pathfinding failed on attempt {j}/{h}. Retrying...`)
  857. task.wait(0.3 + (j * 0.05))
  858. end
  859. end
  860. if not i then
  861. warn("All pathfinding attempts failed. Giving up.")
  862. return false
  863. end
  864. if not f then
  865. d.PathInformation.Finished.Event:Wait()
  866. end
  867. return true
  868. end
  869. return {
  870. Name = "Drive to ATM",
  871. Enter = function(e, f)
  872. local g, h = c:GetClosestUsableATM(), c:GetVehicle()
  873. if not h or not h:Sitting() then
  874. e:GoTo("Wait for vehicle")
  875. return
  876. end
  877. if not g then
  878. e:GoTo("Wait for ATM")
  879. return
  880. end
  881. local i, j = false
  882. j = h.PathInformation.Finished.Event:Connect(function()
  883. i = true
  884. end)
  885. if not d(h, g.Position, true) then
  886. j:Disconnect()
  887. e:GoTo("Wait for ATM")
  888. return
  889. end
  890. repeat
  891. task.wait()
  892. until i or not (c:GetClosestUsableATM() == g) or not c:IsAlive()
  893. j:Disconnect()
  894. if not c:IsAlive() then
  895. e:GoTo("Wait for vehicle")
  896. return
  897. end
  898. if not (c:GetClosestUsableATM() == g) then
  899. h:StopDrive()
  900. e:GoTo("Wait for ATM")
  901. return
  902. end
  903. e:GoTo("Reached ATM")
  904. end,
  905. }
  906. end
  907. function a.k()
  908. local b, c, d, e, f =
  909. a.load("b"), a.load("i"), a.load("f"), a.load("c"), { CooldownInfo = {
  910. LastSpawned = 0,
  911. Cooldown = 303,
  912. }, LastVehicle = nil }
  913. function f:GetVehicleByGuid(g)
  914. local h = workspace:WaitForChild("Vehicles")
  915. for i, j in pairs(h:GetChildren()) do
  916. if j:GetAttribute("ItemGUID") == g then
  917. return j
  918. end
  919. end
  920. return nil
  921. end
  922. function f:RepairVehicle(g)
  923. local h = d:GetInventoryGUIDByItemName(g)
  924. if h then
  925. b.Get("repair_vehicle", h)
  926. print("sent")
  927. end
  928. end
  929. function f:SpawnVehicle(g)
  930. if f.LastVehicle then
  931. f.LastVehicle:Destroy()
  932. end
  933. local h = (tick() - f.CooldownInfo.LastSpawned) < f.CooldownInfo.Cooldown
  934. if h then
  935. warn(`[VehicleService] cooldown active, waiting...`)
  936. repeat
  937. task.wait()
  938. until (tick() - f.CooldownInfo.LastSpawned) >= f.CooldownInfo.Cooldown
  939. end
  940. local i, j = d:GetInventoryGUIDByItemName(g)
  941. local k = c:GetCharacter()
  942. if h then
  943. end
  944. print(j)
  945. if i and k and not (j == "Destroyed") then
  946. warn("[VehicleService] attempting now.")
  947. d:EquipItem(g)
  948. local l, m = (tick())
  949. repeat
  950. d:EquipItem(g)
  951. m = f:GetVehicleByGuid(i)
  952. task.wait()
  953. until m or (tick() - l) > 10
  954. if m then
  955. f.CooldownInfo.LastSpawned = tick()
  956. local n = e.new(m, k)
  957. f.LastVehicle = n
  958. return n
  959. end
  960. end
  961. if i and k and j == "Destroyed" then
  962. return "Destroyed"
  963. end
  964. return nil
  965. end
  966. return f
  967. end
  968. function a.l()
  969. local b, c, d, e, f =
  970. { Position = Vector3.new(-210.82943725585938, 255.03460693359375, 387.3525695800781) },
  971. a.load("f"),
  972. a.load("b"),
  973. a.load("i"),
  974. game:GetService("Players")
  975. b.DeviceInfo = {
  976. HackToolBasic = { Price = 10, Level = 0 },
  977. HackToolPro = {
  978. Price = 150,
  979. Level = 12,
  980. },
  981. HackToolUltimate = { Price = 350, Level = 50 },
  982. HackToolQuantum = { Price = 550, Level = 90 },
  983. }
  984. function b:GetPosition()
  985. local g, h = b:GetBestDevice()
  986. if h == "HackToolQuantum" then
  987. return Vector3.new(1171.2374267578125, 255.07566833496094, -352.3292236328125)
  988. end
  989. return b.Position
  990. end
  991. function b:GetLevel()
  992. local g = f.LocalPlayer
  993. local h = g:WaitForChild("PlayerGui")
  994. local i = (h:WaitForChild("Skills"))
  995. local j = (i:WaitForChild("SkillsHolder"))
  996. local k = (j:WaitForChild("SkillsScrollingFrame"))
  997. for l, m in pairs(k:GetChildren()) do
  998. local n = (m:FindFirstChild("SkillTitle"))
  999. local o = n and n.Text
  1000. if o then
  1001. if string.find(o:lower(), "swiper") then
  1002. return (tonumber((string.match(o, "%d+"))))
  1003. end
  1004. end
  1005. end
  1006. return 0
  1007. end
  1008. function b:GetBestDevice()
  1009. local g, h, i, j = b:GetLevel(), -1
  1010. for k, l in pairs(b.DeviceInfo) do
  1011. if g >= l.Level and l.Level > h then
  1012. h = l.Level
  1013. j = l
  1014. i = k
  1015. end
  1016. end
  1017. return j, i
  1018. end
  1019. function b:GetMoneyNeeded()
  1020. local g, h = b:GetBestDevice(), c:GetSlotsRemaining()
  1021. warn(`[Dealer]: Slots: {h}`)
  1022. return math.min(g.Price * h, e:GetBankMoney())
  1023. end
  1024. function b:HowManyHacksToBuy()
  1025. local g, h = b:GetBestDevice()
  1026. local i, j = c:GetSlotsRemaining(), e:GetHandMoney()
  1027. return math.min(math.floor(j / g.Price), i)
  1028. end
  1029. function b:BuyHackTools()
  1030. local g, h = b:GetBestDevice()
  1031. local i, j =
  1032. b:HowManyHacksToBuy(),
  1033. h == "HackToolQuantum" and workspace:WaitForChild("ShopZone_IllegalNightclub")
  1034. or workspace:WaitForChild("ShopZone_Illegal")
  1035. for k = 1, i do
  1036. d.Get("purchase_consumable", j, h)
  1037. end
  1038. end
  1039. return b
  1040. end
  1041. function a.m()
  1042. local b, c, d, e, f = a.load("a"), a.load("i"), a.load("k"), a.load("l"), a.load("f")
  1043. local g = function(g, h, i)
  1044. local j = c:GetCharacter()
  1045. if j then
  1046. j.PrimaryPart.Anchored = false
  1047. end
  1048. if not g.Model:FindFirstChild("Chassis") then
  1049. return false
  1050. end
  1051. local k, l = 10, false
  1052. for m = 1, k do
  1053. local n = g:DriveToPosition(h, 55)
  1054. if n then
  1055. l = true
  1056. break
  1057. else
  1058. warn(`Pathfinding failed on attempt {m}/{k}. Retrying...`)
  1059. task.wait(0.3 + (m * 0.05))
  1060. end
  1061. end
  1062. if not l then
  1063. warn("All pathfinding attempts failed. Giving up.")
  1064. return false
  1065. end
  1066. if not i then
  1067. g.PathInformation.Finished.Event:Wait()
  1068. end
  1069. return true
  1070. end
  1071. return {
  1072. Name = "Go to dealer",
  1073. Enter = function(h, i)
  1074. local j = c:GetVehicle()
  1075. if not j then
  1076. h:GoTo("Wait for vehicle")
  1077. return
  1078. end
  1079. local k, l = false
  1080. l = j.PathInformation.Finished.Event:Connect(function()
  1081. k = true
  1082. end)
  1083. if not g(j, e:GetPosition(), true) then
  1084. l:Disconnect()
  1085. h:GoTo("Wait for ATM")
  1086. return
  1087. end
  1088. repeat
  1089. task.wait()
  1090. until k or not c:GetVehicle() or not c:IsAlive()
  1091. l:Disconnect()
  1092. if not c:IsAlive() or not c:GetVehicle() then
  1093. h:GoTo("Wait for vehicle")
  1094. return
  1095. end
  1096. j:StopDrive()
  1097. e:BuyHackTools()
  1098. h:GoTo("Wait for ATM")
  1099. end,
  1100. }
  1101. end
  1102. function a.n()
  1103. local b, c, d, e, f = a.load("a"), a.load("i"), a.load("k"), a.load("l"), a.load("f")
  1104. return {
  1105. Name = "Reached ATM",
  1106. Enter = function(g, h)
  1107. local i, j = c:GetClosestUsableATM(), c:GetVehicle()
  1108. if not j or not j:Sitting() then
  1109. g:GoTo("Wait for vehicle")
  1110. return
  1111. end
  1112. if not i then
  1113. g:GoTo("Wait for ATM")
  1114. return
  1115. end
  1116. j:Exit()
  1117. repeat
  1118. task.wait()
  1119. until not c:GetVehicle()
  1120. c:WalkToPoint(i.Position)
  1121. if not f:GetBestHackingTool() then
  1122. i:Withdrawl(e:GetMoneyNeeded())
  1123. c:CancelWalkToPoint()
  1124. local k = false
  1125. local l = c.PathFinished.Event:Connect(function()
  1126. k = true
  1127. end)
  1128. c:WalkToPoint(j.Model:WaitForChild("Chassis").Position)
  1129. repeat
  1130. task.wait()
  1131. j:Enter()
  1132. until not c:IsAlive() or k or j:Sitting()
  1133. l:Disconnect()
  1134. c:CancelWalkToPoint()
  1135. j:Enter()
  1136. if not c:IsAlive() then
  1137. g:GoTo("Wait for vehicle")
  1138. return
  1139. end
  1140. if j:Sitting() then
  1141. g:GoTo("Go to dealer")
  1142. return
  1143. end
  1144. local m = tick()
  1145. repeat
  1146. task.wait()
  1147. until j:Sitting() and c:GetVehicle() or tick() - m > 5
  1148. if j:Sitting() and c:GetVehicle() then
  1149. g:GoTo("Go to dealer")
  1150. return
  1151. end
  1152. if tick() - m > 5 then
  1153. g:GoTo("Wait for vehicle")
  1154. return
  1155. end
  1156. end
  1157. d:RepairVehicle("escooter")
  1158. if c:GetHandMoney() > 0 then
  1159. i:Deposit(c:GetHandMoney())
  1160. end
  1161. i:Hack()
  1162. c:WalkToPoint(j.Model:WaitForChild("Chassis").Position)
  1163. repeat
  1164. task.wait()
  1165. j:Enter()
  1166. until not c:IsAlive() or j:Sitting() and c:GetVehicle()
  1167. c:CancelWalkToPoint()
  1168. j:Enter()
  1169. g:GoTo("Wait for vehicle")
  1170. end,
  1171. }
  1172. end
  1173. function a.o()
  1174. local b, c, d, e = a.load("a"), a.load("k"), a.load("i"), a.load("h")
  1175. return {
  1176. Name = "Repair vehicle",
  1177. Enter = function(f, g)
  1178. e:Init()
  1179. if d:GetHandMoney() >= 200 then
  1180. c:RepairVehicle("escooter")
  1181. f:GoTo("Wait for vehicle")
  1182. return
  1183. end
  1184. local h, i, j = false
  1185. j = d.PathFinished.Event:Connect(function()
  1186. h = true
  1187. end)
  1188. while true do
  1189. local k = d:GetClosestUsableATM()
  1190. if not (k == i) then
  1191. i = k
  1192. d:WalkToPoint(k.Position)
  1193. end
  1194. if h or not d:IsAlive() then
  1195. break
  1196. end
  1197. task.wait()
  1198. end
  1199. j:Disconnect()
  1200. d:CancelWalkToPoint()
  1201. if not d:IsAlive() then
  1202. f:GoTo("Wait for vehicle")
  1203. return
  1204. end
  1205. i:Withdrawl(200)
  1206. c:RepairVehicle("escooter")
  1207. f:GoTo("Wait for vehicle")
  1208. end,
  1209. }
  1210. end
  1211. function a.p()
  1212. local b, c, d = a.load("a"), a.load("h"), a.load("i")
  1213. return {
  1214. Name = "Wait for ATM",
  1215. Enter = function(e, f)
  1216. c:Init()
  1217. repeat
  1218. task.wait()
  1219. until d:GetClosestUsableATM() or not d:IsAlive()
  1220. if not d:IsAlive() then
  1221. e:GoTo("Wait for vehicle")
  1222. return
  1223. end
  1224. e:GoTo("Drive to ATM")
  1225. end,
  1226. }
  1227. end
  1228. function a.q()
  1229. local b, c, d = {}, a.load("i"), game:GetService("Players")
  1230. local e = d.LocalPlayer
  1231. local f = e:WaitForChild("PlayerGui")
  1232. function b:ClickButton(g)
  1233. for h, i in pairs(getconnections(g.MouseButton1Click)) do
  1234. i:Fire()
  1235. end
  1236. for h, i in pairs(getconnections(g.MouseButton1Down)) do
  1237. i:Fire()
  1238. end
  1239. end
  1240. function b:GetSplashScreenButton()
  1241. local g = (f:WaitForChild("SplashScreenGui"))
  1242. local h = (g:WaitForChild("Frame"))
  1243. local i = (h:WaitForChild("PlayButton"))
  1244. repeat
  1245. task.wait()
  1246. until i.Visible and i.ImageTransparency < 0.3 and g.Enabled and h.Visible
  1247. task.wait(1)
  1248. return i
  1249. end
  1250. function b:GetAvatarSkipButton()
  1251. local g = f:WaitForChild("CharacterCreator")
  1252. local h = g:WaitForChild("MenuFrame")
  1253. return (h:WaitForChild("AvatarMenuSkipButton"))
  1254. end
  1255. function b:GetCreatorArea()
  1256. return (workspace:FindFirstChild(`{e.Name}_character_creator_area`))
  1257. end
  1258. function b:WaitForCharacter()
  1259. return e.Character or e.CharacterAdded:Wait()
  1260. end
  1261. function b:WaitForCharacterInGame()
  1262. local g, h = b:WaitForCharacter(), b:GetCreatorArea()
  1263. if not h then
  1264. task.wait()
  1265. b:WaitForCharacterInGame()
  1266. return
  1267. end
  1268. repeat
  1269. task.wait()
  1270. until g:GetAttribute("LoadedCharacter")
  1271. repeat
  1272. task.wait()
  1273. until c:GetDistance(h:WaitForChild("Main").Position) > 30
  1274. g = b:WaitForCharacter()
  1275. repeat
  1276. task.wait()
  1277. until g:GetAttribute("LoadedCharacter")
  1278. return g
  1279. end
  1280. function b:Respawn()
  1281. local g = (f:WaitForChild("DeathScreen"))
  1282. local h = (g:WaitForChild("DeathScreenHolder"))
  1283. local i = h:WaitForChild("Frame")
  1284. local j = i:WaitForChild("RespawnButtonFrame")
  1285. local k = (j:WaitForChild("RespawnButton"))
  1286. if k then
  1287. if k.Visible and h.Visible then
  1288. if g.Enabled then
  1289. if not string.match(k:FindFirstChildOfClass("TextLabel").Text, "%d+") then
  1290. firesignal(k.MouseButton1Down)
  1291. firesignal(k.MouseButton1Click)
  1292. end
  1293. end
  1294. end
  1295. end
  1296. end
  1297. function b:Play()
  1298. b:ClickButton(b:GetSplashScreenButton())
  1299. task.wait(3)
  1300. b:ClickButton(b:GetAvatarSkipButton())
  1301. end
  1302. return b
  1303. end
  1304. function a.r()
  1305. local b, c, d, e, f, g, h =
  1306. a.load("a"), a.load("b"), a.load("k"), a.load("c"), a.load("f"), a.load("i"), a.load("q")
  1307. return {
  1308. Name = "Wait for vehicle",
  1309. Enter = function(i, j)
  1310. local k = h:WaitForCharacterInGame()
  1311. if not k:FindFirstChild("HumanoidRootPart") then
  1312. i:GoTo("Wait for vehicle")
  1313. return
  1314. end
  1315. if not g:IsAlive() then
  1316. i:GoTo("Wait for vehicle")
  1317. return
  1318. end
  1319. local l = g:GetVehicle()
  1320. if l and l:Sitting() then
  1321. i:GoTo("Wait for ATM")
  1322. return
  1323. end
  1324. g:CancelWalkToPoint()
  1325. local m = f:GetInventoryGUIDByItemName("escooter")
  1326. local n = m and d:GetVehicleByGuid(m)
  1327. print(m, n)
  1328. if n then
  1329. local o = e.new(n, k)
  1330. if o then
  1331. o:Enter()
  1332. local p = tick()
  1333. repeat
  1334. task.wait()
  1335. until g:GetVehicle() and o:Sitting() or tick() - p >= 5
  1336. if g:GetVehicle() and o:Sitting() then
  1337. i:GoTo("Wait for ATM")
  1338. return
  1339. end
  1340. end
  1341. end
  1342. warn("[WaitForVehicle]: Character ready. Spawning vehicle.")
  1343. local o = (d:SpawnVehicle("escooter"))
  1344. if o and typeof(o) == "table" then
  1345. repeat
  1346. task.wait()
  1347. o:Enter()
  1348. until g:GetVehicle() and ((g:GetVehicle())):Sitting() or not g:IsAlive()
  1349. if not g:IsAlive() then
  1350. i:GoTo("Wait for vehicle")
  1351. return
  1352. end
  1353. i:GoTo("Wait for ATM")
  1354. return
  1355. elseif o == "Destroyed" then
  1356. i:GoTo("Repair vehicle")
  1357. return
  1358. else
  1359. c.Send("request_respawn")
  1360. i:GoTo("Wait for vehicle")
  1361. return
  1362. end
  1363. end,
  1364. }
  1365. end
  1366. function a.s()
  1367. local b, c = a.load("a"), a.load("b")
  1368. local d, e = b.new(), { a.load("j"), a.load("m"), a.load("n"), a.load("o"), a.load("p"), a.load("r") }
  1369. function d:Start()
  1370. if not self.Started then
  1371. self.Started = true
  1372. local f = {}
  1373. for g, h in pairs(e) do
  1374. table.insert(f, {
  1375. Name = h.Name,
  1376. Enter = function()
  1377. task.defer(h.Enter, d, "lol")
  1378. return true
  1379. end,
  1380. })
  1381. end
  1382. d.Timeout = function()
  1383. c.Send("request_respawn")
  1384. d:GoTo("Wait for vehicle")
  1385. end
  1386. d:DefineStates(f)
  1387. d:GoTo("Wait for vehicle")
  1388. end
  1389. end
  1390. return d
  1391. end
  1392. end
  1393. repeat
  1394. task.wait()
  1395. until game:IsLoaded()
  1396. local b, c, d, e, f, g =
  1397. game:GetService("Players"),
  1398. cloneref(game:GetService("VirtualUser")),
  1399. game:GetService("TeleportService"),
  1400. a.load("s"),
  1401. a.load("i"),
  1402. a.load("q")
  1403. local h = b.LocalPlayer
  1404. h.Idled:Connect(function()
  1405. c:CaptureController()
  1406. c:ClickButton2(Vector2.new())
  1407. end)
  1408. print("??")
  1409. task.spawn(function()
  1410. while true do
  1411. g:Respawn()
  1412. task.wait()
  1413. end
  1414. end)
  1415. g:Play()
  1416. g:WaitForCharacterInGame()
  1417. task.wait(5)
  1418. local i = f:GetHumanoid()
  1419. if i then
  1420. i:GetPropertyChangedSignal("Health"):Connect(function()
  1421. if i.Health <= 0 then
  1422. d:Teleport(game.PlaceId)
  1423. end
  1424. end)
  1425. end
  1426. e:Start()
  1427. queue_on_teleport(`loadstring(game:HttpGet("https://pastebin.com/raw/vST9RTrM?j=a"))()`)
  1428.  
Add Comment
Please, Sign In to add comment