ChrisGoodbye

AGG V2

Nov 21st, 2021
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 44.50 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local AGG = Instance.new("TextLabel")
  8. local FreeCamera = Instance.new("TextButton")
  9. local ESP = Instance.new("TextButton")
  10. local BuildTools = Instance.new("TextButton")
  11. local ScrollingFrame = Instance.new("ScrollingFrame")
  12. local Arsenal = Instance.new("TextButton")
  13. local mmtwo = Instance.new("TextButton")
  14. local babftauto = Instance.new("TextButton")
  15. local PetSimX = Instance.new("TextButton")
  16. local BSS = Instance.new("TextButton")
  17. local ninja = Instance.new("TextButton")
  18. local GBS = Instance.new("TextLabel")
  19. local Jump = Instance.new("TextButton")
  20.  
  21. --Properties:
  22.  
  23. ScreenGui.Parent = game.Workspace.Part
  24.  
  25. AGG.Name = "AGG"
  26. AGG.Parent = ScreenGui
  27. AGG.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  28. AGG.Position = UDim2.new(-0.00128123979, 0, 0.198772937, 0)
  29. AGG.Size = UDim2.new(0, 137, 0, 19)
  30. AGG.Font = Enum.Font.SourceSans
  31. AGG.Text = "AGG v2"
  32. AGG.TextColor3 = Color3.fromRGB(255, 255, 255)
  33. AGG.TextSize = 30.000
  34. AGG.TextWrapped = true
  35.  
  36. FreeCamera.Name = "FreeCamera"
  37. FreeCamera.Parent = ScreenGui
  38. FreeCamera.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  39. FreeCamera.Position = UDim2.new(0.00149087608, 0, 0.260122687, 0)
  40. FreeCamera.Size = UDim2.new(0, 133, 0, 36)
  41. FreeCamera.Font = Enum.Font.SourceSans
  42. FreeCamera.Text = "Free Camera {press z}"
  43. FreeCamera.TextColor3 = Color3.fromRGB(255, 255, 255)
  44. FreeCamera.TextSize = 14.000
  45. FreeCamera.MouseButton1Down:connect(function()
  46. function sandbox(var,func)
  47. local env = getfenv(func)
  48. local newenv = setmetatable({},{
  49. __index = function(self,k)
  50. if k=="script" then
  51. return var
  52. else
  53. return env[k]
  54. end
  55. end,
  56. })
  57. setfenv(func,newenv)
  58. return func
  59. end
  60. cors = {}
  61. mas = Instance.new("Model",game:GetService("Lighting"))
  62. LocalScript0 = Instance.new("LocalScript")
  63. LocalScript0.Name = "FreeCamera"
  64. LocalScript0.Parent = mas
  65. table.insert(cors,sandbox(LocalScript0,function()
  66.  
  67. local pi = math.pi
  68. local abs = math.abs
  69. local clamp = math.clamp
  70. local exp = math.exp
  71. local rad = math.rad
  72. local sign = math.sign
  73. local sqrt = math.sqrt
  74. local tan = math.tan
  75.  
  76. local ContextActionService = game:GetService("ContextActionService")
  77. local Players = game:GetService("Players")
  78. local RunService = game:GetService("RunService")
  79. local StarterGui = game:GetService("StarterGui")
  80. local UserInputService = game:GetService("UserInputService")
  81.  
  82. local LocalPlayer = Players.LocalPlayer
  83. if not LocalPlayer then
  84. Players:GetPropertyChangedSignal("LocalPlayer"):Wait()
  85. LocalPlayer = Players.LocalPlayer
  86. end
  87.  
  88. local Camera = workspace.CurrentCamera
  89. workspace:GetPropertyChangedSignal("CurrentCamera"):Connect(function()
  90. local newCamera = workspace.CurrentCamera
  91. if newCamera then
  92. Camera = newCamera
  93. end
  94. end)
  95.  
  96. ------------------------------------------------------------------------
  97.  
  98. local TOGGLE_INPUT_PRIORITY = Enum.ContextActionPriority.Low.Value
  99. local INPUT_PRIORITY = Enum.ContextActionPriority.High.Value
  100. local FREECAM_MACRO_KB = {Enum.KeyCode.LeftShift, Enum.KeyCode.P}
  101.  
  102. local NAV_GAIN = Vector3.new(1, 1, 1)*64
  103. local PAN_GAIN = Vector2.new(0.75, 1)*8
  104. local FOV_GAIN = 300
  105.  
  106. local PITCH_LIMIT = rad(90)
  107.  
  108. local VEL_STIFFNESS = 1.5
  109. local PAN_STIFFNESS = 1.0
  110. local FOV_STIFFNESS = 4.0
  111.  
  112. ------------------------------------------------------------------------
  113.  
  114. local Spring = {} do
  115. Spring.__index = Spring
  116.  
  117. function Spring.new(freq, pos)
  118. local self = setmetatable({}, Spring)
  119. self.f = freq
  120. self.p = pos
  121. self.v = pos*0
  122. return self
  123. end
  124.  
  125. function Spring:Update(dt, goal)
  126. local f = self.f*2*pi
  127. local p0 = self.p
  128. local v0 = self.v
  129.  
  130. local offset = goal - p0
  131. local decay = exp(-f*dt)
  132.  
  133. local p1 = goal + (v0*dt - offset*(f*dt + 1))*decay
  134. local v1 = (f*dt*(offset*f - v0) + v0)*decay
  135.  
  136. self.p = p1
  137. self.v = v1
  138.  
  139. return p1
  140. end
  141.  
  142. function Spring:Reset(pos)
  143. self.p = pos
  144. self.v = pos*0
  145. end
  146. end
  147.  
  148. ------------------------------------------------------------------------
  149.  
  150. local cameraPos = Vector3.new()
  151. local cameraRot = Vector2.new()
  152. local cameraFov = 0
  153.  
  154. local velSpring = Spring.new(VEL_STIFFNESS, Vector3.new())
  155. local panSpring = Spring.new(PAN_STIFFNESS, Vector2.new())
  156. local fovSpring = Spring.new(FOV_STIFFNESS, 0)
  157.  
  158. ------------------------------------------------------------------------
  159.  
  160. local Input = {} do
  161. local thumbstickCurve do
  162. local K_CURVATURE = 2.0
  163. local K_DEADZONE = 0.15
  164.  
  165. local function fCurve(x)
  166. return (exp(K_CURVATURE*x) - 1)/(exp(K_CURVATURE) - 1)
  167. end
  168.  
  169. local function fDeadzone(x)
  170. return fCurve((x - K_DEADZONE)/(1 - K_DEADZONE))
  171. end
  172.  
  173. function thumbstickCurve(x)
  174. return sign(x)*clamp(fDeadzone(abs(x)), 0, 1)
  175. end
  176. end
  177.  
  178. local gamepad = {
  179. ButtonX = 0,
  180. ButtonY = 0,
  181. DPadDown = 0,
  182. DPadUp = 0,
  183. ButtonL2 = 0,
  184. ButtonR2 = 0,
  185. Thumbstick1 = Vector2.new(),
  186. Thumbstick2 = Vector2.new(),
  187. }
  188.  
  189. local keyboard = {
  190. W = 0,
  191. A = 0,
  192. S = 0,
  193. D = 0,
  194. E = 0,
  195. Q = 0,
  196. U = 0,
  197. H = 0,
  198. J = 0,
  199. K = 0,
  200. I = 0,
  201. Y = 0,
  202. Up = 0,
  203. Down = 0,
  204. LeftShift = 0,
  205. RightShift = 0,
  206. }
  207.  
  208. local mouse = {
  209. Delta = Vector2.new(),
  210. MouseWheel = 0,
  211. }
  212.  
  213. local NAV_GAMEPAD_SPEED = Vector3.new(1, 1, 1)
  214. local NAV_KEYBOARD_SPEED = Vector3.new(1, 1, 1)
  215. local PAN_MOUSE_SPEED = Vector2.new(1, 1)*(pi/64)
  216. local PAN_GAMEPAD_SPEED = Vector2.new(1, 1)*(pi/8)
  217. local FOV_WHEEL_SPEED = 1.0
  218. local FOV_GAMEPAD_SPEED = 0.25
  219. local NAV_ADJ_SPEED = 0.75
  220. local NAV_SHIFT_MUL = 0.25
  221.  
  222. local navSpeed = 1
  223.  
  224. function Input.Vel(dt)
  225. navSpeed = clamp(navSpeed + dt*(keyboard.Up - keyboard.Down)*NAV_ADJ_SPEED, 0.01, 4)
  226.  
  227. local kGamepad = Vector3.new(
  228. thumbstickCurve(gamepad.Thumbstick1.x),
  229. thumbstickCurve(gamepad.ButtonR2) - thumbstickCurve(gamepad.ButtonL2),
  230. thumbstickCurve(-gamepad.Thumbstick1.y)
  231. )*NAV_GAMEPAD_SPEED
  232.  
  233. local kKeyboard = Vector3.new(
  234. keyboard.D - keyboard.A + keyboard.K - keyboard.H,
  235. keyboard.E - keyboard.Q + keyboard.I - keyboard.Y,
  236. keyboard.S - keyboard.W + keyboard.J - keyboard.U
  237. )*NAV_KEYBOARD_SPEED
  238.  
  239. local shift = UserInputService:IsKeyDown(Enum.KeyCode.LeftShift) or UserInputService:IsKeyDown(Enum.KeyCode.RightShift)
  240.  
  241. return (kGamepad + kKeyboard)*(navSpeed*(shift and NAV_SHIFT_MUL or 1))
  242. end
  243.  
  244. function Input.Pan(dt)
  245. local kGamepad = Vector2.new(
  246. thumbstickCurve(gamepad.Thumbstick2.y),
  247. thumbstickCurve(-gamepad.Thumbstick2.x)
  248. )*PAN_GAMEPAD_SPEED
  249. local kMouse = mouse.Delta*PAN_MOUSE_SPEED
  250. mouse.Delta = Vector2.new()
  251. return kGamepad + kMouse
  252. end
  253.  
  254. function Input.Fov(dt)
  255. local kGamepad = (gamepad.ButtonX - gamepad.ButtonY)*FOV_GAMEPAD_SPEED
  256. local kMouse = mouse.MouseWheel*FOV_WHEEL_SPEED
  257. mouse.MouseWheel = 0
  258. return kGamepad + kMouse
  259. end
  260.  
  261. do
  262. local function Keypress(action, state, input)
  263. keyboard[input.KeyCode.Name] = state == Enum.UserInputState.Begin and 1 or 0
  264. return Enum.ContextActionResult.Sink
  265. end
  266.  
  267. local function GpButton(action, state, input)
  268. gamepad[input.KeyCode.Name] = state == Enum.UserInputState.Begin and 1 or 0
  269. return Enum.ContextActionResult.Sink
  270. end
  271.  
  272. local function MousePan(action, state, input)
  273. local delta = input.Delta
  274. mouse.Delta = Vector2.new(-delta.y, -delta.x)
  275. return Enum.ContextActionResult.Sink
  276. end
  277.  
  278. local function Thumb(action, state, input)
  279. gamepad[input.KeyCode.Name] = input.Position
  280. return Enum.ContextActionResult.Sink
  281. end
  282.  
  283. local function Trigger(action, state, input)
  284. gamepad[input.KeyCode.Name] = input.Position.z
  285. return Enum.ContextActionResult.Sink
  286. end
  287.  
  288. local function MouseWheel(action, state, input)
  289. mouse[input.UserInputType.Name] = -input.Position.z
  290. return Enum.ContextActionResult.Sink
  291. end
  292.  
  293. local function Zero(t)
  294. for k, v in pairs(t) do
  295. t[k] = v*0
  296. end
  297. end
  298.  
  299. function Input.StartCapture()
  300. ContextActionService:BindActionAtPriority("FreecamKeyboard", Keypress, false, INPUT_PRIORITY,
  301. Enum.KeyCode.W, Enum.KeyCode.U,
  302. Enum.KeyCode.A, Enum.KeyCode.H,
  303. Enum.KeyCode.S, Enum.KeyCode.J,
  304. Enum.KeyCode.D, Enum.KeyCode.K,
  305. Enum.KeyCode.E, Enum.KeyCode.I,
  306. Enum.KeyCode.Q, Enum.KeyCode.Y,
  307. Enum.KeyCode.Up, Enum.KeyCode.Down
  308. )
  309. ContextActionService:BindActionAtPriority("FreecamMousePan", MousePan, false, INPUT_PRIORITY, Enum.UserInputType.MouseMovement)
  310. ContextActionService:BindActionAtPriority("FreecamMouseWheel", MouseWheel, false, INPUT_PRIORITY, Enum.UserInputType.MouseWheel)
  311. ContextActionService:BindActionAtPriority("FreecamGamepadButton", GpButton, false, INPUT_PRIORITY, Enum.KeyCode.ButtonX, Enum.KeyCode.ButtonY)
  312. ContextActionService:BindActionAtPriority("FreecamGamepadTrigger", Trigger, false, INPUT_PRIORITY, Enum.KeyCode.ButtonR2, Enum.KeyCode.ButtonL2)
  313. ContextActionService:BindActionAtPriority("FreecamGamepadThumbstick", Thumb, false, INPUT_PRIORITY, Enum.KeyCode.Thumbstick1, Enum.KeyCode.Thumbstick2)
  314. end
  315.  
  316. function Input.StopCapture()
  317. navSpeed = 1
  318. Zero(gamepad)
  319. Zero(keyboard)
  320. Zero(mouse)
  321. ContextActionService:UnbindAction("FreecamKeyboard")
  322. ContextActionService:UnbindAction("FreecamMousePan")
  323. ContextActionService:UnbindAction("FreecamMouseWheel")
  324. ContextActionService:UnbindAction("FreecamGamepadButton")
  325. ContextActionService:UnbindAction("FreecamGamepadTrigger")
  326. ContextActionService:UnbindAction("FreecamGamepadThumbstick")
  327. end
  328. end
  329. end
  330.  
  331. local function GetFocusDistance(cameraFrame)
  332. local znear = 0.1
  333. local viewport = Camera.ViewportSize
  334. local projy = 2*tan(cameraFov/2)
  335. local projx = viewport.x/viewport.y*projy
  336. local fx = cameraFrame.rightVector
  337. local fy = cameraFrame.upVector
  338. local fz = cameraFrame.lookVector
  339.  
  340. local minVect = Vector3.new()
  341. local minDist = 512
  342.  
  343. for x = 0, 1, 0.5 do
  344. for y = 0, 1, 0.5 do
  345. local cx = (x - 0.5)*projx
  346. local cy = (y - 0.5)*projy
  347. local offset = fx*cx - fy*cy + fz
  348. local origin = cameraFrame.p + offset*znear
  349. local part, hit = workspace:FindPartOnRay(Ray.new(origin, offset.unit*minDist))
  350. local dist = (hit - origin).magnitude
  351. if minDist > dist then
  352. minDist = dist
  353. minVect = offset.unit
  354. end
  355. end
  356. end
  357.  
  358. return fz:Dot(minVect)*minDist
  359. end
  360.  
  361. ------------------------------------------------------------------------
  362.  
  363. local function StepFreecam(dt)
  364. local vel = velSpring:Update(dt, Input.Vel(dt))
  365. local pan = panSpring:Update(dt, Input.Pan(dt))
  366. local fov = fovSpring:Update(dt, Input.Fov(dt))
  367.  
  368. local zoomFactor = sqrt(tan(rad(70/2))/tan(rad(cameraFov/2)))
  369.  
  370. cameraFov = clamp(cameraFov + fov*FOV_GAIN*(dt/zoomFactor), 1, 120)
  371. cameraRot = cameraRot + pan*PAN_GAIN*(dt/zoomFactor)
  372. cameraRot = Vector2.new(clamp(cameraRot.x, -PITCH_LIMIT, PITCH_LIMIT), cameraRot.y%(2*pi))
  373.  
  374. local cameraCFrame = CFrame.new(cameraPos)*CFrame.fromOrientation(cameraRot.x, cameraRot.y, 0)*CFrame.new(vel*NAV_GAIN*dt)
  375. cameraPos = cameraCFrame.p
  376.  
  377. Camera.CFrame = cameraCFrame
  378. Camera.Focus = cameraCFrame*CFrame.new(0, 0, -GetFocusDistance(cameraCFrame))
  379. Camera.FieldOfView = cameraFov
  380. end
  381.  
  382. ------------------------------------------------------------------------
  383.  
  384. local PlayerState = {} do
  385. local mouseIconEnabled
  386. local cameraSubject
  387. local cameraType
  388. local cameraFocus
  389. local cameraCFrame
  390. local cameraFieldOfView
  391. local screenGuis = {}
  392. local coreGuis = {
  393. Backpack = true,
  394. Chat = true,
  395. Health = true,
  396. PlayerList = true,
  397. }
  398. local setCores = {
  399. BadgesNotificationsActive = true,
  400. PointsNotificationsActive = true,
  401. }
  402.  
  403. -- Save state and set up for freecam
  404. function PlayerState.Push()
  405. for name in pairs(coreGuis) do
  406. coreGuis[name] = StarterGui:GetCoreGuiEnabled(Enum.CoreGuiType[name])
  407. StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType[name], false)
  408. end
  409. for name in pairs(setCores) do
  410. setCores[name] = StarterGui:GetCore(name)
  411. StarterGui:SetCore(name, false)
  412. end
  413. local playergui = LocalPlayer:FindFirstChildOfClass("PlayerGui")
  414. if playergui then
  415. for _, gui in pairs(playergui:GetChildren()) do
  416. if gui:IsA("ScreenGui") and gui.Enabled then
  417. screenGuis[#screenGuis + 1] = gui
  418. gui.Enabled = false
  419. end
  420. end
  421. end
  422.  
  423. cameraFieldOfView = Camera.FieldOfView
  424. Camera.FieldOfView = 70
  425.  
  426. cameraType = Camera.CameraType
  427. Camera.CameraType = Enum.CameraType.Custom
  428.  
  429. cameraSubject = Camera.CameraSubject
  430. Camera.CameraSubject = nil
  431.  
  432. cameraCFrame = Camera.CFrame
  433. cameraFocus = Camera.Focus
  434.  
  435. mouseIconEnabled = UserInputService.MouseIconEnabled
  436. UserInputService.MouseIconEnabled = false
  437.  
  438. mouseBehavior = UserInputService.MouseBehavior
  439. UserInputService.MouseBehavior = Enum.MouseBehavior.Default
  440. end
  441.  
  442. -- Restore state
  443. function PlayerState.Pop()
  444. for name, isEnabled in pairs(coreGuis) do
  445. StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType[name], isEnabled)
  446. end
  447. for name, isEnabled in pairs(setCores) do
  448. StarterGui:SetCore(name, isEnabled)
  449. end
  450. for _, gui in pairs(screenGuis) do
  451. if gui.Parent then
  452. gui.Enabled = true
  453. end
  454. end
  455.  
  456. Camera.FieldOfView = cameraFieldOfView
  457. cameraFieldOfView = nil
  458.  
  459. Camera.CameraType = cameraType
  460. cameraType = nil
  461.  
  462. Camera.CameraSubject = cameraSubject
  463. cameraSubject = nil
  464.  
  465. Camera.CFrame = cameraCFrame
  466. cameraCFrame = nil
  467.  
  468. Camera.Focus = cameraFocus
  469. cameraFocus = nil
  470.  
  471. UserInputService.MouseIconEnabled = mouseIconEnabled
  472. mouseIconEnabled = nil
  473.  
  474. UserInputService.MouseBehavior = mouseBehavior
  475. mouseBehavior = nil
  476. end
  477. end
  478.  
  479. local function StartFreecam()
  480. local cameraCFrame = Camera.CFrame
  481. cameraRot = Vector2.new(cameraCFrame:toEulerAnglesYXZ())
  482. cameraPos = cameraCFrame.p
  483. cameraFov = Camera.FieldOfView
  484.  
  485. velSpring:Reset(Vector3.new())
  486. panSpring:Reset(Vector2.new())
  487. fovSpring:Reset(0)
  488.  
  489. PlayerState.Push()
  490. RunService:BindToRenderStep("Freecam", Enum.RenderPriority.Camera.Value, StepFreecam)
  491. Input.StartCapture()
  492. end
  493.  
  494. local function StopFreecam()
  495. Input.StopCapture()
  496. RunService:UnbindFromRenderStep("Freecam")
  497. PlayerState.Pop()
  498. end
  499.  
  500. ------------------------------------------------------------------------
  501.  
  502. do
  503. local enabled = false
  504.  
  505. local function ToggleFreecam()
  506. if enabled then
  507. StopFreecam()
  508. else
  509. StartFreecam()
  510. end
  511. enabled = not enabled
  512. end
  513.  
  514. local function CheckMacro(macro)
  515. for i = 1, #macro - 1 do
  516. if not UserInputService:IsKeyDown(macro[i]) then
  517. return
  518. end
  519. end
  520. ToggleFreecam()
  521. end
  522.  
  523. local function HandleActivationInput(action, state, input)
  524. if state == Enum.UserInputState.Begin then
  525. if input.KeyCode == FREECAM_MACRO_KB[#FREECAM_MACRO_KB] then
  526. CheckMacro(FREECAM_MACRO_KB)
  527. end
  528. end
  529. return Enum.ContextActionResult.Pass
  530. end
  531.  
  532. ContextActionService:BindActionAtPriority("FreecamToggle", HandleActivationInput, false, TOGGLE_INPUT_PRIORITY, FREECAM_MACRO_KB[#FREECAM_MACRO_KB])
  533. end
  534. end))
  535. for i,v in pairs(mas:GetChildren()) do
  536. v.Parent = game:GetService("Players").LocalPlayer.PlayerGui
  537. pcall(function() v:MakeJoints() end)
  538. end
  539. mas:Destroy()
  540. for i,v in pairs(cors) do
  541. spawn(function()
  542. pcall(v)
  543. end)
  544. end
  545. end)
  546.  
  547. ESP.Name = "ESP"
  548. ESP.Parent = ScreenGui
  549. ESP.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  550. ESP.Position = UDim2.new(0.00149087608, 0, 0.303067595, 0)
  551. ESP.Size = UDim2.new(0, 133, 0, 37)
  552. ESP.Font = Enum.Font.SourceSans
  553. ESP.Text = "Extrasensory Perception (ESP)"
  554. ESP.TextColor3 = Color3.fromRGB(255, 255, 255)
  555. ESP.TextSize = 18.000
  556. ESP.TextWrapped = true
  557. ESP.MouseButton1Down:connect(function()
  558. -- -----------------------------------
  559. -- ___ _ _ _ --
  560. -- / __| ___| |_| |_(_)_ _ __ _ ___--
  561. -- \__ \/ -_) _| _| | ' \/ _` (_-<--
  562. -- |___/\___|\__|\__|_|_||_\__, /__/--
  563. -- |___/ --
  564. -- -----------------------------------
  565. -- -----------------------------------
  566. ALLYCOLOR = {0,255,255} --//Color of the ESP of people on the same team
  567. ENEMYCOLOR = {255,0,0} --//Color of the ESP of people on NOT the same team
  568. TRANSPARENCY = 0.5 --//Transparency of the ESP
  569. HEALTHBAR_ACTIVATED = true --//Renders the Healthbar
  570. --
  571. --
  572.  
  573. -- !!!Don't Change Anything Below Here Unless You Know What You're Doing!!!
  574.  
  575. function createFlex()
  576. -- -----------------------------------------------------------------------------------
  577. --[VARIABLES] //Changing may result in Errors!
  578. players = game:GetService("Players") --//Required for PF
  579. faces = {"Front","Back","Bottom","Left","Right","Top"} --//Every possible Enum face
  580. currentPlayer = nil --//Used for the Team-Check
  581. lplayer = players.LocalPlayer --//The LocalPlayer
  582. -- -----------------------------------------------------------------------------------
  583. players.PlayerAdded:Connect(function(p)
  584. currentPlayer = p
  585. p.CharacterAdded:Connect(function(character) --//For when a new Player joins the game
  586. createESP(character)
  587. end)
  588. end)
  589. -- -----------------------------------------------------------------------------------
  590. function checkPart(obj) if (obj:IsA("Part") or obj:IsA("MeshPart")) and obj.Name~="HumanoidRootPart" then return true end end --//Check if the Part is suitable
  591. -- -----------------------------------------------------------------------------------
  592. function actualESP(obj)
  593.  
  594. for i=0,5 do
  595. surface = Instance.new("SurfaceGui",obj) --//Creates the SurfaceGui
  596. surface.Face = Enum.NormalId[faces[i+1]] --//Adjusts the Face and chooses from the face table
  597. surface.AlwaysOnTop = true
  598.  
  599. frame = Instance.new("Frame",surface) --//Creates the viewable Frame
  600. frame.Size = UDim2.new(1,0,1,0)
  601. frame.BorderSizePixel = 0
  602. frame.BackgroundTransparency = TRANSPARENCY
  603. if currentPlayer.Team == players.LocalPlayer.Team then --//Checks the Players Team
  604. frame.BackgroundColor3 = Color3.new(ALLYCOLOR[1],ALLYCOLOR[2],ALLYCOLOR[3]) --//If in same Team
  605. else
  606. frame.BackgroundColor3 = Color3.new(ENEMYCOLOR[1],ENEMYCOLOR[2],ENEMYCOLOR[3]) --//If in another Team
  607. end
  608.  
  609. end
  610. end
  611. -- -----------------------------------------------------------------------------------
  612. function createHealthbar(hrp)
  613. board =Instance.new("BillboardGui",hrp) --//Creates the BillboardGui with HumanoidRootPart as the Parent
  614. board.Name = "total"
  615. board.Size = UDim2.new(1,0,1,0)
  616. board.StudsOffset = Vector3.new(3,1,0)
  617. board.AlwaysOnTop = true
  618.  
  619. bar = Instance.new("Frame",board) --//Creates the red background
  620. bar.BackgroundColor3 = Color3.new(255,0,0)
  621. bar.BorderSizePixel = 0
  622. bar.Size = UDim2.new(0.2,0,4,0)
  623. bar.Name = "total2"
  624.  
  625. health = Instance.new("Frame",bar) --//Creates the changing green Frame
  626. health.BackgroundColor3 = Color3.new(0,255,0)
  627. health.BorderSizePixel = 0
  628. health.Size = UDim2.new(1,0,hrp.Parent.Humanoid.Health/100,0)
  629. hrp.Parent.Humanoid.Changed:Connect(function(property) --//Triggers when any Property changed
  630. hrp.total.total2.Frame.Size = UDim2.new(1,0,hrp.Parent.Humanoid.Health/100,0) --//Adjusts the size of the green Frame
  631. end)
  632. end
  633. -- -----------------------------------------------------------------------------------
  634. function createESP(c) --//Checks and calls the proper function
  635. bugfix = c:WaitForChild("Head") --// *Used so the children of the character arent nil.
  636. for i,v in pairs(c:GetChildren()) do
  637. if checkPart(v) then
  638. actualESP(v)
  639. end
  640. end
  641. if HEALTHBAR_ACTIVATED then --//If the user decided to
  642. createHealthbar(c:WaitForChild("HumanoidRootPart")) --//Calls the function of the creation
  643. end
  644. end
  645. -- -----------------------------------------------------------------------------------
  646. for i,people in pairs(players:GetChildren())do
  647. if people ~= players.LocalPlayer then
  648. currentPlayer = people
  649. --//Used for Players already in the Game
  650. createESP(people.Character)
  651. people.CharacterAdded:Connect(function(character)
  652. createESP(character)
  653. end)
  654. end
  655. end
  656. -- -----------------------------------------------------------------------------------
  657. end --//End of the entire function
  658.  
  659. createFlex() --// Does exactly that :)
  660. end)
  661.  
  662. BuildTools.Name = "Build Tools"
  663. BuildTools.Parent = ScreenGui
  664. BuildTools.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  665. BuildTools.Position = UDim2.new(0.00149087608, 0, 0.222085863, 0)
  666. BuildTools.Size = UDim2.new(0, 133, 0, 31)
  667. BuildTools.Font = Enum.Font.SourceSans
  668. BuildTools.Text = "BTOOLS"
  669. BuildTools.TextColor3 = Color3.fromRGB(255, 0, 0)
  670. BuildTools.TextSize = 37.000
  671. NAMEOFBUTTONHERE.MouseButton1Down:connect(function()
  672. Instance.new("HopperBin", game.Players.LocalPlayer.Backpack).BinType = 2
  673. Instance.new("HopperBin", game.Players.LocalPlayer.Backpack).BinType = 3
  674. Instance.new("HopperBin", game.Players.LocalPlayer.Backpack).BinType = 4
  675.  
  676. local plr = game:GetService("Players").LocalPlayer
  677. local mouse = plr:GetMouse()
  678.  
  679. local tool = Instance.new("Tool")
  680. tool.RequiresHandle = false
  681. tool.Name = "Click Teleport"
  682.  
  683. tool.Activated:Connect(function()
  684. local root = plr.Character.HumanoidRootPart
  685. local pos = mouse.Hit.Position+Vector3.new(0,2.5,0)
  686. local offset = pos-root.Position
  687. root.CFrame = root.CFrame+offset
  688. end)
  689.  
  690. tool.Parent = plr.Backpack
  691. end)
  692.  
  693. ScrollingFrame.Parent = ScreenGui
  694. ScrollingFrame.Active = true
  695. ScrollingFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  696. ScrollingFrame.Position = UDim2.new(0.00154887466, 0, 0.349693298, 0)
  697. ScrollingFrame.Size = UDim2.new(0, 132, 0, 179)
  698. ScrollingFrame.CanvasSize = UDim2.new(0, 0, 1, 0)
  699.  
  700. Arsenal.Name = "Arsenal"
  701. Arsenal.Parent = ScrollingFrame
  702. Arsenal.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  703. Arsenal.Position = UDim2.new(9.31322575e-10, 0, 0.0515337437, 0)
  704. Arsenal.Size = UDim2.new(0, 117, 0, 50)
  705. Arsenal.Font = Enum.Font.SourceSans
  706. Arsenal.Text = "Arsenal Script"
  707. Arsenal.TextColor3 = Color3.fromRGB(255, 0, 0)
  708. Arsenal.TextSize = 14.000
  709. Arsenal.MouseButton1Down:connect(function()
  710. loadstring(game:HttpGet(("https://raw.githubusercontent.com/NotZyrex/Zyrex-Hub/master/Main.lua"), true))();
  711. end)
  712.  
  713. mmtwo.Name = "mmtwo"
  714. mmtwo.Parent = ScrollingFrame
  715. mmtwo.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  716. mmtwo.Position = UDim2.new(0.0152671766, 0, 0.238306746, 0)
  717. mmtwo.Size = UDim2.new(0, 117, 0, 50)
  718. mmtwo.Font = Enum.Font.SourceSans
  719. mmtwo.Text = "Murder Mystery 2"
  720. mmtwo.TextColor3 = Color3.fromRGB(255, 0, 0)
  721. mmtwo.TextSize = 25.000
  722. mmtwo.TextWrapped = true
  723. mmtwo.MouseButton1Down:connect(function()
  724. repeat wait() until game.Players.LocalPlayer.Character
  725. url = "https://raw.githubusercontent.com/xennyy/Xenny-Ware/main/loader.lua"
  726. loadstring(game:HttpGet(url))()
  727. end)
  728.  
  729. babftauto.Name = "babftauto"
  730. babftauto.Parent = ScrollingFrame
  731. babftauto.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  732. babftauto.Position = UDim2.new(0.0152671766, 0, 0.175306752, 0)
  733. babftauto.Size = UDim2.new(0, 117, 0, 50)
  734. babftauto.Font = Enum.Font.SourceSans
  735. babftauto.Text = "Build A Boat For Treasure Autofarm"
  736. babftauto.TextColor3 = Color3.fromRGB(255, 255, 255)
  737. babftauto.TextSize = 17.000
  738. babftauto.TextWrapped = true
  739. babftauto.MouseButton1Down:connect(function()
  740. local TweenService = game:GetService('TweenService')
  741.  
  742.  
  743. spawn(function()
  744. local debounce = false
  745. game:GetService('RunService').RenderStepped:Connect(function()
  746. if debounce == true then
  747. return
  748. end
  749. debounce = true
  750.  
  751. local plr = game.Players.LocalPlayer
  752. local char = plr.Character
  753.  
  754. char.HumanoidRootPart.CFrame = CFrame.new(-55.7047195, -9.92602158, -274.044922, -0.999055862, 2.2645871e-08, 0.0434471555, 2.07044444e-08, 1, -4.51347049e-08, -0.0434471555, -4.41925856e-08, -0.999055862) + Vector3.new(0, 50, 0)
  755. wait(1)
  756. TweenService:Create(char.HumanoidRootPart, TweenInfo.new(30), {CFrame = CFrame.new(-62.3435783, 37.1261864, 9309.92871, 0.966365039, -8.40041281e-09, 0.257176876, 2.07044444e-08, 1, -4.51347049e-08, -0.257176876, 4.89412777e-08, 0.966365039)}):Play()
  757. wait(29)
  758. TweenService:Create(char.HumanoidRootPart, TweenInfo.new(2), {CFrame = CFrame.new(-56.427002, -360.430267, 9483.74902, -0.999547422, 4.76316799e-08, 0.0300814454, 4.78301097e-08, 1, 5.87685989e-09, -0.0300814454, 7.31299954e-09, -0.999547422)}):Play()
  759. wait(20)
  760. debounce = false
  761. end)
  762. end)
  763. end)
  764.  
  765. PetSimX.Name = "PetSimX"
  766. PetSimX.Parent = ScrollingFrame
  767. PetSimX.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  768. PetSimX.Position = UDim2.new(0.0152671766, 0, 0.113306746, 0)
  769. PetSimX.Size = UDim2.new(0, 117, 0, 50)
  770. PetSimX.Font = Enum.Font.SourceSans
  771. PetSimX.Text = "Pet Sim X"
  772. PetSimX.TextColor3 = Color3.fromRGB(255, 255, 255)
  773. PetSimX.TextSize = 14.000
  774. PetSimX.MouseButton1Down:connect(function()
  775. loadstring(game:HttpGet("https://pastebin.com/raw/95HthyJq"))()
  776. end)
  777.  
  778. BSS.Name = "BSS"
  779. BSS.Parent = ScrollingFrame
  780. BSS.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  781. BSS.Position = UDim2.new(0.0019552242, 0, 0.299386531, 0)
  782. BSS.Size = UDim2.new(0, 119, 0, 50)
  783. BSS.Font = Enum.Font.SourceSans
  784. BSS.Text = "Bee Swarm Simulator"
  785. BSS.TextColor3 = Color3.fromRGB(255, 255, 255)
  786. BSS.TextSize = 25.000
  787. BSS.TextWrapped = true
  788. BSS.MouseButton1Down:connect(function()
  789. (print) "jello world"
  790. end)
  791.  
  792. ninja.Name = "ninja"
  793. ninja.Parent = ScrollingFrame
  794. ninja.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  795. ninja.Position = UDim2.new(0.0019551944, 0, 0.360736221, 0)
  796. ninja.Size = UDim2.new(0, 119, 0, 50)
  797. ninja.Font = Enum.Font.SourceSans
  798. ninja.Text = "Ninja legends unlock all elements and items"
  799. ninja.TextColor3 = Color3.fromRGB(255, 255, 255)
  800. ninja.TextSize = 15.000
  801. ninja.TextWrapped = true
  802. local library = loadstring(game:HttpGet("https://pastebin.com/raw/eWKgbdix",true))()
  803. library.options.underlinecolor = "rainbow"
  804.  
  805. -- Farming tab
  806. local Farming = library:CreateWindow("Farming")
  807. local Swing = Farming:Toggle("Auto-Swing", {flag = "Swing"}) -- Farming.flags.Swing
  808. local Sell = Farming:Toggle("Auto-Sell", {flag = "Sell"}) -- Farming.flags.Sell
  809. local BackpackFull = Farming:Toggle("Auto-Full Sell", {flag = "FullBackpack"}) --Farming.flags.FullBackpack
  810. local Boss = Farming:Toggle("Auto-Boss", {flag = "Boss"}) -- Farming.flags.Boss
  811.  
  812. Farming:Section("--== Chi & Coins ==--")
  813.  
  814. Farming:Dropdown("Collect", {
  815. location = _G,
  816. flag = "Collection",
  817. list = {"Chi", "Coins", "Both"}
  818. }, function(Yeet) print("Selected type:", Yeet) end)
  819. -- _G.Collection
  820.  
  821. local Spawned = Farming:Toggle("Collect Spawned Things", {flag = "Spawn"}) -- Farming.flags.Spawn
  822. local Hoops = Farming:Toggle("Collect Hoops", {flag = "Hoop"}) -- _G.Collection
  823.  
  824. -- Auto Buy Tab
  825. local AutoBuy = library:CreateWindow("Auto Buy")
  826. local Enabled = AutoBuy:Toggle("Auto-Purchase", {flag = "Purchase"}) -- AutoBuy.flags.Purchase
  827. local Sword = AutoBuy:Toggle("Auto-Sword", {flag = "Sword"}) -- AutoBuy.flags.Sword
  828. local Belt = AutoBuy:Toggle("Auto-Belt", {flag = "Belt"}) -- AutoBuy.flags.Belt
  829. local Rank = AutoBuy:Toggle("Auto-Rank", {flag = "Rank"}) -- AutoBuy.flags.Rank
  830. local Skill = AutoBuy:Toggle("Auto-Skills", {flag = "Skill"}) -- AutoBuy.flags.Skill
  831. local Shuriken = AutoBuy:Toggle("Auto-Shurikens", {flag = "Shurikens"}) --AutoBuy.flags.Shurikens
  832. _G.Enabled = AutoBuy.flags.Purchase
  833. _G.Sword = AutoBuy.flags.Sword
  834. _G.Belt = AutoBuy.flags.Belt
  835. _G.Rank = AutoBuy.flags.Rank
  836. _G.Skill = AutoBuy.flags.Skill
  837.  
  838. -- Misc
  839. local Misc = library:CreateWindow("Misc")
  840. Misc:Section("--== Pets ==--")
  841.  
  842. Misc:Dropdown("Eggs", {location = _G, flag = "Egg", list = {
  843. "Blue Crystal",
  844. "Purple Crystal",
  845. "Orange Crystal",
  846. "Enchanted Crystal",
  847. "Astral Crystal",
  848. "Golden Crystal",
  849. "Inferno Crystal",
  850. "Galaxy Crystal",
  851. "Frozen Crystal",
  852. "Eternal Crystal"
  853. }
  854. }, function(new) print("Selected Egg:", new) end)
  855.  
  856. local Eggs = Misc:Toggle("Open Eggs", {flag = "TEgg"}) -- Misc.flags.TEgg
  857. local Basic = Misc:Toggle("Sell Basic", {flag = "SBasic"}) --Misc.flags.SBasic
  858. local Advanced = Misc:Toggle("Sell Advanced", {flag = "SAdvanced"}) --Misc.flags.SAdvanced
  859. local Rare = Misc:Toggle("Sell Rare", {flag = "SRare"}) --Misc.flags.SRare
  860. local Epic = Misc:Toggle("Sell Epic", {flag = "SEpic"}) --Misc.flags.SEpic
  861. local Unique = Misc:Toggle("Sell Unique", {flag = "SUnique"})
  862. local Evolve = Misc:Toggle("Auto-Evolve", {flag = "Evolve"}) -- Misc.flags.TEgg
  863. local Eternalise = Misc:Toggle("Auto-Eternalise", {flag = "Eternalise"}) -- Misc.flags.Eternalise
  864.  
  865. Misc:Section("--== Other Stuff ==--")
  866.  
  867. local PetGlitch = Misc:Button("Pet Glitch", function()
  868. _G.Glitch = true
  869. while _G.Glitch == true do
  870. wait(.03)
  871. for i,v in pairs(game.Workspace.spawnedCoins.Valley:GetChildren()) do
  872. if v.Name == "Blue Chi Crate" then
  873. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v.Position)
  874. wait(.16)
  875. end
  876. end
  877. end
  878. end)
  879.  
  880. local PetGlitch2 = Misc:Button("Disable Pet Glitch", function()
  881. _G.Glitch = false
  882. end)
  883.  
  884. local MaxJump = Misc:Button("Max Jump", function()
  885. while true do
  886. wait(.001)
  887. game.Players.LocalPlayer.multiJumpCount.Value = "50"
  888. end
  889. end)
  890.  
  891. local UnlockIsland = Misc:Button("Unlock Islands", function()
  892. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Workspace").islandUnlockParts["Enchanted Island"].CFrame
  893. wait(.7)
  894. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Workspace").islandUnlockParts["Astral Island"].CFrame
  895. wait(.7)
  896. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Workspace").islandUnlockParts["Mystical Island"].CFrame
  897. wait(.7)
  898. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Workspace").islandUnlockParts["Space Island"].CFrame
  899. wait(.7)
  900. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Workspace").islandUnlockParts["Tundra Island"].CFrame
  901. wait(.7)
  902. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Workspace").islandUnlockParts["Eternal Island"].CFrame
  903. end)
  904.  
  905. local StatEffects = Misc:Button("Toggle Stat Effects", function()
  906. game:GetService("Players").LocalPlayer.PlayerGui.statEffectsGui.Enabled = not game:GetService("Players").LocalPlayer.PlayerGui.statEffectsGui.Enabled
  907. game:GetService("Players").LocalPlayer.PlayerGui.hoopGui.Enabled = not game:GetService("Players").LocalPlayer.PlayerGui.hoopGui.Enabled
  908. end)
  909.  
  910.  
  911. Misc:Section("--== Settings ==--")
  912.  
  913. Misc:Bind("Toggle Gui",
  914. {flag = "Toggle", kbonly = true, default = Enum.KeyCode.LeftControl},
  915. function()
  916. game:GetService("CoreGui").ScreenGui.Container.Visible = not game:GetService("CoreGui").ScreenGui.Container.Visible
  917. end)
  918.  
  919.  
  920. -- Teleports
  921. local Teleports = library:CreateWindow("Teleports")
  922.  
  923. Teleports:Section("--== Utilitys ==--")
  924. local Shop = Teleports:Button("Shop", function()
  925. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Workspace").shopAreaCircle5.circleInner.CFrame
  926. end)
  927.  
  928. local KOTH = Teleports:Button("King Of The Hill", function()
  929. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Workspace").kingOfTheHillPart.CFrame
  930. end)
  931.  
  932. Teleports:Section("--== Worlds ==--")
  933.  
  934. local EnchantedIsland = Teleports:Button("Enchanted Island", function()
  935. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Workspace").islandUnlockParts["Enchanted Island"].CFrame
  936. end)
  937.  
  938. local AstralIsland = Teleports:Button("Astral Island", function()
  939. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Workspace").islandUnlockParts["Astral Island"].CFrame
  940. end)
  941.  
  942. local MysticalIsland = Teleports:Button("Mystical Island", function()
  943. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Workspace").islandUnlockParts["Mystical Island"].CFrame
  944. end)
  945.  
  946. local SpaceIsland = Teleports:Button("Space Island", function()
  947. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Workspace").islandUnlockParts["Space Island"].CFrame
  948. end)
  949.  
  950. local TundraIsland = Teleports:Button("Tundra Island", function()
  951. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Workspace").islandUnlockParts["Tundra Island"].CFrame
  952. end)
  953.  
  954. local EternalIsland = Teleports:Button("Eternal Island", function()
  955. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Workspace").islandUnlockParts["Eternal Island"].CFrame
  956. end)
  957.  
  958.  
  959. Teleports:Section("--== Chests ==--")
  960.  
  961. local EternalChest = Teleports:Button("Eternal Chest", function()
  962. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.workspace.eternalChest.chestNamePart.CFrame
  963. end)
  964.  
  965. local MythicalChest = Teleports:Button("Legends Chest", function()
  966. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.workspace.legendsChest.chestNamePart.CFrame
  967. end)
  968.  
  969. local MythicalChest = Teleports:Button("Mythical Chest", function()
  970. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.workspace.mythicalChest.chestNamePart.CFrame
  971. end)
  972.  
  973. local GoldenChest = Teleports:Button("Golden Chest", function()
  974. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.workspace.goldenChest.chestNamePart.CFrame
  975. end)
  976.  
  977. local EnchantedChest = Teleports:Button("Enchanted Chest", function()
  978. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.workspace.enchantedChest.chestNamePart.CFrame
  979. end)
  980.  
  981. local MagmaChest = Teleports:Button("Magma Chest", function()
  982. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.workspace.magmaChest.chestNamePart.CFrame
  983. end)
  984.  
  985. local DailyRewards = Teleports:Button("Daily Rewards", function()
  986. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.workspace["Daily Chest"].chestNamePart.CFrame
  987. end)
  988.  
  989. local GroupRewards = Teleports:Button("Group Rewards", function()
  990. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.workspace.groupRewardsCircle.circleInner.CFrame
  991. end)
  992.  
  993.  
  994.  
  995. local rs = game:GetService("RunService").RenderStepped
  996.  
  997. spawn(function()
  998. while wait(1) do
  999. if Misc.flags.TEgg then
  1000. -- This script was generated by Hydroxide
  1001. local oh1 = "openCrystal"
  1002. local oh2 = _G.Egg
  1003. print("Purchased", _G.Egg)
  1004. game:GetService("ReplicatedStorage").rEvents.openCrystalRemote:InvokeServer(oh1, oh2)
  1005. end
  1006. end
  1007. end)
  1008. spawn(function()
  1009. while wait() do
  1010. if Farming.flags.Swing then
  1011. if game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool") then
  1012. game.Players.LocalPlayer.ninjaEvent:FireServer("swingKatana")
  1013. else
  1014. for i,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  1015. if v.ClassName == "Tool" and v:FindFirstChild("attackShurikenScript") then
  1016. game.Players.LocalPlayer.Character.Humanoid:EquipTool(v)
  1017. wait()
  1018. if v.ClassName == "Tool" and v:FindFirstChild("attackKatanaScript") then
  1019. game.Players.LocalPlayer.Character.Humanoid:EquipTool(v)
  1020. end
  1021.  
  1022. end
  1023. end
  1024. end
  1025. end
  1026. end
  1027. end)
  1028.  
  1029. spawn(function()
  1030. while wait(0.1) do
  1031. if Farming.flags.Sell then
  1032. if Farming.flags.FullBackpack == false then
  1033. if game.Players.LocalPlayer.Character:findFirstChild("HumanoidRootPart") then
  1034. game.workspace["sellAreaCircle"].circleInner.CFrame = game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").CFrame
  1035. end
  1036. else
  1037. local Values = string.split(game:GetService("Players").LocalPlayer.PlayerGui.gameGui.currencyFrame.strengthFrame.amountLabel.Text, "/")
  1038. if Values[1] == Values[2] then
  1039. if game.Players.LocalPlayer.Character:findFirstChild("HumanoidRootPart") then
  1040. game.workspace["sellAreaCircle"].circleInner.CFrame = game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").CFrame
  1041. end
  1042.  
  1043. end
  1044. end
  1045. end
  1046. end
  1047. end)
  1048.  
  1049. spawn(function()
  1050. while rs:wait() do
  1051. if Farming.flags.Boss then
  1052. if game:GetService("Workspace").bossFolder:WaitForChild("RobotBoss"):WaitForChild("HumanoidRootPart") then
  1053. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.bossFolder.RobotBoss.HumanoidRootPart.CFrame
  1054. else
  1055. wait(1)
  1056. end
  1057.  
  1058. end
  1059. end
  1060. end)
  1061.  
  1062. spawn(function()
  1063. while wait(0.5) do
  1064. if AutoBuy.flags.Purchase then
  1065. if AutoBuy.flags.Sword then
  1066. -- This script was generated by Hydroxide
  1067. local oh1 = "buyAllSwords"
  1068. local oh2 = {"Ground", "Astral Island", "Space Island","Tundra Island", "Eternal Island"}
  1069. for i = 1,#oh2 do
  1070. game:GetService("Players").LocalPlayer.ninjaEvent:FireServer(oh1, oh2[i])
  1071. end
  1072. end
  1073. end
  1074. end
  1075. end)
  1076.  
  1077. spawn(function()
  1078. while wait(0.5) do
  1079. if AutoBuy.flags.Purchase then
  1080. if AutoBuy.flags.Belt then
  1081. -- This script was generated by Hydroxide
  1082. local oh1 = "buyAllBelts"
  1083. local oh2 = {"Ground", "Astral Island", "Space Island","Tundra Island", "Eternal Island"}
  1084. for i = 1,#oh2 do
  1085. game:GetService("Players").LocalPlayer.ninjaEvent:FireServer(oh1, oh2[i])
  1086. end
  1087. end
  1088. end
  1089. end
  1090. end)
  1091.  
  1092. spawn(function()
  1093. while wait(0.5) do
  1094. if AutoBuy.flags.Purchase then
  1095. if AutoBuy.flags.Skill then
  1096. -- This script was generated by Hydroxide
  1097. local oh1 = "buyAllSkills"
  1098. local oh2 = {"Ground", "Astral Island", "Space Island","Tundra Island", "Eternal Island"}
  1099. for i = 1,#oh2 do
  1100. game:GetService("Players").LocalPlayer.ninjaEvent:FireServer(oh1, oh2[i])
  1101. end
  1102. end
  1103. end
  1104. end
  1105. end)
  1106.  
  1107. spawn(function()
  1108. while wait(0.5) do
  1109. if AutoBuy.flags.Purchase then
  1110. if AutoBuy.flags.Rank then
  1111. -- This script was generated by Hydroxide
  1112. local oh1 = "buyRank"
  1113. local oh2 = game:GetService("ReplicatedStorage").Ranks.Ground:GetChildren()
  1114. for i = 1,#oh2 do
  1115. game:GetService("Players").LocalPlayer.ninjaEvent:FireServer(oh1, oh2[i].Name)
  1116. end
  1117. end
  1118. end
  1119. end
  1120. end)
  1121.  
  1122. spawn(function()
  1123. while wait(0.5) do
  1124. if AutoBuy.flags.Purchase then
  1125. if AutoBuy.flags.Shurikens then
  1126. -- This script was generated by Hydroxide
  1127. local oh1 = "buyAllShurikens"
  1128. local oh2 = {"Ground", "Astral Island", "Space Island","Tundra Island", "Eternal Island"}
  1129. for i = 1,#oh2 do
  1130. game:GetService("Players").LocalPlayer.ninjaEvent:FireServer(oh1, oh2[i])
  1131. end
  1132. end
  1133. end
  1134. end
  1135. end)
  1136.  
  1137. spawn(function()
  1138. while wait(0.1) do
  1139. if Farming.flags.Spawn then
  1140. if _G.Collection == "Coins" then
  1141. for i, v in pairs(game.Workspace.spawnedCoins.Valley:GetChildren()) do
  1142. wait(0.1)
  1143. if string.match(v.Name, "Coin") == "Coin" then
  1144. if Farming.flags.Spawn then
  1145. if game.Players.LocalPlayer.Character:findFirstChild("HumanoidRootPart") then
  1146. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.CFrame
  1147. end
  1148. end
  1149. end
  1150. end
  1151. end
  1152. if _G.Collection == "Chi" then
  1153. for i, v in pairs(game.Workspace.spawnedCoins.Valley:GetChildren()) do
  1154. wait(0.01)
  1155. if string.match(v.Name, "Blue Chi Crate") == "Blue Chi Crate" then
  1156. if Farming.flags.Spawn then
  1157. if game.Players.LocalPlayer.Character:findFirstChild(
  1158. "HumanoidRootPart") then
  1159. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.CFrame
  1160. end
  1161. end
  1162. end
  1163. end
  1164. end
  1165. if _G.Collection == "Both" then
  1166. for i, v in pairs(game.Workspace.spawnedCoins.Valley:GetChildren()) do
  1167. wait(0.1)
  1168. if Farming.flags.Spawn then
  1169. if game.Players.LocalPlayer.Character:findFirstChild(
  1170. "HumanoidRootPart") then
  1171. game.Players.LocalPlayer.Character
  1172. .HumanoidRootPart.CFrame = v.CFrame
  1173. end
  1174. end
  1175. end
  1176. end
  1177. end
  1178. end
  1179. end)
  1180.  
  1181. spawn(function()
  1182. while wait(0.1) do
  1183. if _G.Collection then
  1184. if _G.Collection == "Coin" then
  1185. local stuff = workspace.Hoops:getChildren()
  1186. for i = 1, #stuff do
  1187. if _G.Collection then
  1188. if string.match(stuff[i].Name, "Coin") == "Coin" then
  1189. for i = 1, 10 do
  1190. if game.Players.LocalPlayer.Character:findFirstChild("HumanoidRootPart") then
  1191. stuff[i].touchPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  1192. wait(0.1)
  1193. end
  1194. end
  1195. end
  1196. end
  1197. wait()
  1198. end
  1199. end
  1200. if _G.Collection == "Chi" then
  1201. local stuff = workspace.Hoops:getChildren()
  1202. for i = 1, #stuff do
  1203. if _G.Collection then
  1204. if string.match(stuff[i].Name, "Chi") == "Chi" then
  1205. for i = 1, 10 do
  1206. if game.Players.LocalPlayer.Character:findFirstChild("HumanoidRootPart") then
  1207. stuff[i].touchPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  1208. wait(0.1)
  1209. end
  1210. end
  1211. end
  1212. end
  1213. wait()
  1214. end
  1215. end
  1216. if _G.Collection == "Both" then
  1217. local stuff = workspace.Hoops:getChildren()
  1218. for i = 1, #stuff do
  1219. if _G.Collection then
  1220. for i = 1, 10 do
  1221. if game.Players.LocalPlayer.Character:findFirstChild("HumanoidRootPart") then
  1222. stuff[i].touchPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  1223. wait(0.1)
  1224. end
  1225. end
  1226. end
  1227. wait()
  1228. end
  1229. end
  1230. end
  1231. end
  1232. end)
  1233.  
  1234. spawn(function()
  1235. while wait(3) do
  1236. if Misc.flags.Evolve then
  1237. for i,v in pairs(game:GetService("Players").LocalPlayer.petsFolder:GetChildren()) do
  1238. for i,x in pairs(v:GetChildren()) do
  1239. local oh1 = "evolvePet"
  1240. local oh2 = x.Name
  1241. game:GetService("ReplicatedStorage").rEvents.petEvolveEvent:FireServer(oh1, oh2)
  1242. end
  1243. end
  1244. end
  1245. end
  1246. end)
  1247. spawn(function()
  1248. while wait(3) do
  1249. if Misc.flags.Eternalise then
  1250. for i,v in pairs(game:GetService("Players").LocalPlayer.petsFolder:GetChildren()) do
  1251. for i,x in pairs(v:GetChildren()) do
  1252. -- This script was generated by Hydroxide
  1253. local oh1 = "eternalizePet"
  1254. local oh2 = v.Name
  1255. game:GetService("ReplicatedStorage").rEvents.petEternalizeEvent:FireServer(oh1, oh2)
  1256. end
  1257. end
  1258. end
  1259. end
  1260. end)
  1261.  
  1262. spawn(function()
  1263. while wait(1) do
  1264. if Misc.flags.SBasic then
  1265. for i,v in pairs(game.Players.LocalPlayer.petsFolder.Basic:GetChildren()) do
  1266. game.ReplicatedStorage.rEvents.sellPetEvent:FireServer("sellPet", v)
  1267. end
  1268. end
  1269. end
  1270. end
  1271. )
  1272. spawn(function()
  1273. while wait(1) do
  1274. if Misc.flags.SAdvanced then
  1275. for i,v in pairs(game.Players.LocalPlayer.petsFolder.Advanced:GetChildren()) do
  1276. game.ReplicatedStorage.rEvents.sellPetEvent:FireServer("sellPet", v)
  1277. end
  1278. end
  1279. end
  1280. end
  1281. )
  1282. spawn(function()
  1283. while wait(1) do
  1284. if Misc.flags.SRare then
  1285. for i,v in pairs(game.Players.LocalPlayer.petsFolder.Rare:GetChildren()) do
  1286. game.ReplicatedStorage.rEvents.sellPetEvent:FireServer("sellPet", v)
  1287. end
  1288. end
  1289. end
  1290. end)
  1291. spawn(function()
  1292. while wait(1) do
  1293. if Misc.flags.SEpic then
  1294. for i,v in pairs(game.Players.LocalPlayer.petsFolder.Epic:GetChildren()) do
  1295. game.ReplicatedStorage.rEvents.sellPetEvent:FireServer("sellPet", v)
  1296. end
  1297. end
  1298. end
  1299. end)
  1300. spawn(function()
  1301. while wait(1) do
  1302. if Misc.flags.SUnique then
  1303. for i,v in pairs(game.Players.LocalPlayer.petsFolder.Unique:GetChildren()) do
  1304. game.ReplicatedStorage.rEvents.sellPetEvent:FireServer("sellPet", v)
  1305. end
  1306. end
  1307. end
  1308. end)
  1309.  
  1310. local vu = game:GetService("VirtualUser")
  1311. game:GetService("Players").LocalPlayer.Idled:connect(
  1312. function()
  1313. vu:Button2Down(Vector2.new(0, 0), workspace.CurrentCamera.CFrame)
  1314. wait(1)
  1315. vu:Button2Up(Vector2.new(0, 0), workspace.CurrentCamera.CFrame)
  1316. end)
  1317. end)
  1318.  
  1319. GBS.Name = "GBS"
  1320. GBS.Parent = ScrollingFrame
  1321. GBS.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  1322. GBS.Position = UDim2.new(-0.00200000009, 0, 0, 0)
  1323. GBS.Size = UDim2.new(0, 112, 0, 41)
  1324. GBS.Font = Enum.Font.SourceSans
  1325. GBS.Text = "Game Based Scripts"
  1326. GBS.TextColor3 = Color3.fromRGB(255, 0, 0)
  1327. GBS.TextSize = 18.000
  1328.  
  1329. Jump.Name = "Jump"
  1330. Jump.Parent = ScreenGui
  1331. Jump.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1332. Jump.Position = UDim2.new(-0.00133922999, 0, 0.569325149, 0)
  1333. Jump.Size = UDim2.new(0, 137, 0, 68)
  1334. Jump.Font = Enum.Font.SourceSans
  1335. Jump.Text = "Infinity Jumps!"
  1336. Jump.TextColor3 = Color3.fromRGB(0, 0, 0)
  1337. Jump.TextSize = 26.000
  1338. Jump.TextWrapped = true
  1339. Jump.MouseButton1Down:connect(function()
  1340. local InfiniteJumpEnabled = true
  1341. game:GetService("UserInputService").JumpRequest:connect(function()
  1342. if InfiniteJumpEnabled then
  1343. game:GetService"Players".LocalPlayer.Character:FindFirstChildOfClass'Humanoid':ChangeState("Jumping")
  1344. end
  1345. end)
  1346. end)
Add Comment
Please, Sign In to add comment