Guest User

fffreeeeefrrree

a guest
May 1st, 2023
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 60.11 KB | None | 0 0
  1. --[[
  2. VAPE PRIVATE - leak and I'll break ur kneecaps
  3.  
  4. Credits
  5. Infinite Yield - Blink
  6. DevForum - lots of rotation math because I hate it
  7. Please notify me if you need credits
  8. ]]
  9. local GuiLibrary = shared.GuiLibrary
  10. local players = game:GetService("Players")
  11. local textservice = game:GetService("TextService")
  12. local repstorage = game:GetService("ReplicatedStorage")
  13. local lplr = players.LocalPlayer
  14. local lighting = game:GetService("Lighting")
  15. local cam = workspace.CurrentCamera
  16. workspace:GetPropertyChangedSignal("CurrentCamera"):connect(function()
  17. cam = (workspace.CurrentCamera or workspace:FindFirstChild("Camera") or Instance.new("Camera"))
  18. end)
  19. local targetinfo = shared.VapeTargetInfo
  20. local collectionservice = game:GetService("CollectionService")
  21. local uis = game:GetService("UserInputService")
  22. local mouse = lplr:GetMouse()
  23. local bedwars = {}
  24. local bedwarsblocks = {}
  25. local blockraycast = RaycastParams.new()
  26. blockraycast.FilterType = Enum.RaycastFilterType.Whitelist
  27. local getfunctions
  28. local oldchar
  29. local oldcloneroot
  30. local matchState = 0
  31. local kit = ""
  32. local antivoidypos = 0
  33. local kills = 0
  34. local beds = 0
  35. local lagbacks = 0
  36. local reported = 0
  37. local vec3 = Vector3.new
  38. local cfnew = CFrame.new
  39. local currentinventory = {
  40. ["inventory"] = {
  41. ["items"] = {},
  42. ["armor"] = {},
  43. ["hand"] = nil
  44. }
  45. }
  46. local disguisecheck = false
  47. local betterisfile = function(file)
  48. local suc, res = pcall(function() return readfile(file) end)
  49. return suc and res ~= nil
  50. end
  51. local requestfunc = syn and syn.request or http and http.request or http_request or fluxus and fluxus.request or request or function(tab)
  52. if tab.Method == "GET" then
  53. return {
  54. Body = game:HttpGet(tab.Url, true),
  55. Headers = {},
  56. StatusCode = 200
  57. }
  58. else
  59. return {
  60. Body = "bad exploit",
  61. Headers = {},
  62. StatusCode = 404
  63. }
  64. end
  65. end
  66. local queueteleport = syn and syn.queue_on_teleport or queue_on_teleport or fluxus and fluxus.queue_on_teleport or function() end
  67. local teleportfunc
  68. local getasset = getsynasset or getcustomasset or function(location) return "rbxasset://"..location end
  69. local storedshahashes = {}
  70. local oldshoot
  71. local chatconnection
  72. local blocktable
  73. local inventories = {}
  74. local Hitboxes = {["Enabled"] = false}
  75. local Reach = {["Enabled"] = false}
  76. local Killaura = {["Enabled"] = false}
  77. local nobob = {["Enabled"] = false}
  78. local AnticheatBypass = {["Enabled"] = false}
  79. local AnticheatBypassCombatCheck = {["Enabled"] = false}
  80. local combatcheck = false
  81. local combatchecktick = tick()
  82. local disabletpcheck = false
  83. local queueType = "bedwars_test"
  84. local FastConsume = {["Enabled"] = false}
  85. local chatconnection2
  86. local oldchanneltab
  87. local oldchannelfunc
  88. local oldchanneltabs = {}
  89. local connectionstodisconnect = {}
  90. local anticheatfunny = false
  91. local anticheatfunnyyes = false
  92. local tpstring
  93. local networkownertick = tick()
  94. local networkownerfunc = isnetworkowner or function(part)
  95. if gethiddenproperty(part, "NetworkOwnershipRule") == Enum.NetworkOwnership.Manual then
  96. sethiddenproperty(part, "NetworkOwnershipRule", Enum.NetworkOwnership.Automatic)
  97. networkownertick = tick() + 8
  98. end
  99. return networkownertick <= tick()
  100. end
  101. local uninjectflag = false
  102. local clients = {
  103. ChatStrings1 = {
  104. ["KVOP25KYFPPP4"] = "vape",
  105. ["IO12GP56P4LGR"] = "future",
  106. ["RQYBPTYNURYZC"] = "rektsky"
  107. },
  108. ChatStrings2 = {
  109. ["vape"] = "KVOP25KYFPPP4",
  110. ["future"] = "IO12GP56P4LGR",
  111. ["rektsky"] = "RQYBPTYNURYZC"
  112. },
  113. ClientUsers = {}
  114. }
  115. local function GetURL(scripturl)
  116. if shared.VapeDeveloper then
  117. return readfile("vape/"..scripturl)
  118. else
  119. return game:HttpGet("https://raw.githubusercontent.com/7GrandDadPGN/VapeV4ForRoblox/main/"..scripturl, true)
  120. end
  121. end
  122. local shalib = loadstring(GetURL("Libraries/sha.lua"))()
  123. local entity = shared.vapeentity
  124. local whitelisted = {
  125. players = {
  126. "edbf7c4bd824bb17954c0fee8f108b6263a23d58e1dc500157513409cd9c55433ad43ea5c8bb121602fcd0eb0137d64805aaa8c597521298f5b53d69fa82014b",
  127. "94a10e281a721c62346185156c15dcc62a987aa9a73c482db4d1b0f2b4673261ec808040fb70886bf50453c7af97903ffe398199b43fccf5d8b619121493382d",
  128. "a91361a785c34c433f33386ef224586b7076e1e10ebb8189fdc39b7e37822eb6c79a7d810e0d2d41e000db65f8c539ffe2144e70d48e6d3df7b66350d4699c36",
  129. "cd41b8c39abf4b186f611f3afd13e5d0a2e5d65540b0dab93eed68a68f3891e0448d87dbba0937395ab1b7c3d4b6aed4025caad2b90b2cdbf4ca69441644d561",
  130. "28f1c2514aea620a23ef6a1f084e86a993e2585110c1ddd7f98cc6b3bd331251382c0143f7520153c91a368be5683d3406e06c9e35fba61f8bd2ac811c05f46b",
  131. "8b6c2833fa6e3a7defdeb8ffb4dcd6d4c652e6d02621c054df7c44ebaf94858ac5cbed6a6aadf0270c07d7054b7a2dd1ebf49ab20ffbc567213376c7848b8b90",
  132. "6662a5dfbb5311ee66af25cf9b6255c8b70f977022fcaed8fa9e6bcb4fe0159c148835d7c3b599a5f92f9a67455e0158f8977f33e9306dd4cee3efceb0b75441",
  133. "bdf4e13afb63148ad68cf75e25ec6f0cf11e0c4a597e8bdd5c93724a44bde2ce12eee46549a90ae4390bbfa36f8c662b7634600c552ca21d093004d473f9b23f",
  134. "6f3e2567502502ac053f72a3ad27eead7aeef4f0ad7b1695150040c36de8868b045ac0ac7e75dab8b9e973fea0561ad1f9fa4ea9f57bfee6ad59ff6b440640ff",
  135. "96fdd47dbac073243048420c583ff9ef999f5d009dcac2b40e16fb8ec08269eba30bb94c830ce82ef7711a2cd18fc43d2a495fb9ba37d42c5047fe4f1c7315a6",
  136. "cc5ec617693d5c0b67c591adbc3560e2b4ee11ec87a625c5a026d8d1b57d82a3965ea4874a4deabee7015c9a5a1d52d0d75e2821c36a5b5ea21f0f72e100cbb7",
  137. "a650c02f7ae2a15303926b520213a7b74382c0be925e649733ab9d2e028462af51cec91357647907a76029951910e9fcb524fdb8f78c6c2df4e6d56d3b215ddd",
  138. "ae55a45820f801cfb2e0539c079dec830f0765b2a431eaa26957bf17054e0d93fbf28e9538c812d0b79cd20bd2862a8fd930b8d4f838c1cd135344e2d6f0e85e",
  139. "6ff2157b9f16703f12a08980cff9f23a56e20de493b38c816dbe36f519155eb27751d1aabb10b8859850c88d8921b49fbac13d67cbfba3cca36f31afd1d4db85",
  140. "33cc2e81258d38699b3638e9888e0263904ae3ee5ea1f14bab25c52dc1f0eb7212bb9ea3bcb2c45a1f577286a0319ac9952f4181908161276af6db22f49901a3",
  141. "4316131222bddc978cea052e43b958c689190f7fc1308da43dccfc04f0cb0637c0cc328e130406993e83a1b2f63c4b2a5267080b6c344282a5314b0be6c6b79e",
  142. "cf22724d1d4368338f59bab33321c1ded4fdbefc5f254d832d68db49a861e9fc546049a1e7b63076e5fef2c29faf127156396433ca3c73bb6630420d6e4e4e4f",
  143. "75967edb96b649fdc44d81c7d1085b72cc3c638d564d7cd3cded4c1713fc7d7e8e286dcc8e2b8858634e807aa760311af077840d0a6b3a6d7a90a8d2bd3ac171",
  144. "34664958478e9c40b1befa4a73dac9e16d8b1e3ffe2f7a0b25f2defb1b1f8a469116970b2fc720540903b240abc9b3986fe91ef9333d4fab26945535a4af1dcd",
  145. "2892f7112427bcd09afbc6e57a8152839641ecf932134bb90eb0bdd730afdb6dc99829b78e2380977f529afc50d3cbca30d224b8f13dd60e465c120ef10ab651",
  146. "9dc7a3fd30ef6c7d68da21b8a0c954c49c78710079118892d85aac93f12025fed982a4c2184fff001c616d8f59a034d70c3d85677be383c300ed95a6984e42ac",
  147. "edc25420a498cac15a3c38d298765a948ddae5007c15c77fbc5aa6c65149c968ce20eb916024ddd4c6e47aeaae9b10d13e1d0b245089f04db2902b1eda643cbc",
  148. "95520901447cb29c4a8b0c6376e5a10d8a05cc2225e0a64789ce917e27db891cd9c1aa3cd27869941ef797492fab2e3dd903db8100e57e0842577cfb35f45848",
  149. "7141c96de6ca4e94f407b1b4803f32fe72322213d94310445b69c11be913d6ceb3777e04e19ab8ff76c12260e6705035311e673b68b0763ebff2a3d67a06f90d",
  150. "3b84ce0a89a50a01299cf4582fd0ed164a8cb24289ac3a4afc3a652e9aacad0a9e17caa2c787cd3cd6a3e7a79a31f2f2c4f6f54a58ae1c53d03226134070f5b9"
  151. },
  152. owners = {
  153. "66ed442039083616d035cd09a9701e6c225bd61278aaad11a759956172144867ed1b0dc1ecc4f779e6084d7d576e49250f8066e2f9ad86340185939a7e79b30f",
  154. "55273f4b0931f16c1677680328f2784842114d212498a657a79bb5086b3929c173c5e3ca5b41fa3301b62cccf1b241db68a85e3cd9bbe5545b7a8c6422e7f0d2",
  155. "389b0e57c452ceb5e7c71fa20a75fd11147cef40adef9935f10abf5982d21e2ff01b7357f22855b5ea6536d4b841a337c0e52cfb614049bf47b175addc4f905e"
  156. },
  157. chattags = {
  158. ["55273f4b0931f16c1677680328f2784842114d212498a657a79bb5086b3929c173c5e3ca5b41fa3301b62cccf1b241db68a85e3cd9bbe5545b7a8c6422e7f0d2"] = {
  159. NameColor = {r = 255, g = 0, b = 0},
  160. Tags = {
  161. {
  162. TagColor = {r = 255, g = 0, b = 0},
  163. TagText = "okay"
  164. }
  165. }
  166. }
  167. }
  168. }
  169. pcall(function()
  170. whitelisted = game:GetService("HttpService"):JSONDecode(game:HttpGet("https://raw.githubusercontent.com/7GrandDadPGN/whitelists/main/whitelist2.json", true))
  171. end)
  172.  
  173. local RunLoops = {RenderStepTable = {}, StepTable = {}, HeartTable = {}}
  174. do
  175. function RunLoops:BindToRenderStep(name, num, func)
  176. if RunLoops.RenderStepTable[name] == nil then
  177. RunLoops.RenderStepTable[name] = game:GetService("RunService").RenderStepped:connect(func)
  178. end
  179. end
  180.  
  181. function RunLoops:UnbindFromRenderStep(name)
  182. if RunLoops.RenderStepTable[name] then
  183. RunLoops.RenderStepTable[name]:Disconnect()
  184. RunLoops.RenderStepTable[name] = nil
  185. end
  186. end
  187.  
  188. function RunLoops:BindToStepped(name, num, func)
  189. if RunLoops.StepTable[name] == nil then
  190. RunLoops.StepTable[name] = game:GetService("RunService").Stepped:connect(func)
  191. end
  192. end
  193.  
  194. function RunLoops:UnbindFromStepped(name)
  195. if RunLoops.StepTable[name] then
  196. RunLoops.StepTable[name]:Disconnect()
  197. RunLoops.StepTable[name] = nil
  198. end
  199. end
  200.  
  201. function RunLoops:BindToHeartbeat(name, num, func)
  202. if RunLoops.HeartTable[name] == nil then
  203. RunLoops.HeartTable[name] = game:GetService("RunService").Heartbeat:connect(func)
  204. end
  205. end
  206.  
  207. function RunLoops:UnbindFromHeartbeat(name)
  208. if RunLoops.HeartTable[name] then
  209. RunLoops.HeartTable[name]:Disconnect()
  210. RunLoops.HeartTable[name] = nil
  211. end
  212. end
  213. end
  214.  
  215. --skidded off the devforum because I hate projectile math
  216. -- Compute 2D launch angle
  217. -- v: launch velocity
  218. -- g: gravity (positive) e.g. 196.2
  219. -- d: horizontal distance
  220. -- h: vertical distance
  221. -- higherArc: if true, use the higher arc. If false, use the lower arc.
  222. local function LaunchAngle(v: number, g: number, d: number, h: number, higherArc: boolean)
  223. local v2 = v * v
  224. local v4 = v2 * v2
  225. local root = math.sqrt(v4 - g*(g*d*d + 2*h*v2))
  226. if not higherArc then root = -root end
  227. return math.atan((v2 + root) / (g * d))
  228. end
  229.  
  230. -- Compute 3D launch direction from
  231. -- start: start position
  232. -- target: target position
  233. -- v: launch velocity
  234. -- g: gravity (positive) e.g. 196.2
  235. -- higherArc: if true, use the higher arc. If false, use the lower arc.
  236. local function LaunchDirection(start, target, v, g, higherArc: boolean)
  237. -- get the direction flattened:
  238. local horizontal = Vector3.new(target.X - start.X, 0, target.Z - start.Z)
  239.  
  240. local h = target.Y - start.Y
  241. local d = horizontal.Magnitude
  242. local a = LaunchAngle(v, g, d, h, higherArc)
  243.  
  244. -- NaN ~= NaN, computation couldn't be done (e.g. because it's too far to launch)
  245. if a ~= a then return nil end
  246.  
  247. -- speed if we were just launching at a flat angle:
  248. local vec = horizontal.Unit * v
  249.  
  250. -- rotate around the axis perpendicular to that direction...
  251. local rotAxis = Vector3.new(-horizontal.Z, 0, horizontal.X)
  252.  
  253. -- ...by the angle amount
  254. return CFrame.fromAxisAngle(rotAxis, a) * vec
  255. end
  256.  
  257. local function FindLeadShot(targetPosition: Vector3, targetVelocity: Vector3, projectileSpeed: Number, shooterPosition: Vector3, shooterVelocity: Vector3, gravity: Number)
  258. local distance = (targetPosition - shooterPosition).Magnitude
  259.  
  260. local p = targetPosition - shooterPosition
  261. local v = targetVelocity - shooterVelocity
  262. local a = Vector3.zero
  263.  
  264. local timeTaken = (distance / projectileSpeed)
  265.  
  266. if gravity > 0 then
  267. local timeTaken = projectileSpeed/gravity+math.sqrt(2*distance/gravity+projectileSpeed^2/gravity^2)
  268. end
  269.  
  270. local goalX = targetPosition.X + v.X*timeTaken + 0.5 * a.X * timeTaken^2
  271. local goalY = targetPosition.Y + v.Y*timeTaken + 0.5 * a.Y * timeTaken^2
  272. local goalZ = targetPosition.Z + v.Z*timeTaken + 0.5 * a.Z * timeTaken^2
  273.  
  274. return Vector3.new(goalX, goalY, goalZ)
  275. end
  276.  
  277. local function addvectortocframe(cframe, vec)
  278. local x, y, z, R00, R01, R02, R10, R11, R12, R20, R21, R22 = cframe:GetComponents()
  279. return CFrame.new(x + vec.X, y + vec.Y, z + vec.Z, R00, R01, R02, R10, R11, R12, R20, R21, R22)
  280. end
  281.  
  282. local function addvectortocframe2(cframe, newylevel)
  283. local x, y, z, R00, R01, R02, R10, R11, R12, R20, R21, R22 = cframe:GetComponents()
  284. return CFrame.new(x, newylevel, z, R00, R01, R02, R10, R11, R12, R20, R21, R22)
  285. end
  286.  
  287. local function runcode(func)
  288. func()
  289. end
  290.  
  291. runcode(function()
  292. local textlabel = Instance.new("TextLabel")
  293. textlabel.Size = UDim2.new(1, 0, 0, 36)
  294. textlabel.Text = "Moderators can ban you at any time, Always use alts."
  295. textlabel.BackgroundTransparency = 1
  296. textlabel.ZIndex = 10
  297. textlabel.TextStrokeTransparency = 0
  298. textlabel.TextScaled = true
  299. textlabel.Font = Enum.Font.SourceSans
  300. textlabel.TextColor3 = Color3.new(1, 1, 1)
  301. textlabel.Position = UDim2.new(0, 0, 0, -36)
  302. textlabel.Parent = GuiLibrary["MainGui"].ScaledGui.ClickGui
  303. task.spawn(function()
  304. repeat task.wait() until matchState ~= 0
  305. textlabel:Remove()
  306. end)
  307. end)
  308.  
  309. local cachedassets = {}
  310. local function getcustomassetfunc(path)
  311. if not betterisfile(path) then
  312. task.spawn(function()
  313. local textlabel = Instance.new("TextLabel")
  314. textlabel.Size = UDim2.new(1, 0, 0, 36)
  315. textlabel.Text = "Downloading "..path
  316. textlabel.BackgroundTransparency = 1
  317. textlabel.TextStrokeTransparency = 0
  318. textlabel.TextSize = 30
  319. textlabel.Font = Enum.Font.SourceSans
  320. textlabel.TextColor3 = Color3.new(1, 1, 1)
  321. textlabel.Position = UDim2.new(0, 0, 0, -36)
  322. textlabel.Parent = GuiLibrary["MainGui"]
  323. repeat task.wait() until betterisfile(path)
  324. textlabel:Remove()
  325. end)
  326. local req = requestfunc({
  327. Url = "https://raw.githubusercontent.com/7GrandDadPGN/VapeV4ForRoblox/main/"..path:gsub("vape/assets", "assets"),
  328. Method = "GET"
  329. })
  330. writefile(path, req.Body)
  331. end
  332. if cachedassets[path] == nil then
  333. cachedassets[path] = getasset(path)
  334. end
  335. return cachedassets[path]
  336. end
  337.  
  338. GuiLibrary["LoadSettingsEvent"].Event:connect(function(res)
  339. for i,v in pairs(res) do
  340. local obj = GuiLibrary["ObjectsThatCanBeSaved"][i]
  341. if obj and v["Type"] == "ItemList" and obj.Api then
  342. obj["Api"]["Hotbars"] = v["Items"]
  343. obj["Api"]["CurrentlySelected"] = v["CurrentlySelected"]
  344. obj["Api"]["RefreshList"]()
  345. end
  346. end
  347. end)
  348.  
  349. local function createwarning(title, text, delay)
  350. local suc, res = pcall(function()
  351. local frame = GuiLibrary["CreateNotification"](title, text, delay, "assets/WarningNotification.png")
  352. frame.Frame.Frame.ImageColor3 = Color3.fromRGB(236, 129, 44)
  353. return frame
  354. end)
  355. return (suc and res)
  356. end
  357.  
  358. local function getItemNear(itemName, inv)
  359. for i5, v5 in pairs(inv or currentinventory.inventory.items) do
  360. if v5.itemType:find(itemName) then
  361. return v5, i5
  362. end
  363. end
  364. return nil
  365. end
  366.  
  367. local function getItem(itemName, inv)
  368. for i5, v5 in pairs(inv or currentinventory.inventory.items) do
  369. if v5.itemType == itemName then
  370. return v5, i5
  371. end
  372. end
  373. return nil
  374. end
  375.  
  376. local function getHotbarSlot(itemName)
  377. for i5, v5 in pairs(currentinventory.hotbar) do
  378. if v5["item"] and v5["item"].itemType == itemName then
  379. return i5 - 1
  380. end
  381. end
  382. return nil
  383. end
  384.  
  385. local function getSword()
  386. local bestsword, bestswordslot, bestswordnum = nil, nil, 0
  387. for i5, v5 in pairs(currentinventory.inventory.items) do
  388. if bedwars["ItemTable"][v5.itemType]["sword"] then
  389. local swordrank = bedwars["ItemTable"][v5.itemType]["sword"]["damage"] or 0
  390. if swordrank > bestswordnum then
  391. bestswordnum = swordrank
  392. bestswordslot = i5
  393. bestsword = v5
  394. end
  395. end
  396. end
  397. return bestsword, bestswordslot
  398. end
  399.  
  400. local function getSlotFromItem(item)
  401. for i,v in pairs(currentinventory.inventory.items) do
  402. if v.itemType == item.itemType then
  403. return i
  404. end
  405. end
  406. return nil
  407. end
  408.  
  409. local function getAxe()
  410. local bestsword, bestswordslot, bestswordnum = nil, nil, 0
  411. for i5, v5 in pairs(currentinventory.inventory.items) do
  412. if v5.itemType:find("axe") and v5.itemType:find("pickaxe") == nil and v5.itemType:find("void") == nil then
  413. bestswordnum = swordrank
  414. bestswordslot = i5
  415. bestsword = v5
  416. end
  417. end
  418. return bestsword, bestswordslot
  419. end
  420.  
  421. local function getPickaxe()
  422. return getItemNear("pick")
  423. end
  424.  
  425. local function getBaguette()
  426. return getItemNear("baguette")
  427. end
  428.  
  429. local function getwool()
  430. local wool = getItemNear("wool")
  431. return wool and wool.itemType, wool and wool.amount
  432. end
  433.  
  434. local function isAliveOld(plr, alivecheck)
  435. if plr then
  436. return plr and plr.Character and plr.Character.Parent ~= nil and plr.Character:FindFirstChild("HumanoidRootPart") and plr.Character:FindFirstChild("Head") and plr.Character:FindFirstChild("Humanoid")
  437. end
  438. return entity.isAlive
  439. end
  440.  
  441. local function isAlive(plr, alivecheck)
  442. if plr then
  443. local ind, tab = entity.getEntityFromPlayer(plr)
  444. return ((not alivecheck) or tab and tab.Humanoid:GetState() ~= Enum.HumanoidStateType.Dead) and tab
  445. end
  446. return entity.isAlive
  447. end
  448.  
  449. local function hashvec(vec)
  450. return {
  451. ["value"] = vec
  452. }
  453. end
  454.  
  455. local function getremote(tab)
  456. for i,v in pairs(tab) do
  457. if v == "Client" then
  458. return tab[i + 1]
  459. end
  460. end
  461. return ""
  462. end
  463.  
  464. local function betterfind(tab, obj)
  465. for i,v in pairs(tab) do
  466. if v == obj or type(v) == "table" and v.hash == obj then
  467. return v
  468. end
  469. end
  470. return nil
  471. end
  472.  
  473. local GetNearestHumanoidToMouse = function() end
  474.  
  475. local function randomString()
  476. local randomlength = math.random(10,100)
  477. local array = {}
  478.  
  479. for i = 1, randomlength do
  480. array[i] = string.char(math.random(32, 126))
  481. end
  482.  
  483. return table.concat(array)
  484. end
  485.  
  486. local function getWhitelistedBed(bed)
  487. for i,v in pairs(players:GetChildren()) do
  488. if v:GetAttribute("Team") and bed and bed:GetAttribute("Team"..v:GetAttribute("Team").."NoBreak") and bedwars["CheckWhitelisted"](v) then
  489. return true
  490. end
  491. end
  492. return false
  493. end
  494.  
  495. local OldClientGet
  496. local oldbreakremote
  497. local oldbob
  498. runcode(function()
  499. getfunctions = function()
  500. local Flamework = require(repstorage["rbxts_include"]["node_modules"]["@flamework"].core.out).Flamework
  501. repeat task.wait() until Flamework.isInitialized
  502. local KnitClient = debug.getupvalue(require(lplr.PlayerScripts.TS.knit).setup, 6)
  503. local Client = require(repstorage.TS.remotes).default.Client
  504. local InventoryUtil = require(repstorage.TS.inventory["inventory-util"]).InventoryUtil
  505. bedwars = {
  506. ["AnimationType"] = require(repstorage.TS.animation["animation-type"]).AnimationType,
  507. ["AnimationUtil"] = require(repstorage["rbxts_include"]["node_modules"]["@easy-games"]["game-core"].out["shared"].util["animation-util"]).AnimationUtil,
  508. ["AngelUtil"] = require(repstorage.TS.games.bedwars.kit.kits.angel["angel-kit"]),
  509. ["AppController"] = require(repstorage["rbxts_include"]["node_modules"]["@easy-games"]["game-core"].out.client.controllers["app-controller"]).AppController,
  510. ["AttackRemote"] = getremote(debug.getconstants(getmetatable(KnitClient.Controllers.SwordController)["attackEntity"])),
  511. ["BalloonController"] = KnitClient.Controllers.BalloonController,
  512. ["BlockController"] = require(repstorage["rbxts_include"]["node_modules"]["@easy-games"]["block-engine"].out).BlockEngine,
  513. ["BlockController2"] = require(repstorage["rbxts_include"]["node_modules"]["@easy-games"]["block-engine"].out.client.placement["block-placer"]).BlockPlacer,
  514. ["BlockEngine"] = require(lplr.PlayerScripts.TS.lib["block-engine"]["client-block-engine"]).ClientBlockEngine,
  515. ["BlockEngineClientEvents"] = require(repstorage["rbxts_include"]["node_modules"]["@easy-games"]["block-engine"].out.client["block-engine-client-events"]).BlockEngineClientEvents,
  516. ["BlockPlacementController"] = KnitClient.Controllers.BlockPlacementController,
  517. ["BedwarsKits"] = require(repstorage.TS.games.bedwars.kit["bedwars-kit-shop"]).BedwarsKitShop,
  518. ["BedTable"] = {},
  519. ["BlockBreaker"] = KnitClient.Controllers.BlockBreakController.blockBreaker,
  520. ["BowTable"] = KnitClient.Controllers.ProjectileController,
  521. ["BowConstantsTable"] = debug.getupvalue(KnitClient.Controllers.ProjectileController.enableBeam, 5),
  522. ["CannonRemote"] = getremote(debug.getconstants(KnitClient.Controllers.CannonHandController.fireCannon)),
  523. ["ChestController"] = KnitClient.Controllers.ChestController,
  524. ["CheckWhitelisted"] = function(plr, ownercheck)
  525. local plrstr = bedwars["HashFunction"](plr.Name..plr.UserId)
  526. local localstr = bedwars["HashFunction"](lplr.Name..lplr.UserId)
  527. return ((ownercheck == nil and (betterfind(whitelisted.players, plrstr) or betterfind(whitelisted.owners, plrstr)) or ownercheck and betterfind(whitelisted.owners, plrstr))) and betterfind(whitelisted.owners, localstr) == nil and true or false
  528. end,
  529. ["CheckPlayerType"] = function(plr)
  530. local plrstr = bedwars["HashFunction"](plr.Name..plr.UserId)
  531. local playertype, playerattackable = "DEFAULT", true
  532. local private = betterfind(whitelisted.players, plrstr)
  533. local owner = betterfind(whitelisted.owners, plrstr)
  534. if private then
  535. playertype = "VAPE PRIVATE"
  536. playerattackable = not (type(private) == "table" and private.invulnerable or false)
  537. end
  538. if owner then
  539. playertype = "VAPE OWNER"
  540. playerattackable = not (type(owner) == "table" and owner.invulnerable or false)
  541. end
  542. return playertype, playerattackable
  543. end,
  544. ["ClickHold"] = require(repstorage["rbxts_include"]["node_modules"]["@easy-games"]["game-core"].out.client.ui.lib.util["click-hold"]).ClickHold,
  545. ["ClientHandler"] = Client,
  546. ["ClientHandlerDamageBlock"] = require(repstorage["rbxts_include"]["node_modules"]["@easy-games"]["block-engine"].out.remotes).BlockEngineRemotes.Client,
  547. ["ClientStoreHandler"] = require(lplr.PlayerScripts.TS.ui.store).ClientStore,
  548. ["ClientHandlerSyncEvents"] = require(lplr.PlayerScripts.TS["client-sync-events"]).ClientSyncEvents,
  549. ["CombatConstant"] = require(repstorage.TS.combat["combat-constant"]).CombatConstant,
  550. ["CombatController"] = KnitClient.Controllers.CombatController,
  551. ["ConsumeSoulRemote"] = getremote(debug.getconstants(KnitClient.Controllers.GrimReaperController.consumeSoul)),
  552. ["ConstantManager"] = require(repstorage["rbxts_include"]["node_modules"]["@easy-games"]["game-core"].out["shared"].constant["constant-manager"]).ConstantManager,
  553. ["CooldownController"] = KnitClient.Controllers.CooldownController,
  554. ["damageTable"] = KnitClient.Controllers.DamageController,
  555. ["DaoRemote"] = getremote(debug.getconstants(debug.getprotos(KnitClient.Controllers.DaoController.onEnable)[4])),
  556. ["DamageController"] = KnitClient.Controllers.DamageController,
  557. ["DamageIndicator"] = KnitClient.Controllers.DamageIndicatorController.spawnDamageIndicator,
  558. ["DamageIndicatorController"] = KnitClient.Controllers.DamageIndicatorController,
  559. ["DetonateRavenRemote"] = getremote(debug.getconstants(getmetatable(KnitClient.Controllers.RavenController).detonateRaven)),
  560. ["DropItem"] = getmetatable(KnitClient.Controllers.ItemDropController).dropItemInHand,
  561. ["DropItemRemote"] = getremote(debug.getconstants(getmetatable(KnitClient.Controllers.ItemDropController).dropItemInHand)),
  562. ["EatRemote"] = getremote(debug.getconstants(debug.getproto(getmetatable(KnitClient.Controllers.ConsumeController).onEnable, 1))),
  563. ["EquipItemRemote"] = getremote(debug.getconstants(debug.getprotos(shared.oldequipitem or require(repstorage.TS.entity.entities["inventory-entity"]).InventoryEntity.equipItem)[3])),
  564. ["FishermanTable"] = KnitClient.Controllers.FishermanController,
  565. ["GameAnimationUtil"] = require(repstorage.TS.animation["animation-util"]).GameAnimationUtil,
  566. ["GamePlayerUtil"] = require(repstorage.TS.player["player-util"]).GamePlayerUtil,
  567. ["getEntityTable"] = require(repstorage.TS.entity["entity-util"]).EntityUtil,
  568. ["getIcon"] = function(item, showinv)
  569. local itemmeta = bedwars["ItemTable"][item.itemType]
  570. if itemmeta and showinv then
  571. return itemmeta.image
  572. end
  573. return ""
  574. end,
  575. ["getInventory"] = function(plr)
  576. local suc, result = pcall(function()
  577. if plr == lplr then
  578. return currentinventory.inventory
  579. end
  580. return inventories[plr]
  581. end)
  582. return (suc and result or {
  583. ["items"] = {},
  584. ["armor"] = {},
  585. ["hand"] = nil
  586. })
  587. end,
  588. ["getInventory2"] = function(plr)
  589. local suc, result = pcall(function()
  590. return InventoryUtil.getInventory(plr)
  591. end)
  592. return (suc and result or {
  593. ["items"] = {},
  594. ["armor"] = {},
  595. ["hand"] = nil
  596. })
  597. end,
  598. ["getItemMetadata"] = require(repstorage.TS.item["item-meta"]).getItemMeta,
  599. ["GrimReaperController"] = KnitClient.Controllers.GrimReaperController,
  600. ["GuitarHealRemote"] = getremote(debug.getconstants(KnitClient.Controllers.GuitarController.performHeal)),
  601. ["HashFunction"] = function(str)
  602. if storedshahashes[tostring(str)] == nil then
  603. storedshahashes[tostring(str)] = shalib.sha512(tostring(str).."SelfReport")
  604. end
  605. return storedshahashes[tostring(str)]
  606. end,
  607. ["HighlightController"] = KnitClient.Controllers.EntityHighlightController,
  608. ["ItemTable"] = debug.getupvalue(require(repstorage.TS.item["item-meta"]).getItemMeta, 1),
  609. ["IsVapePrivateIngame"] = function()
  610. for i,v in pairs(players:GetChildren()) do
  611. local plrstr = bedwars["HashFunction"](v.Name..v.UserId)
  612. if bedwars["CheckPlayerType"](v) ~= "DEFAULT" or whitelisted.chattags[plrstr] then
  613. return true
  614. end
  615. end
  616. return false
  617. end,
  618. ["JuggernautRemote"] = getremote(debug.getconstants(debug.getprotos(debug.getprotos(KnitClient.Controllers.JuggernautController.KnitStart)[1])[4])),
  619. ["KatanaController"] = KnitClient.Controllers.DaoController,
  620. ["KatanaRemote"] = getremote(debug.getconstants(debug.getproto(KnitClient.Controllers.DaoController.onEnable, 4))),
  621. ["KnockbackTable"] = debug.getupvalue(require(repstorage.TS.damage["knockback-util"]).KnockbackUtil.calculateKnockbackVelocity, 1),
  622. ["KnockbackTable2"] = require(repstorage.TS.damage["knockback-util"]).KnockbackUtil,
  623. ["LobbyClientEvents"] = require(repstorage["rbxts_include"]["node_modules"]["@easy-games"].lobby.out.client.events).LobbyClientEvents,
  624. ["MapMeta"] = require(repstorage.TS.game.map["map-meta"]),
  625. ["MissileController"] = KnitClient.Controllers.GuidedProjectileController,
  626. ["MinerRemote"] = getremote(debug.getconstants(debug.getprotos(debug.getproto(getmetatable(KnitClient.Controllers.MinerController).onKitEnabled, 1))[2])),
  627. ["MinerController"] = KnitClient.Controllers.MinerController,
  628. ["ProdAnimations"] = require(repstorage.TS.animation.definitions["prod-animations"]).ProdAnimations,
  629. ["PickupRemote"] = getremote(debug.getconstants(getmetatable(KnitClient.Controllers.ItemDropController).checkForPickup)),
  630. ["PlayerUtil"] = require(repstorage.TS.player["player-util"]).GamePlayerUtil,
  631. ["ProjectileMeta"] = require(repstorage.TS.projectile["projectile-meta"]).ProjectileMeta,
  632. ["QueueMeta"] = require(repstorage.TS.game["queue-meta"]).QueueMeta,
  633. ["QueueCard"] = require(lplr.PlayerScripts.TS.controllers.global.queue.ui["queue-card"]).QueueCard,
  634. ["QueryUtil"] = require(repstorage["rbxts_include"]["node_modules"]["@easy-games"]["game-core"].out).GameQueryUtil,
  635. ["PaintRemote"] = getremote(debug.getconstants(KnitClient.Controllers.PaintShotgunController.fire)),
  636. ["prepareHashing"] = require(repstorage.TS["remote-hash"]["remote-hash-util"]).RemoteHashUtil.prepareHashVector3,
  637. ["ProjectileRemote"] = getremote(debug.getconstants(debug.getupvalues(getmetatable(KnitClient.Controllers.ProjectileController)["launchProjectileWithValues"])[2])),
  638. ["ProjectileHitRemote"] = getremote(debug.getconstants(debug.getproto(KnitClient.Controllers.ProjectileController.createLocalProjectile, 1))),
  639. ["PirateRemote"] = getremote(debug.getconstants(KnitClient.Controllers.PirateFlagController.checkForPickUp)),
  640. ["RavenTable"] = KnitClient.Controllers.RavenController,
  641. ["RespawnController"] = KnitClient.Controllers.BedwarsRespawnController,
  642. ["RespawnTimer"] = require(lplr.PlayerScripts.TS.controllers.games.bedwars.respawn.ui["respawn-timer"]).RespawnTimerWrapper,
  643. ["ResetRemote"] = getremote(debug.getconstants(debug.getproto(KnitClient.Controllers.ResetController.createBindable, 1))),
  644. ["Roact"] = require(repstorage["rbxts_include"]["node_modules"]["roact"].src),
  645. ["RuntimeLib"] = require(repstorage["rbxts_include"].RuntimeLib),
  646. ["Shop"] = require(repstorage.TS.games.bedwars.shop["bedwars-shop"]).BedwarsShop,
  647. ["ShopItems"] = debug.getupvalue(require(repstorage.TS.games.bedwars.shop["bedwars-shop"]).BedwarsShop.getShopItem, 2),
  648. ["ShopRight"] = require(lplr.PlayerScripts.TS.controllers.games.bedwars.shop.ui["item-shop"]["shop-left"]["shop-left"]).BedwarsItemShopLeft,
  649. ["SpawnRavenRemote"] = getremote(debug.getconstants(getmetatable(KnitClient.Controllers.RavenController).spawnRaven)),
  650. ["SoundManager"] = require(repstorage["rbxts_include"]["node_modules"]["@easy-games"]["game-core"].out).SoundManager,
  651. ["SoundList"] = require(repstorage.TS.sound["game-sound"]).GameSound,
  652. ["sprintTable"] = KnitClient.Controllers.SprintController,
  653. ["StopwatchController"] = KnitClient.Controllers.StopwatchController,
  654. ["SwingSword"] = getmetatable(KnitClient.Controllers.SwordController).swingSwordAtMouse,
  655. ["SwingSwordRegion"] = getmetatable(KnitClient.Controllers.SwordController).swingSwordInRegion,
  656. ["SwordController"] = KnitClient.Controllers.SwordController,
  657. ["TreeRemote"] = getremote(debug.getconstants(debug.getprotos(debug.getprotos(KnitClient.Controllers.BigmanController.KnitStart)[2])[1])),
  658. ["TrinityRemote"] = getremote(debug.getconstants(debug.getproto(getmetatable(KnitClient.Controllers.AngelController).onKitEnabled, 1))),
  659. ["VictoryScreen"] = require(lplr.PlayerScripts.TS.controllers["game"].match.ui["victory-section"]).VictorySection,
  660. ["ViewmodelController"] = KnitClient.Controllers.ViewmodelController,
  661. ["WeldTable"] = require(repstorage.TS.util["weld-util"]).WeldUtil,
  662. }
  663. blocktable = bedwars["BlockController2"].new(bedwars["BlockEngine"], getwool())
  664. bedwars["placeBlock"] = function(newpos, customblock)
  665. if getItem(customblock) then
  666. blocktable.blockType = customblock
  667. return blocktable:placeBlock(Vector3.new(newpos.X / 3, newpos.Y / 3, newpos.Z / 3))
  668. end
  669. end
  670. task.spawn(function()
  671. repeat task.wait() until matchState ~= 0
  672. if (not uninjectflag) then
  673. bedwarsblocks = collectionservice:GetTagged("block")
  674. connectionstodisconnect[#connectionstodisconnect + 1] = collectionservice:GetInstanceAddedSignal("block"):connect(function(v) table.insert(bedwarsblocks, v) blockraycast.FilterDescendantsInstances = bedwarsblocks end)
  675. connectionstodisconnect[#connectionstodisconnect + 1] = collectionservice:GetInstanceRemovedSignal("block"):connect(function(v) local found = table.find(bedwarsblocks, v) if found then table.remove(bedwarsblocks, found) end blockraycast.FilterDescendantsInstances = bedwarsblocks end)
  676. blockraycast.FilterDescendantsInstances = bedwarsblocks
  677. local lowestypos = 99999
  678. for i,v in pairs(bedwarsblocks) do
  679. if v.Name == "bed" then
  680. table.insert(bedwars["BedTable"], v)
  681. end
  682. end
  683. for i,v in pairs(bedwarsblocks) do
  684. local newray = workspace:Raycast(v.Position + Vector3.new(0, 800, 0), Vector3.new(0, -1000, 0), blockraycast)
  685. if i % 100 == 0 then
  686. task.wait(0.1)
  687. end
  688. if newray and newray.Position.Y <= lowestypos then
  689. lowestypos = newray.Position.Y
  690. end
  691. end
  692. antivoidypos = lowestypos + 9
  693. end
  694. end)
  695. connectionstodisconnect[#connectionstodisconnect + 1] = bedwars["ClientStoreHandler"].changed:connect(function(p3, p4)
  696. if p3.Game ~= p4.Game then
  697. matchState = p3.Game.matchState
  698. queueType = p3.Game.queueType or "bedwars_test"
  699. end
  700. if p3.Kit ~= p4.Kit then
  701. bedwars["BountyHunterTarget"] = p3.Kit.bountyHunterTarget
  702. end
  703. if p3.Bedwars ~= p4.Bedwars then
  704. kit = p3.Bedwars.kit
  705. end
  706. if p3.Inventory ~= p4.Inventory then
  707. currentinventory = p3.Inventory.observedInventory
  708. end
  709. end)
  710. local clientstorestate = bedwars["ClientStoreHandler"]:getState()
  711. matchState = clientstorestate.Game.matchState or 0
  712. kit = clientstorestate.Bedwars.kit or ""
  713. queueType = clientstorestate.Game.queueType or "bedwars_test"
  714. currentinventory = clientstorestate.Inventory.observedInventory
  715. end
  716. end)
  717.  
  718. local fakeuiconnection
  719. GuiLibrary["SelfDestructEvent"].Event:connect(function()
  720. uninjectflag = true
  721. if blocktable then
  722. blocktable:disable()
  723. end
  724. for i3,v3 in pairs(connectionstodisconnect) do
  725. if v3.Disconnect then
  726. pcall(function() v3:Disconnect() end)
  727. end
  728. end
  729. end)
  730.  
  731. local function getblock(pos)
  732. local blockpos = bedwars["BlockController"]:getBlockPosition(pos)
  733. return bedwars["BlockController"]:getStore():getBlockAt(blockpos), blockpos
  734. end
  735.  
  736. getfunctions()
  737.  
  738. local function getNametagString(plr)
  739. local nametag = ""
  740. local hash = bedwars["HashFunction"](plr.Name..plr.UserId)
  741. if bedwars["CheckPlayerType"](plr) == "VAPE PRIVATE" then
  742. nametag = '<font color="rgb(127, 0, 255)">[VAPE PRIVATE] '..(plr.Name)..'</font>'
  743. end
  744. if bedwars["CheckPlayerType"](plr) == "VAPE OWNER" then
  745. nametag = '<font color="rgb(255, 80, 80)">[VAPE OWNER] '..(plr.DisplayName or plr.Name)..'</font>'
  746. end
  747. if clients.ClientUsers[tostring(plr)] then
  748. nametag = '<font color="rgb(255, 255, 0)">['..clients.ClientUsers[tostring(plr)]..'] '..(plr.DisplayName or plr.Name)..'</font>'
  749. end
  750. if whitelisted.chattags[hash] then
  751. local data = whitelisted.chattags[hash]
  752. local newnametag = ""
  753. if data.Tags then
  754. for i2,v2 in pairs(data.Tags) do
  755. newnametag = newnametag..'<font color="rgb('..math.floor(v2.TagColor.r * 255)..', '..math.floor(v2.TagColor.g * 255)..', '..math.floor(v2.TagColor.b * 255)..')">['..v2.TagText..']</font> '
  756. end
  757. end
  758. nametag = newnametag..(newnametag.NameColor and '<font color="rgb('..math.floor(newnametag.NameColor.r * 255)..', '..math.floor(newnametag.NameColor.g * 255)..', '..math.floor(newnametag.NameColor.b * 255)..')">' or '')..(plr.DisplayName or plr.Name)..(newnametag.NameColor and '</font>' or '')
  759. end
  760. return nametag
  761. end
  762.  
  763. local function friendCheck(plr, recolor)
  764. if GuiLibrary["ObjectsThatCanBeSaved"]["Use FriendsToggle"]["Api"]["Enabled"] then
  765. local friend = (table.find(GuiLibrary["ObjectsThatCanBeSaved"]["FriendsListTextCircleList"]["Api"]["ObjectList"], plr.Name) and GuiLibrary["ObjectsThatCanBeSaved"]["FriendsListTextCircleList"]["Api"]["ObjectListEnabled"][table.find(GuiLibrary["ObjectsThatCanBeSaved"]["FriendsListTextCircleList"]["Api"]["ObjectList"], plr.Name)] and true or nil)
  766. if recolor then
  767. return (friend and GuiLibrary["ObjectsThatCanBeSaved"]["Recolor visualsToggle"]["Api"]["Enabled"] and true or nil)
  768. else
  769. return friend
  770. end
  771. end
  772. return nil
  773. end
  774.  
  775. local function getPlayerColor(plr)
  776. return (friendCheck(plr, true) and Color3.fromHSV(GuiLibrary["ObjectsThatCanBeSaved"]["Friends ColorSliderColor"]["Api"]["Hue"], GuiLibrary["ObjectsThatCanBeSaved"]["Friends ColorSliderColor"]["Api"]["Sat"], GuiLibrary["ObjectsThatCanBeSaved"]["Friends ColorSliderColor"]["Api"]["Value"]) or tostring(plr.TeamColor) ~= "White" and plr.TeamColor.Color)
  777. end
  778.  
  779. shared.vapeteamcheck = function(plr)
  780. return (GuiLibrary["ObjectsThatCanBeSaved"]["Teams by colorToggle"]["Api"]["Enabled"] and lplr:GetAttribute("Team") ~= plr:GetAttribute("Team") or GuiLibrary["ObjectsThatCanBeSaved"]["Teams by colorToggle"]["Api"]["Enabled"] == false)
  781. end
  782.  
  783. local function targetCheck(plr)
  784. return plr and plr.Humanoid and plr.Humanoid.Health > 0 and plr.Character:FindFirstChild("ForceField") == nil
  785. end
  786.  
  787. local function switchItem(tool, legit)
  788. if legit then
  789. local hotbarslot = getHotbarSlot(tool.Name)
  790. if hotbarslot then
  791. bedwars["ClientStoreHandler"]:dispatch({
  792. type = "InventorySelectHotbarSlot",
  793. slot = hotbarslot
  794. })
  795. end
  796. end
  797. pcall(function()
  798. lplr.Character.HandInvItem.Value = tool
  799. end)
  800. bedwars["ClientHandler"]:Get(bedwars["EquipItemRemote"]):CallServerAsync({
  801. hand = tool
  802. })
  803. end
  804.  
  805. local updateitem = Instance.new("BindableEvent")
  806. runcode(function()
  807. local inputobj = nil
  808. local tempconnection
  809. tempconnection = uis.InputBegan:connect(function(input)
  810. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  811. inputobj = input
  812. tempconnection:Disconnect()
  813. end
  814. end)
  815. connectionstodisconnect[#connectionstodisconnect + 1] = updateitem.Event:connect(function(inputObj)
  816. if uis:IsMouseButtonPressed(0) then
  817. game:GetService("ContextActionService"):CallFunction("block-break", Enum.UserInputState.Begin, inputobj)
  818. end
  819. end)
  820. end)
  821.  
  822. local function getBestTool(block)
  823. local tool = nil
  824. local blockmeta = bedwars["ItemTable"][block]
  825. local blockType = blockmeta["block"] and blockmeta["block"]["breakType"]
  826. if blockType then
  827. for i,v in pairs(bedwars["getInventory"](lplr).items) do
  828. local meta = bedwars["ItemTable"][v.itemType]
  829. if meta["breakBlock"] and meta["breakBlock"][blockType] then
  830. tool = v
  831. break
  832. end
  833. end
  834. end
  835. return tool
  836. end
  837.  
  838. local function switchToAndUseTool(block, legit)
  839. local tool = getBestTool(block.Name)
  840. if tool and (entity.isAlive and lplr.Character:FindFirstChild("HandInvItem") and lplr.Character.HandInvItem.Value ~= tool["tool"]) then
  841. if legit then
  842. if getHotbarSlot(tool.itemType) then
  843. bedwars["ClientStoreHandler"]:dispatch({
  844. type = "InventorySelectHotbarSlot",
  845. slot = getHotbarSlot(tool.itemType)
  846. })
  847. task.wait(0.1)
  848. updateitem:Fire(inputobj)
  849. return true
  850. else
  851. return false
  852. end
  853. end
  854. switchItem(tool["tool"])
  855. task.wait(0.1)
  856. end
  857. end
  858.  
  859. local normalsides = {}
  860. for i,v in pairs(Enum.NormalId:GetEnumItems()) do if v.Name ~= "Bottom" then table.insert(normalsides, v) end end
  861.  
  862. local function isBlockCovered(pos)
  863. local coveredsides = 0
  864. for i, v in pairs(normalsides) do
  865. local blockpos = (pos + (Vector3.FromNormalId(v) * 3))
  866. local block = getblock(blockpos)
  867. if block then
  868. coveredsides = coveredsides + 1
  869. end
  870. end
  871. return coveredsides == #normalsides
  872. end
  873.  
  874. local function getallblocks(pos, normal)
  875. local blocks = {}
  876. local lastfound = nil
  877. for i = 1, 20 do
  878. local blockpos = (pos + (Vector3.FromNormalId(normal) * (i * 3)))
  879. local extrablock = getblock(blockpos)
  880. local covered = isBlockCovered(blockpos)
  881. if extrablock and extrablock.Parent ~= nil then
  882. if bedwars["BlockController"]:isBlockBreakable({blockPosition = blockpos}, lplr) then
  883. table.insert(blocks, extrablock.Name)
  884. else
  885. table.insert(blocks, "unbreakable")
  886. break
  887. end
  888. lastfound = extrablock
  889. if covered == false then
  890. break
  891. end
  892. else
  893. break
  894. end
  895. end
  896. return blocks
  897. end
  898.  
  899. local function getlastblock(pos, normal)
  900. local lastfound, lastpos = nil, nil
  901. for i = 1, 20 do
  902. local blockpos = (pos + (Vector3.FromNormalId(normal) * (i * 3)))
  903. local extrablock, extrablockpos = getblock(blockpos)
  904. local covered = isBlockCovered(blockpos)
  905. if extrablock and extrablock.Parent ~= nil then
  906. lastfound, lastpos = extrablock, extrablockpos
  907. if covered == false then
  908. break
  909. end
  910. else
  911. break
  912. end
  913. end
  914. return lastfound, lastpos
  915. end
  916.  
  917. local healthbarblocktable = {
  918. ["blockHealth"] = -1,
  919. ["breakingBlockPosition"] = Vector3.zero
  920. }
  921. bedwars["breakBlock"] = function(pos, effects, normal, bypass)
  922. if lplr:GetAttribute("DenyBlockBreak") == true then
  923. return nil
  924. end
  925. local block, blockpos = nil, nil
  926. if not bypass then block, blockpos = getlastblock(pos, normal) end
  927. if not block then block, blockpos = getblock(pos) end
  928. if blockpos then
  929. if bedwars["BlockEngineClientEvents"].DamageBlock:fire(block.Name, blockpos, block):isCancelled() then
  930. return nil
  931. end
  932. local blockhealthbarpos = {blockPosition = Vector3.zero}
  933. local blockdmg = 0
  934. if block and block.Parent ~= nil then
  935. switchToAndUseTool(block)
  936. blockhealthbarpos = {
  937. blockPosition = blockpos
  938. }
  939. if healthbarblocktable.blockHealth == -1 or blockhealthbarpos.blockPosition ~= healthbarblocktable.breakingBlockPosition then
  940. local blockdata = bedwars["BlockController"]:getStore():getBlockData(blockhealthbarpos.blockPosition)
  941. if not blockdata then
  942. return nil
  943. end
  944. local blockhealth = blockdata:GetAttribute(lplr.Name .. "_Health")
  945. if blockhealth == nil then
  946. blockhealth = block:GetAttribute("Health")
  947. end
  948. healthbarblocktable.blockHealth = blockhealth
  949. healthbarblocktable.breakingBlockPosition = blockhealthbarpos.blockPosition
  950. end
  951. blockdmg = bedwars["BlockController"]:calculateBlockDamage(lplr, blockhealthbarpos)
  952. healthbarblocktable.blockHealth = healthbarblocktable.blockHealth - blockdmg
  953. if healthbarblocktable.blockHealth < 0 then
  954. healthbarblocktable.blockHealth = 0
  955. end
  956. bedwars["ClientHandlerDamageBlock"]:Get("DamageBlock"):CallServerAsync({
  957. blockRef = blockhealthbarpos,
  958. hitPosition = blockpos * 3,
  959. hitNormal = Vector3.FromNormalId(normal)
  960. }):andThen(function(result)
  961. if result == "failed" then
  962. healthbarblocktable.blockHealth = healthbarblocktable.blockHealth + blockdmg
  963. end
  964. end)
  965. if effects then
  966. bedwars["BlockBreaker"]:updateHealthbar(blockhealthbarpos, healthbarblocktable.blockHealth, block:GetAttribute("MaxHealth"), blockdmg)
  967. if healthbarblocktable.blockHealth <= 0 then
  968. bedwars["BlockBreaker"].breakEffect:playBreak(block.Name, blockhealthbarpos.blockPosition, lplr)
  969. bedwars["BlockBreaker"].healthbarMaid:DoCleaning()
  970. healthbarblocktable.breakingBlockPosition = Vector3.zero
  971. else
  972. bedwars["BlockBreaker"].breakEffect:playHit(block.Name, blockhealthbarpos.blockPosition, lplr)
  973. end
  974. end
  975. end
  976. end
  977. end
  978.  
  979. local function getEquipped()
  980. local typetext = ""
  981. local obj = currentinventory.inventory.hand
  982. if obj then
  983. local metatab = bedwars["ItemTable"][obj.itemType]
  984. typetext = metatab.sword and "sword" or metatab.block and "block" or obj.itemType:find("bow") and "bow"
  985. end
  986. return {["Object"] = obj and obj.tool, ["Type"] = typetext, ["Amount"] = obj and obj.amount}
  987. end
  988.  
  989. local function GetAllNearestHumanoidToPosition(player, distance, amount, targetcheck, overridepos)
  990. local returnedplayer = {}
  991. local currentamount = 0
  992. if entity.isAlive then -- alive check
  993. for i, v in pairs(entity.entityList) do -- loop through players
  994. if (v.Targetable or targetcheck) and targetCheck(v) and currentamount < amount then -- checks
  995. local mag = (entity.character.HumanoidRootPart.Position - v.RootPart.Position).magnitude
  996. if overridepos and mag > distance then
  997. mag = (overridepos - v.RootPart.Position).magnitude
  998. end
  999. if mag <= distance then -- mag check
  1000. table.insert(returnedplayer, v)
  1001. currentamount = currentamount + 1
  1002. end
  1003. end
  1004. end
  1005. for i2,v2 in pairs(collectionservice:GetTagged("Monster")) do -- monsters
  1006. if v2:FindFirstChild("HumanoidRootPart") and currentamount < amount and v2:GetAttribute("Team") ~= lplr:GetAttribute("Team") then -- no duck
  1007. local mag = (entity.character.HumanoidRootPart.Position - v2.HumanoidRootPart.Position).magnitude
  1008. if overridepos and mag > distance then
  1009. mag = (overridepos - v2.HumanoidRootPart.Position).magnitude
  1010. end
  1011. if mag <= distance then -- magcheck
  1012. table.insert(returnedplayer, {Player = {Name = (v2 and v2.Name or "Monster"), UserId = (v2 and v2.Name == "Duck" and 2020831224 or 1443379645)}, Character = v2, RootPart = v2.HumanoidRootPart}) -- monsters are npcs so I have to create a fake player for target info
  1013. currentamount = currentamount + 1
  1014. end
  1015. end
  1016. end
  1017. for i3,v3 in pairs(collectionservice:GetTagged("Drone")) do -- drone
  1018. if v3:FindFirstChild("HumanoidRootPart") and currentamount < amount then
  1019. if tonumber(v3:GetAttribute("PlayerUserId")) == lplr.UserId then continue end
  1020. local droneplr = players:GetPlayerByUserId(v3:GetAttribute("PlayerUserId"))
  1021. if droneplr and droneplr.Team == lplr.Team then continue end
  1022. local mag = (entity.character.HumanoidRootPart.Position - v3.HumanoidRootPart.Position).magnitude
  1023. if overridepos and mag > distance then
  1024. mag = (overridepos - v3.HumanoidRootPart.Position).magnitude
  1025. end
  1026. if mag <= distance then -- magcheck
  1027. table.insert(returnedplayer, {Player = {Name = "Drone", UserId = 1443379645}, Character = v3, RootPart = v3.HumanoidRootPart}) -- monsters are npcs so I have to create a fake player for target info
  1028. currentamount = currentamount + 1
  1029. end
  1030. end
  1031. end
  1032. end
  1033. return returnedplayer -- table of attackable entities
  1034. end
  1035.  
  1036. GetNearestHumanoidToMouse = function(player, distance, checkvis)
  1037. local closest, returnedplayer = distance, nil
  1038. if entity.isAlive then
  1039. for i, v in pairs(entity.entityList) do
  1040. if v.Targetable then
  1041. local vec, vis = cam:WorldToScreenPoint(v.RootPart.Position)
  1042. if vis and targetCheck(v) then
  1043. local mag = (uis:GetMouseLocation() - Vector2.new(vec.X, vec.Y)).magnitude
  1044. if mag <= closest then
  1045. closest = mag
  1046. returnedplayer = v
  1047. end
  1048. end
  1049. end
  1050. end
  1051. end
  1052. return returnedplayer, closest
  1053. end
  1054.  
  1055. local function GetNearestHumanoidToPosition(player, distance, overridepos)
  1056. local closest, returnedplayer = distance, nil
  1057. if entity.isAlive then
  1058. for i, v in pairs(entity.entityList) do
  1059. if v.Targetable and targetCheck(v) then
  1060. local mag = (entity.character.HumanoidRootPart.Position - v.RootPart.Position).magnitude
  1061. if overridepos and mag > distance then
  1062. mag = (overridepos - v.RootPart.Position).magnitude
  1063. end
  1064. if mag <= closest then
  1065. closest = mag
  1066. returnedplayer = v
  1067. end
  1068. end
  1069. end
  1070. end
  1071. return returnedplayer
  1072. end
  1073.  
  1074. local function getBow()
  1075. local bestsword, bestswordslot, bestswordnum = nil, nil, 0
  1076. for i5, v5 in pairs(bedwars["getInventory"](lplr).items) do
  1077. if v5.itemType:find("bow") then
  1078. local tab = bedwars["ItemTable"][v5.itemType].projectileSource.ammoItemTypes
  1079. local tab2 = tab[#tab]
  1080. if bedwars["ProjectileMeta"][tab2].combat.damage > bestswordnum then
  1081. bestswordnum = bedwars["ProjectileMeta"][tab2].combat.damage
  1082. bestswordslot = i5
  1083. bestsword = v5
  1084. end
  1085. end
  1086. end
  1087. return bestsword, bestswordslot
  1088. end
  1089.  
  1090. local function getCustomItem(v2)
  1091. local realitem = v2.itemType
  1092. if realitem == "swords" then
  1093. realitem = getSword() and getSword().itemType or "wood_sword"
  1094. elseif realitem == "pickaxes" then
  1095. realitem = getPickaxe() and getPickaxe().itemType or "wood_pickaxe"
  1096. elseif realitem == "axes" then
  1097. realitem = getAxe() and getAxe().itemType or "wood_axe"
  1098. elseif realitem == "bows" then
  1099. realitem = getBow() and getBow().itemType or "wood_bow"
  1100. elseif realitem == "wool" then
  1101. realitem = getwool() or "wool_white"
  1102. end
  1103. return realitem
  1104. end
  1105.  
  1106. local function findItemInTable(tab, item)
  1107. for i,v in pairs(tab) do
  1108. if v.itemType then
  1109. local gottenitem, gottenitemnum = getItem(getCustomItem(v))
  1110. if gottenitem and gottenitem.itemType == item.itemType then
  1111. return i
  1112. end
  1113. end
  1114. end
  1115. return nil
  1116. end
  1117.  
  1118. local function getypos(pos)
  1119. local block = getblock(pos)
  1120. local lastfound = nil
  1121. if block and block.Parent ~= nil then
  1122. for i = 1, 20 do
  1123. local extrablock = getblock(pos + Vector3.new(0, i * 3, 0))
  1124. if extrablock then
  1125. lastfound = extrablock
  1126. else
  1127. if lastfound then
  1128. return lastfound.Position + Vector3.new(0, 2, 0)
  1129. else
  1130. return pos + Vector3.new(0, 2, 0)
  1131. end
  1132. end
  1133. end
  1134. return block.Position + Vector3.new(0, 2, 0)
  1135. end
  1136. end
  1137.  
  1138. runcode(function()
  1139. local function findplayers(arg)
  1140. for i,v in pairs(game:GetService("Players"):GetChildren()) do if v.Name:lower():sub(1, arg:len()) == arg:lower() then return v end end
  1141. return nil
  1142. end
  1143.  
  1144. local PlayerCrasher = {["Enabled"] = false}
  1145. local PlayerCrasherPower = {["Value"] = 2}
  1146. local PlayerCrasherDelay = {["Value"] = 2}
  1147. local PlayerCrasherBox = {["Value"] = ""}
  1148. local targetedplayer
  1149. PlayerCrasher = GuiLibrary["ObjectsThatCanBeSaved"]["UtilityWindow"]["Api"].CreateOptionsButton({
  1150. ["Name"] = "PlayerCrasher",
  1151. ["Function"] = function(callback)
  1152. if callback then
  1153. for i,v in pairs(game:GetService("ReplicatedStorage"):GetDescendants()) do
  1154. if (v.Name:find("arty") or v.Name:find("otification"))and v:IsA("RemoteEvent") then
  1155. for i2,v2 in pairs(getconnections(v.OnClientEvent)) do
  1156. v2:Disable()
  1157. end
  1158. end
  1159. end
  1160. spawn(function()
  1161. repeat
  1162. task.wait(3)
  1163. createwarning("PlayerCrasher", targetedplayer and "Crashing "..(targetedplayer.DisplayName or targetedplayer.Name) or "Player not found", 3)
  1164. until (not PlayerCrasher["Enabled"])
  1165. end)
  1166. spawn(function()
  1167. repeat
  1168. task.wait(PlayerCrasherDelay["Value"] == 0 and nil or PlayerCrasherDelay["Value"] / 10)
  1169. local plr = findplayers(PlayerCrasherBox["Value"])
  1170. targetedplayer = plr
  1171. if plr then
  1172. spawn(function()
  1173. for i = 1, PlayerCrasherPower["Value"] do
  1174. bedwars["LobbyClientEvents"].inviteToParty({
  1175. player = plr
  1176. })
  1177. bedwars["LobbyClientEvents"].leaveParty()
  1178. end
  1179. end)
  1180. end
  1181. until (not PlayerCrasher["Enabled"])
  1182. end)
  1183. end
  1184. end
  1185. })
  1186. PlayerCrasherBox = PlayerCrasher.CreateTextBox({
  1187. ["Name"] = "Player",
  1188. ["TempText"] = "player target",
  1189. ["FocusLost"] = function(enter) end
  1190. })
  1191. PlayerCrasherPower = PlayerCrasher.CreateSlider({
  1192. ["Name"] = "Requests per second",
  1193. ["Min"] = 1,
  1194. ["Max"] = 10,
  1195. ["Default"] = 2,
  1196. ["Function"] = function() end
  1197. })
  1198. PlayerCrasherDelay = PlayerCrasher.CreateSlider({
  1199. ["Name"] = "Seconds per request",
  1200. ["Min"] = 0,
  1201. ["Max"] = 10,
  1202. ["Default"] = 0,
  1203. ["Function"] = function() end
  1204. })
  1205. end)
  1206.  
  1207. runcode(function()
  1208. local function getaccessories()
  1209. local count = 0
  1210. if isAlive() then
  1211. for i,v in pairs(lplr.Character:GetChildren()) do
  1212. if v:IsA("Accessory") then
  1213. count = count + 1
  1214. end
  1215. end
  1216. end
  1217. return count
  1218. end
  1219.  
  1220. local AntiCrash = {["Enabled"] = false}
  1221. AntiCrash = GuiLibrary["ObjectsThatCanBeSaved"]["UtilityWindow"]["Api"].CreateOptionsButton({
  1222. ["Name"] = "AntiCrash",
  1223. ["Function"] = function(callback)
  1224. if callback then
  1225. local cached = {}
  1226. game:GetService("CollectionService"):GetInstanceAddedSignal("inventory-entity"):connect(function(inv)
  1227. spawn(function()
  1228. local invitem = inv:WaitForChild("HandInvItem")
  1229. local funny
  1230. task.wait(0.2)
  1231. for i,v in pairs(getconnections(invitem.Changed)) do
  1232. funny = v.Function
  1233. v:Disable()
  1234. end
  1235. if funny then
  1236. invitem.Changed:connect(function(item)
  1237. if cached[inv] == nil then cached[inv] = 0 end
  1238. if cached[inv] >= 6 then return end
  1239. cached[inv] = cached[inv] + 1
  1240. task.delay(1, function() cached[inv] = cached[inv] - 1 end)
  1241. funny(item)
  1242. end)
  1243. end
  1244. end)
  1245. end)
  1246. for i2,inv in pairs(game:GetService("CollectionService"):GetTagged("inventory-entity")) do
  1247. spawn(function()
  1248. local invitem = inv:WaitForChild("HandInvItem")
  1249. local funny
  1250. task.wait(0.2)
  1251. for i,v in pairs(getconnections(invitem.Changed)) do
  1252. funny = v.Function
  1253. v:Disable()
  1254. end
  1255. if funny then
  1256. invitem.Changed:connect(function(item)
  1257. if cached[inv] == nil then cached[inv] = 0 end
  1258. if cached[inv] >= 6 then return end
  1259. cached[inv] = cached[inv] + 1
  1260. task.delay(1, function() cached[inv] = cached[inv] - 1 end)
  1261. funny(item)
  1262. end)
  1263. end
  1264. end)
  1265. end
  1266. end
  1267. end
  1268. })
  1269.  
  1270. local Crasher = {["Enabled"] = false}
  1271. local CrasherAutoEnable = {["Enabled"] = false}
  1272. local oldcrash
  1273. local oldplay
  1274. Crasher = GuiLibrary["ObjectsThatCanBeSaved"]["UtilityWindow"]["Api"].CreateOptionsButton({
  1275. ["Name"] = "ClientCrasher",
  1276. ["Function"] = function(callback)
  1277. if callback then
  1278. oldcrash = bedwars["GameAnimationUtil"].playAnimation
  1279. oldplay = bedwars["SoundManager"].playSound
  1280. bedwars["GameAnimationUtil"].playAnimation = function(lplr, anim, ...)
  1281. if anim == bedwars["AnimationType"].EQUIP_1 then
  1282. return
  1283. end
  1284. return oldcrash(lplr, anim, ...)
  1285. end
  1286. bedwars["SoundManager"].playSound = function(self, num, ...)
  1287. if num == bedwars["SoundList"].EQUIP_DEFAULT or num == bedwars["SoundList"].EQUIP_SWORD or num == bedwars["SoundList"].EQUIP_BOW then
  1288. return
  1289. end
  1290. return oldplay(self, num, ...)
  1291. end
  1292. local remote = bedwars["ClientHandler"]:Get(bedwars["EquipItemRemote"])["instance"]
  1293. local slowmode = false
  1294. local suc
  1295. task.spawn(function()
  1296. repeat
  1297. task.wait(slowmode and 2 or 15)
  1298. slowmode = not slowmode
  1299. until (not Crasher["Enabled"])
  1300. end)
  1301. task.spawn(function()
  1302. repeat
  1303. task.wait(0.2)
  1304. suc = pcall(function()
  1305. local inv = lplr.Character.InventoryFolder.Value:GetChildren()
  1306. local item = inv[1]
  1307. local item2 = inv[2]
  1308. if item then
  1309. task.spawn(function()
  1310. for i = 1, (slowmode and 0 or 35) do
  1311. game:GetService("RunService").Heartbeat:Wait()
  1312. task.spawn(function()
  1313. remote:InvokeServer({
  1314. hand = item
  1315. })
  1316. end)
  1317. task.spawn(function()
  1318. remote:InvokeServer({
  1319. hand = item2 or false
  1320. })
  1321. end)
  1322. end
  1323. end)
  1324. end
  1325. end)
  1326. until (not Crasher["Enabled"])
  1327. end)
  1328. else
  1329. bedwars["GameAnimationUtil"].playAnimation = oldcrash
  1330. bedwars["SoundManager"].playSound = oldplay
  1331. slowmode = false
  1332. end
  1333. end
  1334. })
  1335. end)
  1336.  
  1337. runcode(function()
  1338. local function getScaffold(vec, diagonaltoggle)
  1339. local realvec = Vector3.new(math.floor((vec.X / 3) + 0.5) * 3, math.floor((vec.Y / 3) + 0.5) * 3, math.floor((vec.Z / 3) + 0.5) * 3)
  1340. return realvec
  1341. end
  1342.  
  1343. local function getPirateFlag()
  1344. for i,v in pairs(collectionservice:GetTagged("block")) do
  1345. if v.Name == "pirate_flag" and v:GetAttribute("PlacedByUserId") == lplr.UserId then
  1346. return v.Position, v
  1347. end
  1348. end
  1349. end
  1350.  
  1351. local function delete(v, flag)
  1352. task.spawn(function()
  1353. pcall(function()
  1354. bedwars["ClientHandler"]:Get(bedwars["PirateRemote"]):CallServer({
  1355. flagPosition = bedwars["BlockController"]:getBlockPosition(flag) * 3,
  1356. itemDrop = v
  1357. })
  1358. end)
  1359. end)
  1360. end
  1361.  
  1362. local deletenearby = {["Enabled"] = false}
  1363. local pickupitemdrop = {["Enabled"] = false}
  1364. local deletenearbyblocks = {["Enabled"] = true}
  1365. local deletenearbyplayers = {["Enabled"] = false}
  1366. local deletenearbyplayershum = {["Enabled"] = false}
  1367. local deleteteammates = {["Enabled"] = false}
  1368. local certainblocks = {["ObjectList"] = {}}
  1369. deletenearby = GuiLibrary["ObjectsThatCanBeSaved"]["UtilityWindow"]["Api"].CreateOptionsButton({
  1370. ["Name"] = "DeleteNearby",
  1371. ["Function"] = function(callback)
  1372. if callback then
  1373. local flag, flagobj = getPirateFlag()
  1374. if getItem("pirate_flag") or flag then
  1375. if entity.isAlive then
  1376. if not flag then
  1377. bedwars["placeBlock"](getScaffold(entity.character.HumanoidRootPart.Position - (entity.character.HumanoidRootPart.CFrame.lookVector * 4)), "pirate_flag")
  1378. flag, flagobj = getPirateFlag()
  1379. end
  1380. task.delay(0.3, function()
  1381. if flag then
  1382. if deletenearbyblocks["Enabled"] then
  1383. for i,v in pairs(collectionservice:GetTagged("block")) do
  1384. if v.Name ~= "pirate_flag" and (v.Position - flag).Magnitude <= 60 then
  1385. if i % 100 == 0 then
  1386. task.wait(0.3)
  1387. end
  1388. if #certainblocks["ObjectList"] <= 0 or table.find(certainblocks["ObjectList"], v.Name) then
  1389. delete(v, flag)
  1390. end
  1391. end
  1392. end
  1393. end
  1394. for i,v in pairs(entity.entityList) do
  1395. if (v.RootPart.Position - flag).Magnitude <= 60 then
  1396. if (not deleteteammates["Enabled"]) and (not v.Targetable) then continue end
  1397. if deletenearbyplayershum["Enabled"] then
  1398. delete(v.RootPart, flag)
  1399. end
  1400. if deletenearbyplayers["Enabled"] then
  1401. delete(v.Head, flag)
  1402. end
  1403. end
  1404. end
  1405. if pickupitemdrop["Enabled"] then
  1406. for i,v in pairs(collectionservice:GetTagged("ItemDrop")) do
  1407. if (v.Position - flag).Magnitude <= 60 then
  1408. delete(v, flag)
  1409. end
  1410. end
  1411. end
  1412. delete(flagobj, flag)
  1413. else
  1414. createwarning("DeleteNearby", "skill", 10)
  1415. end
  1416. end)
  1417. end
  1418. else
  1419. createwarning("DeleteNearby", "no item u stupid", 10)
  1420. end
  1421. deletenearby["ToggleButton"](false)
  1422. end
  1423. end
  1424. })
  1425. pickupitemdrop = deletenearby.CreateToggle({
  1426. ["Name"] = "ItemDrop",
  1427. ["Function"] = function() end,
  1428. ["Default"] = true
  1429. })
  1430. deletenearbyblocks = deletenearby.CreateToggle({
  1431. ["Name"] = "Blocks",
  1432. ["Function"] = function() end,
  1433. ["Default"] = true
  1434. })
  1435. deletenearbyplayers = deletenearby.CreateToggle({
  1436. ["Name"] = "Players",
  1437. ["Function"] = function() end
  1438. })
  1439. deletenearbyplayershum = deletenearby.CreateToggle({
  1440. ["Name"] = "Players Movement",
  1441. ["Function"] = function() end
  1442. })
  1443. deleteteammates = deletenearby.CreateToggle({
  1444. ["Name"] = "Teammates",
  1445. ["Function"] = function() end,
  1446. ["Default"] = true
  1447. })
  1448. certainblocks = deletenearby.CreateTextList({
  1449. ["Name"] = "NukerList",
  1450. ["TempText"] = "block (tesla_trap)",
  1451. ["AddFunction"] = function() end
  1452. })
  1453. end)
  1454.  
  1455. local bypassed = false
  1456. runcode(function()
  1457. local anticheatdisabler = {["Enabled"] = false}
  1458. local anticheatdisablerauto = {["Enabled"] = false}
  1459. local anticheatdisablerconnection
  1460. local anticheatdisablerconnection2
  1461. anticheatdisabler = GuiLibrary["ObjectsThatCanBeSaved"]["UtilityWindow"]["Api"].CreateOptionsButton({
  1462. ["Name"] = "FloatDisabler",
  1463. ["Function"] = function(callback)
  1464. if callback then
  1465. local balloonitem = getItem("balloon")
  1466. if balloonitem then
  1467. local oldfunc3 = bedwars["BalloonController"].hookBalloon
  1468. local oldfunc4 = bedwars["BalloonController"].enableBalloonPhysics
  1469. local oldfunc5 = bedwars["BalloonController"].deflateBalloon
  1470. bedwars["BalloonController"].inflateBalloon()
  1471. bedwars["BalloonController"].enableBalloonPhysics = function() end
  1472. bedwars["BalloonController"].deflateBalloon = function() end
  1473. bedwars["BalloonController"].hookBalloon = function(Self, plr, attachment, balloon)
  1474. if tostring(plr) == lplr.Name then
  1475. balloon:WaitForChild("Balloon").CFrame = CFrame.new(0, -1995, 0)
  1476. balloon.Balloon:ClearAllChildren()
  1477. local threadidentity = syn and syn.set_thread_identity or setidentity
  1478. threadidentity(7)
  1479. spawn(function()
  1480. wait(0.5)
  1481. createwarning("AnticheatDisabler", "Disabled Anticheat!", 5)
  1482. bypassed = true
  1483. end)
  1484. threadidentity(2)
  1485. bedwars["BalloonController"].hookBalloon = oldfunc3
  1486. bedwars["BalloonController"].enableBalloonPhysics = oldfunc4
  1487. end
  1488. end
  1489. end
  1490. anticheatdisabler["ToggleButton"](true)
  1491. end
  1492. end
  1493. })
  1494. anticheatdisablerauto = anticheatdisabler.CreateToggle({
  1495. ["Name"] = "Auto Disable",
  1496. ["Function"] = function(callback)
  1497. if callback then
  1498. anticheatdisablerconnection = repstorage.Inventories.DescendantAdded:connect(function(p3)
  1499. if p3.Parent.Name == lplr.Name then
  1500. if p3.Name == "balloon" then
  1501. repeat task.wait() until getItem("balloon")
  1502. anticheatdisabler["ToggleButton"](false)
  1503. end
  1504. end
  1505. end)
  1506. else
  1507. if anticheatdisablerconnection then
  1508. anticheatdisablerconnection:Disconnect()
  1509. end
  1510. end
  1511. end,
  1512. })
  1513. end)
Advertisement
Add Comment
Please, Sign In to add comment