Advertisement
Guest User

Arsenal Roblox Script 2024

a guest
Sep 15th, 2024
65,475
1
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 47.42 KB | Gaming | 1 0
  1. local CoreGui = game:GetService("StarterGui")
  2. CoreGui:SetCore("SendNotification", {
  3. Title = "AdvanceTech Arsenal",
  4. Text = "Working For Mobile and PC Executor",
  5. Duration = 8,
  6. })
  7.  
  8. game:GetService("StarterGui"):SetCore("SendNotification", {
  9. Title = "Modify By:",
  10. Text = "AdvancedFalling Team",
  11. Icon = "rbxthumb://type=Asset&id=13508183954&w=150&h=150",
  12. Duration = 8,
  13. })
  14.  
  15.  
  16.  
  17. -- actual fly script
  18. local flySettings={fly=false,flyspeed=50}
  19. local c local h local bv local bav local cam local flying local p=game.Players.LocalPlayer
  20. local buttons={W=false,S=false,A=false,D=false,Moving=false}
  21. local startFly=function()if not p.Character or not p.Character.Head or flying then return end c=p.Character h=c.Humanoid h.PlatformStand=true cam=workspace:WaitForChild('Camera') bv=Instance.new("BodyVelocity") bav=Instance.new("BodyAngularVelocity") bv.Velocity,bv.MaxForce,bv.P=Vector3.new(0,0,0),Vector3.new(10000,10000,10000),1000 bav.AngularVelocity,bav.MaxTorque,bav.P=Vector3.new(0,0,0),Vector3.new(10000,10000,10000),1000 bv.Parent=c.Head bav.Parent=c.Head flying=true h.Died:connect(function()flying=false end)end
  22. local endFly=function()if not p.Character or not flying then return end h.PlatformStand=false bv:Destroy() bav:Destroy() flying=false end
  23. game:GetService("UserInputService").InputBegan:connect(function(input,GPE)if GPE then return end for i,e in pairs(buttons)do if i~="Moving" and input.KeyCode==Enum.KeyCode[i]then buttons[i]=true buttons.Moving=true end end end)
  24. game:GetService("UserInputService").InputEnded:connect(function(input,GPE)if GPE then return end local a=false for i,e in pairs(buttons)do if i~="Moving"then if input.KeyCode==Enum.KeyCode[i]then buttons[i]=false end if buttons[i]then a=true end end end buttons.Moving=a end)
  25. local setVec=function(vec)return vec*(flySettings.flyspeed/vec.Magnitude)end
  26. game:GetService("RunService").Heartbeat:connect(function(step)if flying and c and c.PrimaryPart then local p=c.PrimaryPart.Position local cf=cam.CFrame local ax,ay,az=cf:toEulerAnglesXYZ()c:SetPrimaryPartCFrame(CFrame.new(p.x,p.y,p.z)*CFrame.Angles(ax,ay,az))if buttons.Moving then local t=Vector3.new()if buttons.W then t=t+(setVec(cf.lookVector))end if buttons.S then t=t-(setVec(cf.lookVector))end if buttons.A then t=t-(setVec(cf.rightVector))end if buttons.D then t=t+(setVec(cf.rightVector))end c:TranslateBy(t*step)end end end)
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/bitef4/Recode/main/UI/Kavo_1.lua"))()
  34. local Window = Library.CreateLib("CHEATER.FUN | Arsenal | v1.6 ", "BlueTheme")
  35.  
  36. local Welcome = Window:NewTab("Main")
  37. local MainSection = Welcome:NewSection("Welcome To AdvanceTech | " .. game.Players.LocalPlayer.Name)
  38.  
  39. local HitboxSection = Welcome:NewSection("> Hitbox Settings <")
  40.  
  41. local hitboxEnabled = false
  42. local noCollisionEnabled = false
  43. local hitbox_original_properties = {}
  44. local hitboxSize = 21
  45. local hitboxTransparency = 6
  46. local teamCheck = "FFA"
  47.  
  48. local defaultBodyParts = {
  49. "UpperTorso",
  50. "Head",
  51. "HumanoidRootPart"
  52. }
  53.  
  54. local Players = game:GetService("Players")
  55. local LocalPlayer = Players.LocalPlayer
  56. local ScreenGui = Instance.new("ScreenGui", LocalPlayer.PlayerGui)
  57. local WarningText = Instance.new("TextLabel", ScreenGui)
  58.  
  59. WarningText.Size = UDim2.new(0, 200, 0, 50)
  60. WarningText.TextSize = 16
  61. WarningText.Position = UDim2.new(0.5, -150, 0, 0)
  62. WarningText.Text = "Warning: There may be a bug that causes collisions."
  63. WarningText.TextColor3 = Color3.new(1, 0, 0)
  64. WarningText.BackgroundTransparency = 1
  65. WarningText.Visible = false
  66.  
  67. -- -------------------------------------
  68. -- Utility Functions
  69. -- -------------------------------------
  70. local function savedPart(player, part)
  71. if not hitbox_original_properties[player] then
  72. hitbox_original_properties[player] = {}
  73. end
  74. if not hitbox_original_properties[player][part.Name] then
  75. hitbox_original_properties[player][part.Name] = {
  76. CanCollide = part.CanCollide,
  77. Transparency = part.Transparency,
  78. Size = part.Size
  79. }
  80. end
  81. end
  82.  
  83. local function restoredPart(player)
  84. if hitbox_original_properties[player] then
  85. for partName, properties in pairs(hitbox_original_properties[player]) do
  86. local part = player.Character and player.Character:FindFirstChild(partName)
  87. if part and part:IsA("BasePart") then
  88. part.CanCollide = properties.CanCollide
  89. part.Transparency = properties.Transparency
  90. part.Size = properties.Size
  91. end
  92. end
  93. end
  94. end
  95.  
  96. local function findClosestPart(player, partName)
  97. if not player.Character then return nil end
  98. local characterParts = player.Character:GetChildren()
  99. for _, part in ipairs(characterParts) do
  100. if part:IsA("BasePart") and part.Name:lower():match(partName:lower()) then
  101. return part
  102. end
  103. end
  104. return nil
  105. end
  106.  
  107. -- -------------------------------------
  108. -- Hitbox Functions
  109. -- -------------------------------------
  110. local function extendHitbox(player)
  111. for _, partName in ipairs(defaultBodyParts) do
  112. local part = player.Character and (player.Character:FindFirstChild(partName) or findClosestPart(player, partName))
  113. if part and part:IsA("BasePart") then
  114. savedPart(player, part)
  115. part.CanCollide = not noCollisionEnabled
  116. part.Transparency = hitboxTransparency / 10
  117. part.Size = Vector3.new(hitboxSize, hitboxSize, hitboxSize)
  118. end
  119. end
  120. end
  121.  
  122. local function isEnemy(player)
  123. if teamCheck == "FFA" or teamCheck == "Everyone" then
  124. return true
  125. end
  126. local localPlayerTeam = LocalPlayer.Team
  127. return player.Team ~= localPlayerTeam
  128. end
  129.  
  130. local function shouldExtendHitbox(player)
  131. return isEnemy(player)
  132. end
  133.  
  134. local function updateHitboxes()
  135. for _, v in ipairs(Players:GetPlayers()) do
  136. if v ~= LocalPlayer and v.Character and v.Character:FindFirstChild("HumanoidRootPart") then
  137. if shouldExtendHitbox(v) then
  138. extendHitbox(v)
  139. else
  140. restoredPart(v)
  141. end
  142. end
  143. end
  144. end
  145.  
  146. -- -------------------------------------
  147. -- Event Handlers
  148. -- -------------------------------------
  149. local function onCharacterAdded(character)
  150. task.wait(0.1)
  151. if hitboxEnabled then
  152. updateHitboxes()
  153. end
  154. end
  155.  
  156. local function onPlayerAdded(player)
  157. player.CharacterAdded:Connect(onCharacterAdded)
  158. player.CharacterRemoving:Connect(function()
  159. restoredPart(player)
  160. hitbox_original_properties[player] = nil
  161. end)
  162. end
  163.  
  164. local function checkForDeadPlayers()
  165. for player, properties in pairs(hitbox_original_properties) do
  166. if not player.Parent or not player.Character or not player.Character:IsDescendantOf(game) then
  167. restoredPart(player)
  168. hitbox_original_properties[player] = nil
  169. end
  170. end
  171. end
  172.  
  173. Players.PlayerAdded:Connect(onPlayerAdded)
  174.  
  175. for _, player in ipairs(Players:GetPlayers()) do
  176. onPlayerAdded(player)
  177. end
  178.  
  179. HitboxSection:NewButton("[CLICK THIS FIRST] Enable Hitbox", '?', function()
  180. coroutine.wrap(function()
  181. while true do
  182. if hitboxEnabled then
  183. updateHitboxes()
  184. checkForDeadPlayers()
  185. end
  186. task.wait(0.1)
  187. end
  188. end)()
  189. end)
  190.  
  191. HitboxSection:NewToggle("Enable Hitbox", '?', function(enabled)
  192. hitboxEnabled = enabled
  193. if not enabled then
  194. for _, player in ipairs(Players:GetPlayers()) do
  195. restoredPart(player)
  196. end
  197. hitbox_original_properties = {}
  198. else
  199. updateHitboxes()
  200. end
  201. end)
  202.  
  203. HitboxSection:NewSlider("Hitbox Size", '?', 25, 1, function(value)
  204. hitboxSize = value
  205. if hitboxEnabled then
  206. updateHitboxes()
  207. end
  208. end)
  209.  
  210. HitboxSection:NewSlider("Hitbox Transparency", '?', 10, 1, function(value)
  211. hitboxTransparency = value
  212. if hitboxEnabled then
  213. updateHitboxes()
  214. end
  215. end)
  216.  
  217. HitboxSection:NewDropdown("Team Check", '?', {"FFA", "Team-Based", "Everyone"}, function(value)
  218. teamCheck = value
  219. if hitboxEnabled then
  220. updateHitboxes()
  221. end
  222. end)
  223.  
  224. HitboxSection:NewToggle("No Collision", '?', function(enabled)
  225. noCollisionEnabled = enabled
  226. WarningText.Visible = enabled
  227. coroutine.wrap(function()
  228. while noCollisionEnabled do
  229. if hitboxEnabled then
  230. updateHitboxes()
  231. end
  232. task.wait(0.01)
  233. end
  234. if hitboxEnabled then
  235. updateHitboxes()
  236. end
  237. end)()
  238. end)
  239.  
  240. MainSection:NewToggle("AutoFarm", "?", function(bool) -- its really trash but it works man ok :<
  241. getgenv().AutoFarm = bool
  242.  
  243. local runServiceConnection
  244. local mouseDown = false
  245. local player = game.Players.LocalPlayer
  246. local camera = game.Workspace.CurrentCamera
  247.  
  248. game:GetService("ReplicatedStorage").wkspc.CurrentCurse.Value = bool and "Infinite Ammo" or ""
  249.  
  250. function getClosestEnemyPlayer()
  251. local closestDistance = math.huge
  252. local closestPlayer = nil
  253.  
  254. for _, enemyPlayer in pairs(game.Players:GetPlayers()) do
  255. if enemyPlayer ~= player and enemyPlayer.TeamColor ~= player.TeamColor and enemyPlayer.Character then
  256. local character = enemyPlayer.Character
  257. local humanoidRootPart = character:FindFirstChild("HumanoidRootPart")
  258. local humanoid = character:FindFirstChild("Humanoid")
  259. if humanoidRootPart and humanoid and humanoid.Health > 0 then
  260. local distance = (player.Character.HumanoidRootPart.Position - humanoidRootPart.Position).Magnitude
  261. if distance < closestDistance and humanoidRootPart.Position.Y >= 0 then
  262. closestDistance = distance
  263. closestPlayer = enemyPlayer
  264. end
  265. end
  266. end
  267. end
  268.  
  269. return closestPlayer
  270. end
  271.  
  272. local function startAutoFarm()
  273. game:GetService("ReplicatedStorage").wkspc.TimeScale.Value = 12
  274.  
  275. runServiceConnection = game:GetService("RunService").Stepped:Connect(function()
  276. if getgenv().AutoFarm then
  277. local closestPlayer = getClosestEnemyPlayer()
  278. if closestPlayer then
  279. local targetPosition = closestPlayer.Character.HumanoidRootPart.Position + Vector3.new(0, 0, -4)
  280. if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
  281. player.Character.HumanoidRootPart.CFrame = CFrame.new(targetPosition)
  282. camera.CFrame = CFrame.new(camera.CFrame.Position, closestPlayer.Character.Head.Position)
  283.  
  284. if not mouseDown then
  285. mouse1press()
  286. mouseDown = true
  287. end
  288. end
  289. else
  290. if mouseDown then
  291. mouse1release()
  292. mouseDown = false
  293. end
  294. end
  295. else
  296. if runServiceConnection then
  297. runServiceConnection:Disconnect()
  298. runServiceConnection = nil
  299. end
  300. if mouseDown then
  301. mouse1release()
  302. mouseDown = false
  303. end
  304. end
  305. end)
  306. end
  307.  
  308. local function onCharacterAdded(character)
  309. wait(0.5)
  310. startAutoFarm()
  311. end
  312.  
  313. player.CharacterAdded:Connect(onCharacterAdded)
  314.  
  315. if bool then
  316. wait(0.5)
  317. startAutoFarm()
  318. else
  319. game:GetService("ReplicatedStorage").wkspc.CurrentCurse.Value = ""
  320. getgenv().AutoFarm = false
  321. game:GetService("ReplicatedStorage").wkspc.TimeScale.Value = 1
  322. if runServiceConnection then
  323. runServiceConnection:Disconnect()
  324. runServiceConnection = nil
  325. end
  326. if mouseDown then
  327. mouse1release()
  328. mouseDown = false
  329. end
  330. end
  331. end)
  332.  
  333.  
  334.  
  335.  
  336. local Gun = Window:NewTab("Gun Modded")
  337. local GunmodsSection = Gun:NewSection("> Overpower Gun <")
  338.  
  339. GunmodsSection:NewToggle("Infinite Ammo v1", "?", function(v)
  340. game:GetService("ReplicatedStorage").wkspc.CurrentCurse.Value = v and "Infinite Ammo" or ""
  341. end)
  342.  
  343. local SettingsInfinite = false
  344. GunmodsSection:NewToggle("Infinite Ammo v2", "?", function(K)
  345. SettingsInfinite = K
  346. if SettingsInfinite then
  347. game:GetService("RunService").Stepped:connect(function()
  348. pcall(function()
  349. if SettingsInfinite then
  350. local playerGui = game:GetService("Players").LocalPlayer.PlayerGui
  351. playerGui.GUI.Client.Variables.ammocount.Value = 99
  352. playerGui.GUI.Client.Variables.ammocount2.Value = 99
  353. end
  354. end)
  355. end)
  356. end
  357. end)
  358.  
  359. local originalValues = { -- saves/stores the original Values of the gun value :3
  360. FireRate = {},
  361. ReloadTime = {},
  362. EReloadTime = {},
  363. Auto = {},
  364. Spread = {},
  365. Recoil = {}
  366. }
  367.  
  368. GunmodsSection:NewToggle("Fast Reload", "?", function(x)
  369. for _, v in pairs(game.ReplicatedStorage.Weapons:GetChildren()) do
  370. if v:FindFirstChild("ReloadTime") then
  371. if x then
  372. if not originalValues.ReloadTime[v] then
  373. originalValues.ReloadTime[v] = v.ReloadTime.Value
  374. end
  375. v.ReloadTime.Value = 0.01
  376. else
  377. if originalValues.ReloadTime[v] then
  378. v.ReloadTime.Value = originalValues.ReloadTime[v]
  379. else
  380. v.ReloadTime.Value = 0.8
  381. end
  382. end
  383. end
  384. if v:FindFirstChild("EReloadTime") then
  385. if x then
  386. if not originalValues.EReloadTime[v] then
  387. originalValues.EReloadTime[v] = v.EReloadTime.Value
  388. end
  389. v.EReloadTime.Value = 0.01
  390. else
  391. if originalValues.EReloadTime[v] then
  392. v.EReloadTime.Value = originalValues.EReloadTime[v]
  393. else
  394. v.EReloadTime.Value = 0.8
  395. end
  396. end
  397. end
  398. end
  399. end)
  400.  
  401. GunmodsSection:NewToggle("Fast Fire Rate", "?", function(state)
  402. for _, v in pairs(game.ReplicatedStorage.Weapons:GetDescendants()) do
  403. if v.Name == "FireRate" or v.Name == "BFireRate" then
  404. if state then
  405. if not originalValues.FireRate[v] then
  406. originalValues.FireRate[v] = v.Value
  407. end
  408. v.Value = 0.02
  409. else
  410. if originalValues.FireRate[v] then
  411. v.Value = originalValues.FireRate[v]
  412. else
  413. v.Value = 0.8
  414. end
  415. end
  416. end
  417. end
  418. end)
  419.  
  420. GunmodsSection:NewToggle("Always Auto", "?", function(state)
  421. for _, v in pairs(game.ReplicatedStorage.Weapons:GetDescendants()) do
  422. if v.Name == "Auto" or v.Name == "AutoFire" or v.Name == "Automatic" or v.Name == "AutoShoot" or v.Name == "AutoGun" then
  423. if state then
  424. if not originalValues.Auto[v] then
  425. originalValues.Auto[v] = v.Value
  426. end
  427. v.Value = true
  428. else
  429. if originalValues.Auto[v] then
  430. v.Value = originalValues.Auto[v]
  431. else
  432. v.Value = false
  433. end
  434. end
  435. end
  436. end
  437. end)
  438.  
  439. GunmodsSection:NewToggle("No Spread", "?", function(state)
  440. for _, v in pairs(game:GetService("ReplicatedStorage").Weapons:GetDescendants()) do
  441. if v.Name == "MaxSpread" or v.Name == "Spread" or v.Name == "SpreadControl" then
  442. if state then
  443. if not originalValues.Spread[v] then
  444. originalValues.Spread[v] = v.Value
  445. end
  446. v.Value = 0
  447. else
  448. if originalValues.Spread[v] then
  449. v.Value = originalValues.Spread[v]
  450. else
  451. v.Value = 1
  452. end
  453. end
  454. end
  455. end
  456. end)
  457.  
  458. GunmodsSection:NewToggle("No Recoil", "?", function(state)
  459. for _, v in pairs(game:GetService("ReplicatedStorage").Weapons:GetDescendants()) do
  460. if v.Name == "RecoilControl" or v.Name == "Recoil" then
  461. if state then
  462. if not originalValues.Recoil[v] then
  463. originalValues.Recoil[v] = v.Value
  464. end
  465. v.Value = 0
  466. else
  467. if originalValues.Recoil[v] then
  468. v.Value = originalValues.Recoil[v]
  469. else
  470. v.Value = 1
  471. end
  472. end
  473. end
  474. end
  475. end)
  476.  
  477.  
  478. local Player = Window:NewTab("Player")
  479. local PlayerSection = Player:NewSection("> Fly Hacks <")
  480. PlayerSection:NewToggle("Fly", "Allows the player to fly", function(state)
  481. if state then
  482. startFly()
  483. else
  484. endFly()
  485. end
  486. end)
  487. PlayerSection:NewSlider("Fly Speed", "Allows for faster/slower flight", 500, 1, function(s)
  488. flySettings.flyspeed = s
  489. end)
  490.  
  491. PlayerSection:NewLabel("> Speed Power <")
  492.  
  493. local settings = {WalkSpeed = 16}
  494. local isWalkSpeedEnabled = false
  495.  
  496. PlayerSection:NewToggle("Custom WalkSpeed", "Toggle custom walkspeed", function(enabled)
  497. isWalkSpeedEnabled = enabled
  498. end)
  499.  
  500. local walkMethods = {"Velocity", "Vector", "CFrame"}
  501. local selectedWalkMethod = walkMethods[1]
  502.  
  503. PlayerSection:NewDropdown("Walk Method", "Choose walk method", walkMethods, function(selected)
  504. selectedWalkMethod = selected
  505. end)
  506.  
  507. PlayerSection:NewSlider("Walkspeed Power", "Adjust walkspeed power", 500, 16, function(value)
  508. settings.WalkSpeed = value
  509. end)
  510.  
  511. local function wsm(player, deltaTime)
  512. local character = player.Character
  513. local humanoid = character and character:FindFirstChildOfClass("Humanoid")
  514. local rootPart = character and character:FindFirstChild("HumanoidRootPart")
  515.  
  516. if humanoid and rootPart then
  517. local VS = humanoid.MoveDirection * settings.WalkSpeed
  518. if selectedWalkMethod == "Velocity" then
  519. rootPart.Velocity = Vector3.new(VS.X, rootPart.Velocity.Y, VS.Z)
  520. elseif selectedWalkMethod == "Vector" then
  521. local scaleFactor = 0.0001
  522. rootPart.CFrame = rootPart.CFrame + (VS * deltaTime * scaleFactor)
  523. elseif selectedWalkMethod == "CFrame" then
  524. local scaleFactor = 0.0001
  525. rootPart.CFrame = rootPart.CFrame + (humanoid.MoveDirection * settings.WalkSpeed * deltaTime * scaleFactor)
  526. else
  527. humanoid.WalkSpeed = settings.WalkSpeed
  528. end
  529. end
  530. end
  531.  
  532. game:GetService("RunService").Stepped:Connect(function(deltaTime)
  533. if isWalkSpeedEnabled then
  534. local player = game:GetService("Players").LocalPlayer
  535. if player and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
  536. wsm(player, deltaTime)
  537. end
  538. end
  539. end)
  540.  
  541.  
  542. PlayerSection:NewLabel("> JumpPower <")
  543. --PlayerSection:NewSection("JumpPower Settings")
  544.  
  545. local IJ = false
  546. PlayerSection:NewToggle("Infinite Jump", "Toggle infinite jump", function(state)
  547. IJ = state
  548. game:GetService("UserInputService").JumpRequest:Connect(function()
  549. if IJ then
  550. game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass('Humanoid'):ChangeState("Jumping")
  551. end
  552. end)
  553. end)
  554.  
  555.  
  556. local isJumpPowerEnabled = false
  557.  
  558. PlayerSection:NewToggle("Custom JumpPower", "Toggle custom jumppower", function(enabled)
  559. isJumpPowerEnabled = enabled
  560. end)
  561.  
  562. local jumpMethods = {"Velocity", "Vector", "CFrame"}
  563. local selectedJumpMethod = jumpMethods[1]
  564.  
  565. PlayerSection:NewDropdown("Jump Method", "Choose jump method", jumpMethods, function(selected)
  566. selectedJumpMethod = selected
  567. end)
  568.  
  569. PlayerSection:NewSlider("Change JumpPower", "Adjust jumppower", 500, 30, function(value)
  570. local player = game:GetService("Players").LocalPlayer
  571. local humanoid = player.Character:WaitForChild("Humanoid")
  572. humanoid.UseJumpPower = true
  573. humanoid.Jumping:Connect(function(isActive)
  574. if isJumpPowerEnabled and isActive then
  575. local rootPart = player.Character:FindFirstChild("HumanoidRootPart")
  576. if rootPart then
  577. if selectedJumpMethod == "Velocity" then
  578. rootPart.Velocity = rootPart.Velocity * Vector3.new(1, 0, 1) + Vector3.new(0, value, 0)
  579. elseif selectedJumpMethod == "Vector" then
  580. rootPart.Velocity = Vector3.new(0, value, 0)
  581. elseif selectedJumpMethod == "CFrame" then
  582. player.Character:SetPrimaryPartCFrame(player.Character:GetPrimaryPartCFrame() + Vector3.new(0, value, 0))
  583. end
  584. end
  585. end
  586. end)
  587. end)
  588.  
  589. PlayerSection:NewLabel("> Anti Aim <")
  590.  
  591. local spinSpeed = 10
  592. local gyro
  593.  
  594. PlayerSection:NewToggle("Anti-Aim v1", "Toggle anti-aim feature", function(value)
  595. local character = game.Players.LocalPlayer.Character
  596. local humanoidRootPart = character and character:FindFirstChild("HumanoidRootPart")
  597.  
  598. if value then
  599. game:GetService("Players").LocalPlayer.PlayerGui.GUI.Client.Variables.thirdperson.Value = true
  600.  
  601. if humanoidRootPart then
  602. local spin = Instance.new("BodyAngularVelocity")
  603. spin.Name = "AntiAimSpin"
  604. spin.AngularVelocity = Vector3.new(0, spinSpeed, 0)
  605. spin.MaxTorque = Vector3.new(0, math.huge, 0)
  606. spin.P = 500000
  607. spin.Parent = humanoidRootPart
  608.  
  609. gyro = Instance.new("BodyGyro")
  610. gyro.Name = "AntiAimGyro"
  611. gyro.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
  612. gyro.CFrame = humanoidRootPart.CFrame
  613. gyro.P = 3000
  614. gyro.Parent = humanoidRootPart
  615. end
  616. else
  617. game:GetService("Players").LocalPlayer.PlayerGui.GUI.Client.Variables.thirdperson.Value = false
  618.  
  619. if humanoidRootPart then
  620. local spin = humanoidRootPart:FindFirstChild("AntiAimSpin")
  621. if spin then
  622. spin:Destroy()
  623. end
  624.  
  625. if gyro then
  626. gyro:Destroy()
  627. gyro = nil
  628. end
  629. end
  630. end
  631. end)
  632.  
  633. PlayerSection:NewSlider("Spin Speed", "Adjust the speed of the anti-aim spin", 100, 10, function(value)
  634. spinSpeed = value
  635.  
  636. local character = game.Players.LocalPlayer.Character
  637. local humanoidRootPart = character and character:FindFirstChild("HumanoidRootPart")
  638. if humanoidRootPart then
  639. local spin = humanoidRootPart:FindFirstChild("AntiAimSpin")
  640. if spin then
  641. spin.AngularVelocity = Vector3.new(0, spinSpeed, 0)
  642. end
  643. end
  644. end)
  645.  
  646.  
  647.  
  648.  
  649. PlayerSection:NewLabel("> Object Teleport <")
  650. local autoHealEnabled = false
  651. local autoAmmoEnabled = false
  652.  
  653. PlayerSection:NewToggle("DeadHP (AutoHeal)", "MMSVon made this", function(enabled)
  654. autoHealEnabled = enabled
  655. managePickups()
  656. end)
  657.  
  658. PlayerSection:NewToggle("DeadAmmo (Inf-Ammo)", "MMSVon made this", function(enabled)
  659. autoAmmoEnabled = enabled
  660. managePickups()
  661. end)
  662.  
  663. function managePickups()
  664. if autoHealEnabled or autoAmmoEnabled then
  665. spawn(function()
  666. while autoHealEnabled or autoAmmoEnabled do
  667. wait()
  668. pcall(function()
  669. local player = game.Players.LocalPlayer
  670. local character = player.Character
  671. if character then
  672. local humanoidRootPart = character:FindFirstChild("HumanoidRootPart")
  673. if humanoidRootPart then
  674. for _, v in pairs(game.Workspace.Debris:GetChildren()) do
  675. if (autoHealEnabled and v.Name == "DeadHP") or (autoAmmoEnabled and v.Name == "DeadAmmo") then
  676. v.CFrame = humanoidRootPart.CFrame
  677. end
  678. end
  679. end
  680. end
  681. end)
  682. end
  683. end)
  684. end
  685. end
  686.  
  687. PlayerSection:NewLabel("> Useful Cheat <")
  688.  
  689. PlayerSection:NewTextBox('TimeScale', '?', function(TimeScaleFR)
  690. game:GetService("ReplicatedStorage").wkspc.TimeScale.Value = TimeScaleFR -- idk why it breaks when i do slider
  691. end)
  692. PlayerSection:NewLabel("> Misc <")
  693.  
  694. PlayerSection:NewSlider("FOV Arsenal", "?", 120, 0, function(num)
  695. game:GetService("Players").LocalPlayer.Settings.FOV.Value = num
  696. end)
  697. local isNoClipEnabled = false
  698.  
  699. PlayerSection:NewToggle("Toggle NoClip", "?", function(enabled) -- go through wall wowie
  700. isNoClipEnabled = enabled
  701. local player = game.Players.LocalPlayer
  702.  
  703. local function toggleNoClip()
  704. while isNoClipEnabled do
  705. local character = player.Character
  706. if character then
  707. for _, part in pairs(character:GetDescendants()) do
  708. if part:IsA("BasePart") then
  709. part.CanCollide = false
  710. end
  711. end
  712. end
  713. game:GetService("RunService").Stepped:Wait()
  714. end
  715.  
  716. local character = player.Character
  717. if character then
  718. for _, part in pairs(character:GetDescendants()) do
  719. if part:IsA("BasePart") then
  720. part.CanCollide = true
  721. end
  722. end
  723. end
  724. end
  725.  
  726. if isNoClipEnabled then
  727. spawn(toggleNoClip)
  728. end
  729. end)
  730.  
  731. game.Players.LocalPlayer.CharacterAdded:Connect(function(character)
  732. if isNoClipEnabled then
  733. spawn(function()
  734. while isNoClipEnabled do
  735. if character then
  736. for _, part in pairs(character:GetDescendants()) do
  737. if part:IsA("BasePart") then
  738. part.CanCollide = false
  739. end
  740. end
  741. end
  742. game:GetService("RunService").Stepped:Wait()
  743. end
  744.  
  745. for _, part in pairs(character:GetDescendants()) do
  746. if part:IsA("BasePart") then
  747. part.CanCollide = true
  748. end
  749. end
  750. end)
  751. end
  752. end)
  753.  
  754. local xrayOn = false
  755. PlayerSection:NewToggle("Toggle Xray", "WallXray lol", function(enabled) -- xray go brrrrrrrr
  756. xrayOn = enabled
  757.  
  758. if xrayOn then
  759. for _, descendant in pairs(workspace:GetDescendants()) do
  760. if descendant:IsA("BasePart") then
  761. if not descendant:FindFirstChild("OriginalTransparency") then
  762. local originalTransparency = Instance.new("NumberValue")
  763. originalTransparency.Name = "OriginalTransparency"
  764. originalTransparency.Value = descendant.Transparency
  765. originalTransparency.Parent = descendant
  766. end
  767. descendant.Transparency = 0.5
  768. end
  769. end
  770. else
  771. for _, descendant in pairs(workspace:GetDescendants()) do
  772. if descendant:IsA("BasePart") then
  773. if descendant:FindFirstChild("OriginalTransparency") then
  774. descendant.Transparency = descendant.OriginalTransparency.Value
  775. descendant.OriginalTransparency:Destroy()
  776. end
  777. end
  778. end
  779. end
  780. end)
  781.  
  782.  
  783. local Skins = Window:NewTab("Color Skins")
  784. local Random = Skins:NewSection("> Arm Skins <")
  785.  
  786. local function ak(al)
  787. return Vector3.new(al.R, al.G, al.B)
  788. end
  789.  
  790. local am = "Plastic"
  791. Random:NewDropdown("Arm Material", "?", { "Plastic", "ForceField", "Wood", "Grass" }, function(an)
  792. am = an
  793. end)
  794.  
  795. local ao = Color3.new(50, 50, 50)
  796. Random:NewColorPicker('Arm Color', "?", Color3.fromRGB(50, 50, 50), function(ap)
  797. ao = ap
  798. end)
  799.  
  800. local aq = false
  801. Random:NewToggle("Arm Charms", "?", function(L)
  802. aq = L
  803. if aq then
  804. spawn(function()
  805. while true do
  806. wait(.01)
  807. if not aq then
  808. break
  809. else
  810. local cameraArms = workspace.Camera:FindFirstChild("Arms")
  811. if cameraArms then
  812. for ar, O in pairs(cameraArms:GetDescendants()) do
  813. if O.Name == 'Right Arm' or O.Name == 'Left Arm' then
  814. if O:IsA("BasePart") then
  815. O.Material = Enum.Material[am]
  816. O.Color = ao
  817. end
  818. elseif O:IsA("SpecialMesh") then
  819. if O.TextureId == '' then
  820. O.TextureId = 'rbxassetid://0'
  821. O.VertexColor = ak(ao)
  822. end
  823. elseif O.Name == 'L' or O.Name == 'R' then
  824. O:Destroy()
  825. end
  826. end
  827. end
  828. end
  829. end
  830. end)
  831. end
  832. end)
  833.  
  834.  
  835. Random:NewLabel("> Gun Skin <")
  836.  
  837. local at = "Plastic"
  838. Random:NewDropdown("Gun Material", "?", { "Plastic", "ForceField", "Wood", "Grass" }, function(an)
  839. at = an
  840. end)
  841. local au = Color3.new(50, 50, 50)
  842. Random:NewColorPicker('Gun Color', "?", Color3.fromRGB(50, 50, 50), function(ap)
  843. au = ap
  844. end)
  845. local av = false;
  846. Random:NewToggle("Gun Charms", "?", function(L)
  847. av = L;
  848. if av
  849. then
  850. spawn(function()
  851. while true do wait(.01)
  852. if not av then
  853. break
  854. else
  855. if not workspace.Camera:FindFirstChild("Arms")
  856. then
  857. wait()
  858. else
  859. for ar, O in pairs(workspace.Camera.Arms:GetDescendants()) do
  860. if O:IsA("MeshPart")
  861. then
  862. O.Material = Enum.Material[at]
  863. O.Color = au
  864. end
  865. end
  866. end
  867. end
  868. end
  869. end)
  870. end
  871. end)
  872.  
  873. Random:NewLabel("> Rainbow Gun <")
  874.  
  875. local rainbowEnabled = false
  876. local c = 1
  877. function zigzag(X)
  878. return math.acos(math.cos(X * math.pi)) / math.pi
  879. end
  880.  
  881. Random:NewToggle("Rainbow Gun v1", "?", function(state)
  882. rainbowEnabled = state
  883. end)
  884.  
  885. game:GetService("RunService").RenderStepped:Connect(function()
  886. if game.Workspace.Camera:FindFirstChild('Arms') and rainbowEnabled then
  887. for i, v in pairs(game.Workspace.Camera.Arms:GetDescendants()) do
  888. if v.ClassName == 'MeshPart' then
  889. v.Color = Color3.fromHSV(zigzag(c), 1, 1)
  890. c = c + .0001
  891. end
  892. end
  893. end
  894. end)
  895.  
  896. local rainbowEnabled = false
  897. local c = 0
  898. local hueIncrement = 0.1
  899.  
  900. function updateColors()
  901. for i, v in pairs(game.Workspace.Camera.Arms:GetDescendants()) do
  902. if v.ClassName == 'MeshPart' then
  903. v.Color = Color3.fromHSV(c, 1, 1)
  904. end
  905. end
  906. end
  907.  
  908. Random:NewToggle("Rainbow Gun v2 [Crazy Fast Animation]", "?", function(state)
  909. rainbowEnabled = state
  910. end)
  911.  
  912. game:GetService("RunService").RenderStepped:Connect(function()
  913. if game.Workspace.Camera:FindFirstChild('Arms') and rainbowEnabled then
  914. c = c + hueIncrement
  915. if c >= 1 then
  916. c = c % 1 -- [0, 1] range
  917. end
  918. updateColors()
  919. end
  920. end)
  921.  
  922.  
  923. local Extra = Window:NewTab("Extra")
  924. local Extra = Extra:NewSection("Random")
  925.  
  926. local function enableParticles()
  927. for i, v in pairs(game:GetDescendants()) do
  928. if v:IsA("ParticleEmitter") then
  929. v.Parent = game.Players.LocalPlayer.Character["Particle Area"]
  930. end
  931. end
  932. end
  933.  
  934. local function disableParticles()
  935. for i, v in pairs(game:GetDescendants()) do
  936. if v:IsA("ParticleEmitter") then
  937. v.Parent = workspace
  938. end
  939. end
  940. end
  941.  
  942. Extra:NewToggle("Mees up your screen lol", "?", function(state)
  943. if state then
  944. enableParticles()
  945. else
  946. disableParticles()
  947. end
  948. end)
  949.  
  950.  
  951.  
  952.  
  953. Extra:NewLabel("Chat") -- fun i guess
  954.  
  955. Extra:NewToggle("IsChad", "?",function(x)
  956. if game.Players.LocalPlayer:FindFirstChild('IsChad') then
  957. game.Players.LocalPlayer.IsChad:Destroy()
  958. return
  959. end
  960. if x then
  961. local IsMod = Instance.new('IntValue', game.Players.LocalPlayer)
  962. IsMod.Name = "IsChad"
  963. end
  964.  
  965. end)
  966.  
  967. Extra:NewToggle("VIP", "?",function(x)
  968. if game.Players.LocalPlayer:FindFirstChild('VIP') then
  969. game.Players.LocalPlayer.VIP:Destroy()
  970. return
  971. end
  972.  
  973. if x then
  974. local IsMod = Instance.new('IntValue', game.Players.LocalPlayer)
  975. IsMod.Name = "VIP"
  976. end
  977. end)
  978.  
  979. Extra:NewToggle("OldVIP", "?",function(x)
  980. if game.Players.LocalPlayer:FindFirstChild('OldVIP') then
  981. game.Players.LocalPlayer.OldVIP:Destroy()
  982. return
  983. end
  984. if x then
  985. local IsMod = Instance.new('IntValue', game.Players.LocalPlayer)
  986. IsMod.Name = "OldVIP"
  987. end
  988. end)
  989. Extra:NewToggle("Romin", "?",function(x)
  990. if game.Players.LocalPlayer:FindFirstChild('Romin') then
  991. game.Players.LocalPlayer.Romin:Destroy()
  992. return
  993. end
  994. if x then
  995. local IsAdmin = Instance.new('IntValue', game.Players.LocalPlayer)
  996. IsAdmin.Name = "Romin"
  997. end
  998. end)
  999.  
  1000. Extra:NewToggle("IsAdmin", "?",function(x)
  1001. if game.Players.LocalPlayer:FindFirstChild('IsAdmin') then
  1002. game.Players.LocalPlayer.IsAdmin:Destroy()
  1003. return
  1004. end
  1005. if x then
  1006. local IsAdmin = Instance.new('IntValue', game.Players.LocalPlayer)
  1007. IsAdmin.Name = "IsAdmin"
  1008. end
  1009. end)
  1010.  
  1011.  
  1012. local Visual = Window:NewTab("Visuals")
  1013. local C = Visual:NewSection("> ESP V1 <")
  1014. -- kiriot22s esp
  1015. local aj = loadstring(game:HttpGet("https://rawscript.vercel.app/api/raw/esp_1"))()
  1016.  
  1017. C:NewToggle("Enable Esp", "?", function(K)
  1018. aj:Toggle(K)
  1019. aj.Players = K
  1020. end)
  1021.  
  1022. C:NewToggle("Tracers Esp", "?", function(K)
  1023. aj.Tracers = K
  1024. end)
  1025.  
  1026. C:NewToggle("Name Esp", "?", function(K)
  1027. aj.Names = K
  1028. end)
  1029.  
  1030. C:NewToggle("Boxes Esp", "?", function(K)
  1031. aj.Boxes = K
  1032. end)
  1033.  
  1034. C:NewToggle("Team Coordinate", "?", function(L)
  1035. aj.TeamColor = L
  1036. end)
  1037.  
  1038. C:NewToggle("Teammates", "?", function(L)
  1039. aj.TeamMates = L
  1040. end)
  1041.  
  1042. C:NewColorPicker("ESP Color", "?", Color3.fromRGB(255, 255, 255), function(P)
  1043. aj.Color = P
  1044. end)
  1045.  
  1046. local esp = Visual:NewSection("> Random ESP <")
  1047. --esp:NewLabel("> Random ESP <")
  1048. local esp_data = {}
  1049. local espTilesName = 'dontfuckingask'
  1050.  
  1051. local function createESP(parent, label)
  1052. local BillboardGui = Instance.new('BillboardGui')
  1053. local TextLabel = Instance.new('TextLabel')
  1054.  
  1055. BillboardGui.Name = espTilesName
  1056. BillboardGui.Parent = parent
  1057. BillboardGui.AlwaysOnTop = true
  1058. BillboardGui.Size = UDim2.new(0, 50, 0, 50)
  1059. BillboardGui.StudsOffset = Vector3.new(0, 2, 0)
  1060.  
  1061. TextLabel.Parent = BillboardGui
  1062. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  1063. TextLabel.BackgroundTransparency = 1
  1064. TextLabel.Size = UDim2.new(1, 0, 1, 0)
  1065. TextLabel.Text = label
  1066. TextLabel.TextColor3 = Color3.new(1, 0, 0)
  1067. TextLabel.TextScaled = false
  1068.  
  1069. return BillboardGui
  1070. end
  1071.  
  1072. local function applyESP(object, label)
  1073. if object:IsA('TouchTransmitter') then
  1074. local parent = object.Parent
  1075. if not parent:FindFirstChild(espTilesName) then
  1076. local newESP = createESP(parent, label)
  1077. esp_data[parent] = newESP
  1078. end
  1079. end
  1080. end
  1081.  
  1082. local function toggleESP(enable, name, label)
  1083. if enable then
  1084. for _, v in ipairs(game.Workspace:GetDescendants()) do
  1085. if v:IsA('TouchTransmitter') and v.Parent.Name == name then
  1086. applyESP(v, label)
  1087. end
  1088. end
  1089.  
  1090. game.Workspace.DescendantAdded:Connect(function(descendant)
  1091. if descendant:IsA('TouchTransmitter') and descendant.Parent.Name == name then
  1092. applyESP(descendant, label)
  1093. end
  1094. end)
  1095. else
  1096. for parent, espElement in pairs(esp_data) do
  1097. if parent and espElement then
  1098. espElement:Destroy()
  1099. esp_data[parent] = nil
  1100. end
  1101. end
  1102. end
  1103. end
  1104.  
  1105. esp:NewToggle('Ammo Box ESP', '?', function(enabled)
  1106. toggleESP(enabled, 'DeadAmmo', 'Ammo Box')
  1107. end)
  1108.  
  1109. esp:NewToggle('HP Jug ESP', '?', function(enabled)
  1110. toggleESP(enabled, 'DeadHP', 'HP Jar')
  1111. end)
  1112.  
  1113. --// Setting \\--
  1114. local Setting = Window:NewTab("Setting")
  1115. local Section = Setting:NewSection("> Performance <")
  1116. -- i had to modify the whole thing to be toggabled =w=
  1117. local originalMaterials = {}
  1118. local originalDecalsTextures = {}
  1119. local originalLightingSettings = {
  1120. GlobalShadows = game.Lighting.GlobalShadows,
  1121. FogEnd = game.Lighting.FogEnd,
  1122. Brightness = game.Lighting.Brightness
  1123. }
  1124. local originalTerrainSettings = {
  1125. WaterWaveSize = game.Workspace.Terrain.WaterWaveSize,
  1126. WaterWaveSpeed = game.Workspace.Terrain.WaterWaveSpeed,
  1127. WaterReflectance = game.Workspace.Terrain.WaterReflectance,
  1128. WaterTransparency = game.Workspace.Terrain.WaterTransparency
  1129. }
  1130. local originalEffects = {}
  1131.  
  1132. Section:NewToggle("Anti Lag", "?", function(state)
  1133. if state then
  1134. for ai, O in pairs(game:GetService("Workspace"):GetDescendants()) do
  1135. if O:IsA("BasePart") and not O.Parent:FindFirstChild("Humanoid") then
  1136. originalMaterials[O] = O.Material
  1137. O.Material = Enum.Material.SmoothPlastic
  1138. if O:IsA("Texture") then
  1139. table.insert(originalDecalsTextures, O)
  1140. O:Destroy()
  1141. end
  1142. end
  1143. end
  1144. else
  1145. for O, material in pairs(originalMaterials) do
  1146. if O and O:IsA("BasePart") then
  1147. O.Material = material
  1148. end
  1149. end
  1150. originalMaterials = {}
  1151. end
  1152. end)
  1153.  
  1154. Section:NewToggle("FPS Boost", "?", function(state)
  1155. if state then
  1156. local g = game
  1157. local w = g.Workspace
  1158. local l = g.Lighting
  1159. local t = w.Terrain
  1160. originalTerrainSettings.WaterWaveSize = t.WaterWaveSize
  1161. originalTerrainSettings.WaterWaveSpeed = t.WaterWaveSpeed
  1162. originalTerrainSettings.WaterReflectance = t.WaterReflectance
  1163. originalTerrainSettings.WaterTransparency = t.WaterTransparency
  1164.  
  1165. t.WaterWaveSize = 0
  1166. t.WaterWaveSpeed = 0
  1167. t.WaterReflectance = 0
  1168. t.WaterTransparency = 0
  1169. l.GlobalShadows = false
  1170. l.FogEnd = 9e9
  1171. l.Brightness = 0
  1172. settings().Rendering.QualityLevel = "Level01"
  1173.  
  1174. for i, v in pairs(g:GetDescendants()) do
  1175. if v:IsA("Part") or v:IsA("Union") or v:IsA("CornerWedgePart") or v:IsA("TrussPart") then
  1176. originalMaterials[v] = v.Material
  1177. v.Material = "Plastic"
  1178. v.Reflectance = 0
  1179. elseif v:IsA("Decal") or v:IsA("Texture") then
  1180. table.insert(originalDecalsTextures, v)
  1181. v.Transparency = 1
  1182. elseif v:IsA("ParticleEmitter") or v:IsA("Trail") then
  1183. v.Lifetime = NumberRange.new(0)
  1184. elseif v:IsA("Explosion") then
  1185. v.BlastPressure = 1
  1186. v.BlastRadius = 1
  1187. elseif v:IsA("Fire") or v:IsA("SpotLight") or v:IsA("Smoke") then
  1188. v.Enabled = false
  1189. elseif v:IsA("MeshPart") then
  1190. originalMaterials[v] = v.Material
  1191. v.Material = "Plastic"
  1192. v.Reflectance = 0
  1193. v.TextureID = 10385902758728957
  1194. end
  1195. end
  1196.  
  1197. for i, e in pairs(l:GetChildren()) do
  1198. if e:IsA("BlurEffect") or e:IsA("SunRaysEffect") or e:IsA("ColorCorrectionEffect") or e:IsA("BloomEffect") or e:IsA("DepthOfFieldEffect") then
  1199. originalEffects[e] = e.Enabled
  1200. e.Enabled = false
  1201. end
  1202. end
  1203. else
  1204. local t = game.Workspace.Terrain
  1205. t.WaterWaveSize = originalTerrainSettings.WaterWaveSize
  1206. t.WaterWaveSpeed = originalTerrainSettings.WaterWaveSpeed
  1207. t.WaterReflectance = originalTerrainSettings.WaterReflectance
  1208. t.WaterTransparency = originalTerrainSettings.WaterTransparency
  1209.  
  1210. game.Lighting.GlobalShadows = originalLightingSettings.GlobalShadows
  1211. game.Lighting.FogEnd = originalLightingSettings.FogEnd
  1212. game.Lighting.Brightness = originalLightingSettings.Brightness
  1213.  
  1214. settings().Rendering.QualityLevel = "Automatic"
  1215.  
  1216. for v, material in pairs(originalMaterials) do
  1217. if v and v:IsA("BasePart") then
  1218. v.Material = material
  1219. v.Reflectance = 0
  1220. end
  1221. end
  1222. originalMaterials = {}
  1223.  
  1224. for e, enabled in pairs(originalEffects) do
  1225. if e then
  1226. e.Enabled = enabled
  1227. end
  1228. end
  1229. originalEffects = {}
  1230.  
  1231. for _, v in pairs(originalDecalsTextures) do
  1232. if v and v.Parent then
  1233. v.Transparency = 0
  1234. end
  1235. end
  1236. originalDecalsTextures = {}
  1237. end
  1238. end)
  1239.  
  1240. local fullBrightEnabled = false
  1241. Section:NewToggle("Full Bright", "?", function(enabled)
  1242. fullBrightEnabled = enabled
  1243.  
  1244. local Light = game:GetService("Lighting")
  1245.  
  1246. local function doFullBright()
  1247. if fullBrightEnabled then
  1248. Light.Ambient = Color3.new(1, 1, 1)
  1249. Light.ColorShift_Bottom = Color3.new(1, 1, 1)
  1250. Light.ColorShift_Top = Color3.new(1, 1, 1)
  1251. else
  1252. Light.Ambient = Color3.new(0.5, 0.5, 0.5)
  1253. Light.ColorShift_Bottom = Color3.new(0, 0, 0)
  1254. Light.ColorShift_Top = Color3.new(0, 0, 0)
  1255. end
  1256. end
  1257.  
  1258. doFullBright()
  1259.  
  1260. Light.LightingChanged:Connect(doFullBright)
  1261. end)
  1262.  
  1263. local Section = Setting:NewSection("> Server <")
  1264. Section:NewButton("Server Hop", "?", function() -- somebody script, not ours
  1265. local placeID = game.PlaceId
  1266. local allIDs = {}
  1267. local foundAnything = ""
  1268. local actualHour = os.date("!*t").hour
  1269. local deleted = false
  1270. local file = pcall(function()
  1271. allIDs = game:GetService('HttpService'):JSONDecode(readfile("NotSameServers.json"))
  1272. end)
  1273.  
  1274. if not file then
  1275. table.insert(allIDs, actualHour)
  1276. writefile("NotSameServers.json", game:GetService('HttpService'):JSONEncode(allIDs))
  1277. end
  1278.  
  1279. function teleportReturner()
  1280. local site
  1281. if foundAnything == "" then
  1282. site = game.HttpService:JSONDecode(game:HttpGet('https://games.roblox.com/v1/games/' ..
  1283. placeID .. '/servers/Public?sortOrder=Asc&limit=100'))
  1284. else
  1285. site = game.HttpService:JSONDecode(game:HttpGet('https://games.roblox.com/v1/games/' ..
  1286. placeID .. '/servers/Public?sortOrder=Asc&limit=100&cursor=' .. foundAnything))
  1287. end
  1288.  
  1289. local serverID = ""
  1290.  
  1291. if site.nextPageCursor and site.nextPageCursor ~= "null" and site.nextPageCursor ~= nil then
  1292. foundAnything = site.nextPageCursor
  1293. end
  1294.  
  1295. local num = 0
  1296.  
  1297. for i, v in pairs(site.data) do
  1298. local possible = true
  1299. serverID = tostring(v.id)
  1300.  
  1301. if tonumber(v.maxPlayers) > tonumber(v.playing) then
  1302. for _, existing in pairs(allIDs) do
  1303. if num ~= 0 then
  1304. if serverID == tostring(existing) then
  1305. possible = false
  1306. end
  1307. else
  1308. if tonumber(actualHour) ~= tonumber(existing) then
  1309. local delFile = pcall(function()
  1310. delfile("NotSameServers.json")
  1311. allIDs = {}
  1312. table.insert(allIDs, actualHour)
  1313. end)
  1314. end
  1315. end
  1316. num = num + 1
  1317. end
  1318.  
  1319. if possible == true then
  1320. table.insert(allIDs, serverID)
  1321. wait()
  1322. pcall(function()
  1323. writefile("NotSameServers.json", game:GetService('HttpService'):JSONEncode(allIDs))
  1324. wait()
  1325. game:GetService("TeleportService"):TeleportToPlaceInstance(placeID, serverID, game.Players.LocalPlayer)
  1326. end)
  1327. wait(4)
  1328. end
  1329. end
  1330. end
  1331. end
  1332.  
  1333. function teleport()
  1334. while wait() do
  1335. pcall(function()
  1336. teleportReturner()
  1337. if foundAnything ~= "" then
  1338. teleportReturner()
  1339. end
  1340. end)
  1341. end
  1342. end
  1343.  
  1344. teleport()
  1345. end)
  1346.  
  1347. Section:NewButton("Rejoin Server", "?", function()
  1348. game:GetService("TeleportService"):Teleport(game.PlaceId, Player)
  1349. end)
  1350.  
  1351. local keybindSection = Setting:NewSection("> Keybind <")
  1352. keybindSection:NewKeybind("Close UI", "Toggle UI", Enum.KeyCode.LeftControl, function()
  1353. Library:ToggleUI()
  1354. end)
  1355.  
  1356.  
  1357.  
  1358. local Credit = Window:NewTab("Credits")
  1359. local Section = Credit:NewSection("Credits")
  1360. local Section = Credit:NewSection("Script Developed by: AdvanceFalling Team")
  1361. Section:NewDropdown("Developer", "Dev", {"YellowGreg", "WspBoy12", "MMSVon", "ShadowClark", "Frostbite"}, function(currentDeveloper)
  1362. local creations = {
  1363. YellowGreg = "Owner",
  1364. WspBoy12 = "Head Developer",
  1365. MMSVon = "Head Developer",
  1366. ShadowClark = "Head Developer",
  1367. Frostbite = "Head Developer",
  1368. }
  1369. print(currentDeveloper .. " created " .. creations[currentDeveloper])
  1370. end)
  1371. local Section = Credit:NewSection("UI Framework: Kavo.")
  1372. local Section = Credit:NewSection("Report Non-Functional Bugs Scripts on Discord")
  1373. Section:NewButton("Copy Discord Link", "Discord", function()
  1374. setclipboard("https://discord.gg/FuZCM5X8TW")
  1375. end)
  1376.  
  1377.  
  1378.  
  1379. --// Gui Button \\--
  1380. local ScreenGui = Instance.new("ScreenGui")
  1381. local Frame = Instance.new("ImageLabel")
  1382. local TextButton = Instance.new("TextButton")
  1383.  
  1384. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  1385.  
  1386. Frame.Name = "Frame"
  1387. Frame.Parent = ScreenGui
  1388. Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1389. Frame.BackgroundTransparency = 1.000
  1390. Frame.Position = UDim2.new(0, 0, 0.65, -100)
  1391. Frame.Size = UDim2.new(0, 100, 0, 50)
  1392. Frame.Image = "rbxassetid://3570695787"
  1393. Frame.ImageColor3 = Color3.fromRGB(11, 18, 7)
  1394. Frame.ImageTransparency = 0.200
  1395. Frame.ScaleType = Enum.ScaleType.Slice
  1396. Frame.SliceCenter = Rect.new(100, 100, 100, 100)
  1397. Frame.SliceScale = 0.120
  1398. Frame.Active = true
  1399. Frame.ZIndex = 10
  1400.  
  1401. TextButton.Parent = Frame
  1402. TextButton.AnchorPoint = Vector2.new(0, 0.5)
  1403. TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1404. TextButton.BackgroundTransparency = 1.000
  1405. TextButton.Position = UDim2.new(0.022162716, 0, 0.85, -20)
  1406. TextButton.Size = UDim2.new(1, -10, 1, 0)
  1407. TextButton.Font = Enum.Font.SourceSans
  1408. TextButton.Text = "Toggle"
  1409. TextButton.TextColor3 = Color3.fromRGB(0, 34, 255)
  1410. TextButton.TextSize = 20.000
  1411. TextButton.TextWrapped = true
  1412. TextButton.ZIndex = 11
  1413. TextButton.MouseButton1Down:Connect(function()
  1414. Library:ToggleUI()
  1415. end)
  1416.  
  1417. local draggingEnabled = false
  1418. local dragStartPos = nil
  1419. local frameStartPos = nil
  1420.  
  1421. local function updatePosition(input)
  1422. local delta = input.Position - dragStartPos
  1423. Frame.Position = UDim2.new(
  1424. frameStartPos.X.Scale,
  1425. frameStartPos.X.Offset + delta.X,
  1426. frameStartPos.Y.Scale,
  1427. frameStartPos.Y.Offset + delta.Y
  1428. )
  1429. end
  1430.  
  1431. TextButton.InputBegan:Connect(function(input)
  1432. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  1433. draggingEnabled = true
  1434. dragStartPos = input.Position
  1435. frameStartPos = Frame.Position
  1436. end
  1437. end)
  1438.  
  1439. TextButton.InputEnded:Connect(function(input)
  1440. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  1441. draggingEnabled = false
  1442. end
  1443. end)
  1444.  
  1445. TextButton.InputChanged:Connect(function(input)
  1446. if draggingEnabled and
  1447. (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then
  1448. updatePosition(input)
  1449. end
  1450. end)
  1451.  
  1452. Frame.InputChanged:Connect(function(input)
  1453. if draggingEnabled and
  1454. (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then
  1455. updatePosition(input)
  1456. end
  1457. end)
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement