Advertisement
ImRealLenny

Bloxxed Hub - Pilgrammed

Jul 12th, 2023 (edited)
3,804
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 43.57 KB | None | 1 0
  1. --[[
  2. Changelog (12.07.2023):
  3. > Launched (yippie!)
  4. --]]
  5. -- You can use this: loadstring(game:HttpGet(("https://pastebin.com/raw/EC0myrnk"),true))()
  6. -- Instances:
  7.  
  8. if _G.BHubInjected == true and typeof(_G.ShutdownBHub) == "function" then -- prevent from double injection
  9.     _G.ShutdownBHub()
  10. end
  11.  
  12. _G.BHubInjected = true
  13.  
  14. local thisBuildVer = "1.1b"
  15.  
  16. local gameId = 6735572261
  17.  
  18. if game.PlaceId ~= gameId and not game:GetService('RunService'):IsStudio() then game.Players.LocalPlayer:Kick('This is Pilgrammed script, dumbo.') end
  19.  
  20. local ScreenGui = Instance.new("ScreenGui")
  21. local bg_main = Instance.new("Frame")
  22. local aratio = Instance.new("UIAspectRatioConstraint")
  23. local title = Instance.new("TextLabel")
  24. local textConstraint = Instance.new("UITextSizeConstraint")
  25. local sizeConstraint = Instance.new("UISizeConstraint")
  26. local configs = Instance.new("Frame")
  27. local UIGridLayout = Instance.new("UIGridLayout")
  28. local subtitle = Instance.new("TextLabel")
  29. local Assets = Instance.new("Folder")
  30. local sectionMain = Instance.new("TextLabel")
  31. local textConstraint_2 = Instance.new("UITextSizeConstraint")
  32. local sectionSubInput = Instance.new("Frame")
  33. local setting = Instance.new("TextLabel")
  34. local textConstraint_3 = Instance.new("UITextSizeConstraint")
  35. local input = Instance.new("TextBox")
  36. local UICorner = Instance.new("UICorner")
  37. local sectionSubBoolean = Instance.new("Frame")
  38. local setting_2 = Instance.new("TextLabel")
  39. local textConstraint_4 = Instance.new("UITextSizeConstraint")
  40. local detection = Instance.new("TextButton")
  41. local Visuals = Instance.new("Folder")
  42. local espGui = Instance.new("BillboardGui")
  43. local box = Instance.new("Frame")
  44. local hp = Instance.new("Frame")
  45. local current = Instance.new("Frame")
  46. local name = Instance.new("TextLabel")
  47. local bin = Instance.new("Folder")
  48. local desc = Instance.new("Frame")
  49. local descContent = Instance.new("TextLabel")
  50. local textConstraint_5 = Instance.new("UITextSizeConstraint")
  51. local NotPaintable = Instance.new("Folder")
  52. local ScrollingFrame = Instance.new('ScrollingFrame')
  53. local DropDownBody = Instance.new('Frame')
  54. local DropDownScroll = Instance.new('ScrollingFrame')
  55. local DropDownListLayout = Instance.new('UIListLayout')
  56. local OreESPBillboardGui = Instance.new('BillboardGui')
  57. local OreListGui = Instance.new('TextLabel')
  58. local OreChestGlow = Instance.new('Highlight')
  59.  
  60. local Active = true
  61.  
  62. _G.ShutdownBHub = function()
  63.     ScreenGui:Destroy()
  64.     script:Destroy()
  65.  
  66.     Active = false
  67. end
  68.  
  69. -- Made it myself cuz converter sucks
  70. local stroke_src = Instance.new('UIStroke')
  71. stroke_src.Color = Color3.fromRGB(166, 166, 166)
  72. stroke_src.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  73.  
  74. local strk_parents = {
  75.     sectionMain,
  76.     subtitle,
  77.     title,
  78.     desc,
  79.     bg_main,
  80.     DropDownBody,
  81. }
  82.  
  83. for i, v in pairs(strk_parents) do
  84.     local stroke_copy = stroke_src:Clone()
  85.     stroke_copy.Parent = v
  86.     stroke_copy.Name = v.Name..'_stroke'
  87. end
  88.  
  89. stroke_src:Destroy()
  90.  
  91. --Properties:
  92.  
  93. ScreenGui.Name = " "
  94. ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui
  95. ScreenGui.Enabled = false
  96. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  97. ScreenGui.DisplayOrder = 999999998
  98. ScreenGui.ResetOnSpawn = false
  99.  
  100. bg_main.Name = "bg_main"
  101. bg_main.Parent = ScreenGui
  102. bg_main.AnchorPoint = Vector2.new(0.5, 0.5)
  103. bg_main.BackgroundColor3 = Color3.fromRGB(40, 41, 45)
  104. bg_main.BorderColor3 = Color3.fromRGB(0, 0, 0)
  105. bg_main.BorderSizePixel = 0
  106. bg_main.Position = UDim2.new(0.5, 0, 0.5, 0)
  107. bg_main.Size = UDim2.new(0.61500001, 0, 0.925000012, 0)
  108. bg_main.ZIndex = 3
  109.  
  110. aratio.Name = "aratio"
  111. aratio.Parent = bg_main
  112. aratio.AspectRatio = 1.250
  113.  
  114. title.Name = "title"
  115. title.Parent = bg_main
  116. title.AnchorPoint = Vector2.new(0.5, 0)
  117. title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  118. title.BackgroundTransparency = 1.000
  119. title.BorderColor3 = Color3.fromRGB(0, 0, 0)
  120. title.BorderSizePixel = 0
  121. title.Position = UDim2.new(0.5, 0, 0, 0)
  122. title.Size = UDim2.new(1, 0, 0.0500000007, 0)
  123. title.Font = Enum.Font.SourceSans
  124. title.Text = " Bloxxed Hub - <game_name> - v<ver>"
  125. title.TextColor3 = Color3.fromRGB(166, 166, 166)
  126. title.TextScaled = true
  127. title.TextSize = 14.000
  128. title.TextStrokeTransparency = 0.500
  129. title.TextWrapped = true
  130. title.TextXAlignment = Enum.TextXAlignment.Left
  131.  
  132. textConstraint.Name = "textConstraint"
  133. textConstraint.Parent = title
  134. textConstraint.MaxTextSize = 22
  135.  
  136. sizeConstraint.Name = "sizeConstraint"
  137. sizeConstraint.Parent = bg_main
  138. sizeConstraint.MaxSize = Vector2.new(404, 325)
  139.  
  140. configs.Name = "configs"
  141. configs.Parent = bg_main
  142. configs.AnchorPoint = Vector2.new(0.5, 0.5)
  143. configs.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  144. configs.BackgroundTransparency = 1.000
  145. configs.BorderColor3 = Color3.fromRGB(0, 0, 0)
  146. configs.BorderSizePixel = 0
  147. configs.Position = UDim2.new(0.5, 0, 0.550000012, 0)
  148. configs.Size = UDim2.new(0.850000024, 0, 0.774999976, 0)
  149. configs.ClipsDescendants = true
  150.  
  151. UIGridLayout.Parent = ScrollingFrame
  152. UIGridLayout.FillDirection = Enum.FillDirection.Vertical
  153. UIGridLayout.SortOrder = Enum.SortOrder.LayoutOrder
  154. UIGridLayout.CellPadding = UDim2.new(0.200000003, 0, 0, 3)
  155. UIGridLayout.CellSize = UDim2.new(0.400000006, 0, 0.0350000003, 0)
  156.  
  157. subtitle.Name = "subtitle"
  158. subtitle.Parent = bg_main
  159. subtitle.AnchorPoint = Vector2.new(0, 1)
  160. subtitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  161. subtitle.BackgroundTransparency = 1.000
  162. subtitle.BorderColor3 = Color3.fromRGB(0, 0, 0)
  163. subtitle.BorderSizePixel = 0
  164. subtitle.Position = UDim2.new(0, 0, 1, 0)
  165. subtitle.Size = UDim2.new(1, 0, 0.0500000007, 0)
  166. subtitle.Font = Enum.Font.SourceSansBold
  167. subtitle.Text = "Made by  bloxxylenny on Discord | \"Insert\" to Show/Hide UI | User ID: <userid>"
  168. subtitle.TextColor3 = Color3.fromRGB(166, 166, 166)
  169. subtitle.TextScaled = true
  170. subtitle.TextSize = 14.000
  171. subtitle.TextWrapped = true
  172.  
  173. Assets.Name = "Assets"
  174. Assets.Parent = ScreenGui
  175.  
  176. sectionMain.Name = "sectionMain"
  177. sectionMain.Parent = Assets
  178. sectionMain.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  179. sectionMain.BackgroundTransparency = 1.000
  180. sectionMain.BorderColor3 = Color3.fromRGB(0, 0, 0)
  181. sectionMain.BorderSizePixel = 0
  182. sectionMain.Size = UDim2.new(0.400000006, 0, 0.0350000003, 0)
  183. sectionMain.Visible = false
  184. sectionMain.Font = Enum.Font.SourceSans
  185. sectionMain.Text = "[section_name]"
  186. sectionMain.TextColor3 = Color3.fromRGB(166, 166, 166)
  187. sectionMain.TextScaled = true
  188. sectionMain.TextSize = 14.000
  189. sectionMain.TextStrokeTransparency = 0.500
  190. sectionMain.TextWrapped = true
  191.  
  192. textConstraint_2.Name = "textConstraint"
  193. textConstraint_2.Parent = sectionMain
  194. textConstraint_2.MaxTextSize = 22
  195.  
  196. sectionSubInput.Name = "sectionSubInput"
  197. sectionSubInput.Parent = Assets
  198. sectionSubInput.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  199. sectionSubInput.BackgroundTransparency = 0.950
  200. sectionSubInput.BorderColor3 = Color3.fromRGB(0, 0, 0)
  201. sectionSubInput.BorderSizePixel = 0
  202. sectionSubInput.Size = UDim2.new(0.400000006, 0, 0.0350000003, 0)
  203. sectionSubInput.Visible = false
  204.  
  205. setting.Name = "setting"
  206. setting.Parent = sectionSubInput
  207. setting.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  208. setting.BackgroundTransparency = 1.000
  209. setting.BorderColor3 = Color3.fromRGB(0, 0, 0)
  210. setting.BorderSizePixel = 0
  211. setting.Size = UDim2.new(0.600000024, 0, 1, 0)
  212. setting.Font = Enum.Font.SourceSans
  213. setting.Text = "settingName:"
  214. setting.TextColor3 = Color3.fromRGB(166, 166, 166)
  215. setting.TextScaled = true
  216. setting.TextSize = 14.000
  217. setting.TextStrokeTransparency = 0.500
  218. setting.TextWrapped = true
  219. setting.TextXAlignment = Enum.TextXAlignment.Left
  220.  
  221. textConstraint_3.Name = "textConstraint"
  222. textConstraint_3.Parent = setting
  223. textConstraint_3.MaxTextSize = 20
  224.  
  225. input.Name = "input"
  226. input.Parent = sectionSubInput
  227. input.AnchorPoint = Vector2.new(1, 0)
  228. input.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  229. input.BackgroundTransparency = 0.500
  230. input.BorderColor3 = Color3.fromRGB(0, 0, 0)
  231. input.BorderSizePixel = 0
  232. input.Position = UDim2.new(1, 0, 0, 0)
  233. input.Size = UDim2.new(0.400000006, 0, 1, 0)
  234. input.Font = Enum.Font.SourceSans
  235. input.PlaceholderColor3 = Color3.fromRGB(125, 125, 125)
  236. input.PlaceholderText = "_placeholder"
  237. input.Text = ""
  238. input.TextColor3 = Color3.fromRGB(166, 166, 166)
  239. input.TextScaled = true
  240. input.TextSize = 14.000
  241. input.TextWrapped = true
  242.  
  243. UICorner.CornerRadius = UDim.new(0.25, 0)
  244. UICorner.Parent = input
  245.  
  246. sectionSubBoolean.Name = "sectionSubBoolean"
  247. sectionSubBoolean.Parent = Assets
  248. sectionSubBoolean.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  249. sectionSubBoolean.BackgroundTransparency = 0.950
  250. sectionSubBoolean.BorderColor3 = Color3.fromRGB(0, 0, 0)
  251. sectionSubBoolean.BorderSizePixel = 0
  252. sectionSubBoolean.Size = UDim2.new(0.400000006, 0, 0.035000007, 0)
  253. sectionSubBoolean.Visible = false
  254.  
  255. setting_2.Name = "setting"
  256. setting_2.Parent = sectionSubBoolean
  257. setting_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  258. setting_2.BackgroundTransparency = 1.000
  259. setting_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
  260. setting_2.BorderSizePixel = 0
  261. setting_2.Size = UDim2.new(1, 0, 1, 0)
  262. setting_2.Font = Enum.Font.SourceSans
  263. setting_2.Text = "settingName: boolean"
  264. setting_2.TextColor3 = Color3.fromRGB(166, 166, 166)
  265. setting_2.TextScaled = true
  266. setting_2.TextSize = 14.000
  267. setting_2.TextStrokeTransparency = 0.500
  268. setting_2.TextWrapped = true
  269. setting_2.TextXAlignment = Enum.TextXAlignment.Left
  270.  
  271. textConstraint_4.Name = "textConstraint"
  272. textConstraint_4.Parent = setting_2
  273. textConstraint_4.MaxTextSize = 20
  274.  
  275. detection.Name = "detection"
  276. detection.Parent = sectionSubBoolean
  277. detection.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  278. detection.BackgroundTransparency = 1.000
  279. detection.BorderColor3 = Color3.fromRGB(0, 0, 0)
  280. detection.BorderSizePixel = 0
  281. detection.Size = UDim2.new(1, 0, 1, 0)
  282. detection.ZIndex = 2
  283. detection.Font = Enum.Font.SourceSans
  284. detection.Text = ""
  285. detection.TextColor3 = Color3.fromRGB(0, 0, 0)
  286. detection.TextSize = 14.000
  287.  
  288. Visuals.Name = "Visuals"
  289. Visuals.Parent = Assets
  290.  
  291. espGui.Name = "espGui"
  292. espGui.Parent = Visuals
  293. espGui.Enabled = false
  294. espGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  295. espGui.Active = true
  296. espGui.AlwaysOnTop = true
  297. espGui.LightInfluence = 1.000
  298. espGui.Size = UDim2.new(4.5, 0, 6, 0)
  299.  
  300. box.Name = "box"
  301. box.Parent = espGui
  302. box.AnchorPoint = Vector2.new(0.5, 0.5)
  303. box.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  304. box.BackgroundTransparency = .9000
  305. box.BorderColor3 = Color3.fromRGB(0, 0, 0)
  306. box.BorderSizePixel = 0
  307. box.Position = UDim2.new(0.5, 0, 0.5, 0)
  308. box.Size = UDim2.new(1, -3, 1, -3)
  309.  
  310. local b_s = Instance.new('UIStroke')
  311. b_s.Parent = box
  312. b_s.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  313. b_s.Color = Color3.new(1, 1, 1)
  314. b_s.Name = 'boxStroke'
  315.  
  316. hp.Name = "hp"
  317. hp.Parent = espGui
  318. hp.AnchorPoint = Vector2.new(0, 1)
  319. hp.BackgroundColor3 = Color3.fromRGB(166, 0, 0)
  320. hp.BorderColor3 = Color3.fromRGB(0, 0, 0)
  321. hp.BorderSizePixel = 0
  322. hp.Position = UDim2.new(0, 0, 1, 0)
  323. hp.Size = UDim2.new(0.0500000007, 0, 1, 0)
  324.  
  325. current.Name = "current"
  326. current.Parent = hp
  327. current.AnchorPoint = Vector2.new(0, 1)
  328. current.BackgroundColor3 = Color3.fromRGB(2, 198, 15)
  329. current.BorderColor3 = Color3.fromRGB(0, 0, 0)
  330. current.BorderSizePixel = 0
  331. current.Position = UDim2.new(0, 0, 1, 0)
  332. current.Size = UDim2.new(1, 0, 0.5, 0)
  333.  
  334. name.Name = "name"
  335. name.Parent = espGui
  336. name.AnchorPoint = Vector2.new(0, 1)
  337. name.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  338. name.BackgroundTransparency = 1.000
  339. name.BorderColor3 = Color3.fromRGB(0, 0, 0)
  340. name.BorderSizePixel = 0
  341. name.Position = UDim2.new(0, 0, 1, 0)
  342. name.Size = UDim2.new(1, 0, 0.200000003, 0)
  343. name.Font = Enum.Font.SourceSansBold
  344. name.Text = "Dummy\\n0 stds"
  345. name.TextColor3 = Color3.fromRGB(255, 255, 255)
  346. name.TextSize = 14.000
  347. name.TextStrokeTransparency = 0.500
  348. name.RichText = true
  349.  
  350. bin.Name = "bin"
  351. bin.Parent = ScreenGui
  352.  
  353. desc.Name = "desc"
  354. desc.Parent = ScreenGui
  355. desc.AnchorPoint = Vector2.new(0, 0.5)
  356. desc.BackgroundColor3 = Color3.fromRGB(40, 41, 45)
  357. desc.BorderColor3 = Color3.fromRGB(0, 0, 0)
  358. desc.BorderSizePixel = 0
  359. desc.Position = UDim2.new(0.5, 0, 0.5, 0)
  360. desc.Size = UDim2.new(0, 150, 0, 60)
  361. desc.Visible = false
  362. desc.ZIndex = 5
  363.  
  364. descContent.Name = "descContent"
  365. descContent.Parent = desc
  366. descContent.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  367. descContent.BackgroundTransparency = 1.000
  368. descContent.BorderColor3 = Color3.fromRGB(0, 0, 0)
  369. descContent.BorderSizePixel = 0
  370. descContent.Size = UDim2.new(1, 0, 1, 0)
  371. descContent.Font = Enum.Font.SourceSans
  372. descContent.Text = "Description"
  373. descContent.TextColor3 = Color3.fromRGB(166, 166, 166)
  374. descContent.TextScaled = true
  375. descContent.TextSize = 14.000
  376. descContent.TextStrokeTransparency = 0.500
  377. descContent.TextWrapped = true
  378. descContent.TextXAlignment = Enum.TextXAlignment.Left
  379.  
  380. textConstraint_5.Name = "textConstraint"
  381. textConstraint_5.Parent = descContent
  382. textConstraint_5.MaxTextSize = 22
  383.  
  384. NotPaintable.Name = "NotPaintable"
  385. NotPaintable.Parent = ScreenGui
  386.  
  387. ScrollingFrame.Parent = configs
  388. ScrollingFrame.BackgroundTransparency = 1
  389. ScrollingFrame.Name = 'configScroll'
  390. ScrollingFrame.Size = UDim2.new(1, -2, 1, -2)
  391. ScrollingFrame.Position = UDim2.new(.5, 0, .5, 0)
  392. ScrollingFrame.AnchorPoint = Vector2.new(.5, .5)
  393. ScrollingFrame.ScrollBarThickness = 0
  394. ScrollingFrame.ClipsDescendants = false
  395.  
  396. DropDownBody.Parent = ScreenGui
  397. DropDownBody.BackgroundColor3 = Color3.fromRGB(40, 41, 45)
  398. DropDownBody.AnchorPoint = Vector2.new(.5, 0)
  399. DropDownBody.Name = 'DropDown'
  400. DropDownBody.Size = UDim2.new(0, ScreenGui.AbsoluteSize.X * .273, 0, ScreenGui.AbsoluteSize.X * .273)
  401. DropDownBody.Visible = false
  402. DropDownBody.ZIndex = 100
  403.  
  404. DropDownScroll.Parent = DropDownBody
  405. DropDownScroll.BackgroundTransparency = 1
  406. DropDownScroll.Name = 'DropDownScroll'
  407. DropDownScroll.ScrollBarThickness = 0
  408. DropDownScroll.Size = UDim2.new(1, -5, 1, -5)
  409.  
  410. DropDownListLayout.Parent = DropDownScroll
  411. DropDownListLayout.FillDirection = Enum.FillDirection.Vertical
  412. DropDownListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  413. DropDownListLayout.Padding = UDim.new(0, 3)
  414.  
  415. OreESPBillboardGui.Name = 'OreEsp'
  416. OreESPBillboardGui.Parent = Visuals
  417. OreESPBillboardGui.Size = UDim2.new(1, 0, 1, 0)
  418. OreESPBillboardGui.AlwaysOnTop = true
  419. OreESPBillboardGui.Enabled = false
  420.  
  421. OreListGui.Name = 'List'
  422. OreListGui.BackgroundTransparency = 1
  423. OreListGui.Text = 'Contains : '
  424. OreListGui.Size = UDim2.new(3, 0, 1, 0)
  425. OreListGui.AnchorPoint = Vector2.new(1, 0)
  426. OreListGui.Position = UDim2.new(1, 0, 0, 0)
  427. OreListGui.TextStrokeTransparency = .5
  428. OreListGui.TextColor3 = Color3.new(0.941176, 0.941176, 0.941176)
  429. OreListGui.TextXAlignment = Enum.TextXAlignment.Left
  430. OreListGui.Parent = OreESPBillboardGui
  431.  
  432. OreChestGlow.Name = 'OreChest'
  433. OreChestGlow.Parent = Visuals
  434. OreChestGlow.OutlineTransparency = 1
  435. OreChestGlow.FillTransparency = .55
  436.  
  437. -- Scripts:
  438.  
  439. local function TZVJ_fake_script() -- ScreenGui._main
  440.     local script = Instance.new('LocalScript', ScreenGui)
  441.  
  442.     local lc = 'abcdefghijklmnoprstuwxyz'
  443.     local uc = string.upper(lc)
  444.     local nb = '1234567890'
  445.  
  446.     local prdc = lc..uc..nb
  447.     prdc = string.split(prdc, '')
  448.  
  449.     repeat
  450.         wait(.1)
  451.     until game:IsLoaded()
  452.  
  453.     local _, _ = pcall(function()
  454.         loadstring(game:HttpGet(("https://pastebin.com/raw/5GQcwhXe"),true))()
  455.     end)
  456.  
  457.     local ver: StringValue = game.ReplicatedStorage:WaitForChild('bhver', .5)
  458.     local rs = game:GetService('RunService')
  459.  
  460.     if ver or rs:IsStudio() then
  461.  
  462.         local _, _ = pcall(function()
  463.             local _inst = ver
  464.             ver = ver.Value
  465.             _inst:Destroy()
  466.         end)
  467.  
  468.         if ver == thisBuildVer or rs:IsStudio() then
  469.             local function randomize_string(l: number)
  470.  
  471.                 if not l then
  472.                     l = 6
  473.                 end
  474.  
  475.                 local r_str = ''
  476.  
  477.                 for i = 1, l do
  478.  
  479.                     r_str ..= prdc[math.random(1, #prdc)]
  480.                 end
  481.  
  482.                 return r_str
  483.             end
  484.  
  485.             local introSgui = Instance.new('ScreenGui', game.Players.LocalPlayer.PlayerGui)
  486.             introSgui.IgnoreGuiInset = true
  487.             introSgui.Name = 'bh_ld::'..tostring(game.Players.LocalPlayer.UserId)..randomize_string(16)..'_intro_nr'
  488.             introSgui.DisplayOrder = ScreenGui.DisplayOrder + 1
  489.  
  490.             local lb = Instance.new('TextLabel')
  491.             lb.Name = 'nm::'randomize_string(16)
  492.             lb.Parent = introSgui
  493.             lb.Size = UDim2.new(0, 650, 0, 75)
  494.             lb.Font = Enum.Font.Arcade
  495.             lb.Text = '[ PROJECT: Bloxgrammed ]'
  496.             lb.BackgroundTransparency = 1
  497.             lb.AnchorPoint = Vector2.new(.5, .5)
  498.             lb.TextScaled = true
  499.             lb.Position = UDim2.new(.5, 0, 2, 0)
  500.             lb.TextColor3 = Color3.new(0.517647, 0, 0.517647) -- <
  501.             lb.TextStrokeTransparency = .5
  502.  
  503.             local gradient = Instance.new('UIGradient')
  504.             gradient.Name = 'nm::grad_'randomize_string(6)
  505.  
  506.             gradient.Color = ColorSequence.new({
  507.                 ColorSequenceKeypoint.new(0, Color3.new(1, 1, 1)),
  508.                 ColorSequenceKeypoint.new(0.3, Color3.new(1, 1, 1)),
  509.                 ColorSequenceKeypoint.new(1, Color3.new(.55, .55, .55))
  510.             })
  511.  
  512.             gradient.Parent = lb
  513.             gradient.Rotation = 90
  514.  
  515.             ScreenGui.Enabled = false
  516.  
  517.             local _ts = game:GetService('TweenService')
  518.  
  519.             local t_in = _ts:Create(lb, TweenInfo.new(1.5, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out), {
  520.                 Position = UDim2.new(.5, 0, .5, 0),
  521.                 TextColor3 = Color3.new(1, 0, 1),
  522.             })
  523.  
  524.             local t_out = _ts:Create(lb, TweenInfo.new(.75, Enum.EasingStyle.Cubic, Enum.EasingDirection.In), {
  525.                 Position = UDim2.new(.5, 0, 2, 0),
  526.                 TextColor3 = Color3.new(0.517647, 0, 0.517647),
  527.             })
  528.  
  529.             t_in:Play()
  530.             t_in.Completed:Wait()
  531.             wait(1.5)
  532.             t_out:Play()
  533.             t_out.Completed:Wait()
  534.             introSgui:Destroy()
  535.  
  536.             wait(.5)
  537.  
  538.             ScreenGui.Enabled = true
  539.  
  540.             local function makeMsg(content: string)
  541.                 game.StarterGui:SetCore('SendNotification', {
  542.                     ["Title"] = 'Bloxxed Hub',
  543.                     ["Text"] = content,
  544.                     ["Duration"] = 7.5,
  545.                     ["Icon"] = 'rbxassetid://14039182429',
  546.                 })
  547.             end
  548.  
  549.             makeMsg('Loaded')
  550.  
  551.             local player = game.Players.LocalPlayer
  552.  
  553.             local title = script.Parent.bg_main.title -- dragable shit
  554.             local bg = script.Parent.bg_main
  555.  
  556.             local nm = 'undefined'
  557.  
  558.             local _, __ = pcall(function()
  559.                 nm = game:GetService("MarketplaceService"):GetProductInfo(game.PlaceId).Name
  560.             end)
  561.  
  562.             title.Text = string.gsub(title.Text, '<game_name>', nm)
  563.             title.Text = string.gsub(title.Text, '<ver>', thisBuildVer)
  564.             bg.subtitle.Text = string.gsub(bg.subtitle.Text, '<userid>', tostring(player.UserId))
  565.  
  566.             local uip = game:GetService('UserInputService')
  567.  
  568.             local noclipEnabled = false
  569.             local noclipUp = 0
  570.  
  571.             local overdropdown = false
  572.  
  573.             local safePrairePos = Vector3.new(860, 9, -365)
  574.  
  575.             DropDownBody.MouseEnter:Connect(function() overdropdown = true end)
  576.             DropDownBody.MouseLeave:Connect(function() overdropdown = false end)
  577.  
  578.             player:GetMouse().Button1Down:Connect(function()
  579.                 if not overdropdown then DropDownBody.Visible = false end
  580.             end)
  581.  
  582.             local cheats = {
  583.                 ["Visuals"] = {
  584.                     ["ESP"] = {false, 'Enable the whole section.'},
  585.                     ["Box"] = {false, 'Enable box ESP overlay.'},
  586.                     ["HP Display"] = {false, 'Enable healthpoint display.'},
  587.                     ["Name Display"] = {false, 'Enable name display.'},
  588.                     ["Faster Mode"] = {false, 'ESP Applies only to players in camera field of view. Less responsive but saves some FPS.'},
  589.                     ["Ore ESP"] = {false, 'Highlight ore deposits and lists ores belonging to it.'},
  590.                     ["Chest ESP"] = {false, 'Highlight chests.'},
  591.                 },
  592.                 ["Misc"] = {
  593.                     ["Noclip"] = {false, 'Makes user fly freely and throughout the walls. Keypad plus/minus to fly up/down.'},
  594.                     ["Noclip Keybind"] = {'RightControl', 'Change keybind to toggle the noclip.'},
  595.                     ["Noclip Speed"] = {50, 'Determines speed of noclip.', {0, 250}},
  596.                     ["Walkspeed Enabled"] = {false, 'Enable walkspeed modifier.'},
  597.                     ["Target walkspeed"] = {16, 'Determine target walkspeed.', {1, 125}},
  598.                     ["Jump Power Enabled"] = {false, 'Enable jump power modifier.'},
  599.                     ["Target jump power"] = {50, 'Determine jump power.', {1, 200}},
  600.                     ["Basic Noclip"] = {false, 'Makes You clip through the walls but without flying. On top of that updates server-side player position in real time.'},
  601.                     ["Custom FieldOfView"] = {false, 'Enable custom camera FieldOfView.'},
  602.                     ["Custom FOV Value"] = {70, 'Value that FOV will be set to if custom FOV setting is enabled.', {30, 120}},
  603.                     ["Disable Global Lightning"] = {false, 'Disables Lighting.GlobalShadows.'},
  604.                     ["Enable Force ClockTime"] = {false, 'Force ClockTime of choice.'},
  605.                     ["Forced ClockTime"] = {12, 'ClockTime that will be forced.'},
  606.                 },
  607.                 ["Autofarm"] = {
  608.                     ["Auto-Mine Ore Deposits"] = {false, 'Enable Auto-Miner. Equip pickaxe of Your choice before enabling this. Will not work if Auto-Chest is enabled.'},
  609.                     ["Target Specific Ore"] = {false, 'Make Auto-Miner focus of ore of Your choice.'},
  610.                     ["Target Ore"] = {{'Copper', {'Copper', 'Demetal', 'Diamond', 'Ruby', 'Sapphire', 'Emerald', 'Sulfur', 'Tin', 'Iron', 'Zinc'}}, 'Enable Auto-Miner.'},
  611.                     ["Auto-Open Chests"] = {false, 'Enable Chest Farm.'},
  612.                 },
  613.                 ["Safety"] = {
  614.                     ["Safzone when Low"] = {false, 'Teleports to praire upon reaching entered healthpoint threshold.'},
  615.                     ["Low HP Threshold"] = {{15, {15, 20, 25, 35, 50}}, 'Healthpoint threshold. Reaching it will automatically teleport You to safezone in Praire. (Values in %)'}
  616.                 }
  617.             }
  618.  
  619.             local moveDown = false
  620.             local moveUp = false
  621.  
  622.             uip.InputBegan:Connect(function(key, gpe)
  623.                 if not gpe then
  624.  
  625.                     if key.KeyCode == Enum.KeyCode.Insert then
  626.                         script.Parent.Enabled = not script.Parent.Enabled
  627.                     elseif key.KeyCode == Enum.KeyCode.KeypadPlus then
  628.                         moveUp = true
  629.                         print('moveUp true')
  630.                     elseif key.KeyCode == Enum.KeyCode.KeypadMinus then
  631.                         moveDown = true
  632.                         print('moveDown true')
  633.                     elseif key.KeyCode == Enum.KeyCode[cheats.Misc["Noclip Keybind"][1]] then
  634.                         if cheats.Misc.Noclip[1] then
  635.                             noclipEnabled = not noclipEnabled
  636.  
  637.                             local state = 'enabled'
  638.  
  639.                             if not noclipEnabled then
  640.                                 state = 'disabled'
  641.                             end
  642.  
  643.                             makeMsg('Noclip '..state)
  644.  
  645.                             if not noclipEnabled then
  646.                                 local selfRoot: BasePart = player.Character:FindFirstChild('HumanoidRootPart')
  647.  
  648.                                 if selfRoot then
  649.                                     selfRoot.Anchored = false
  650.                                 end
  651.                             end
  652.                         end
  653.                     end
  654.                 end
  655.             end)
  656.  
  657.             uip.InputEnded:Connect(function(key, gpe)
  658.                 if not gpe then
  659.  
  660.                     if key.KeyCode == Enum.KeyCode.KeypadPlus then
  661.                         moveUp = false
  662.                         print('moveUp false')
  663.                     elseif key.KeyCode == Enum.KeyCode.KeypadMinus then
  664.                         moveDown = false
  665.                         print('moveDown false')
  666.                     end
  667.                 end
  668.             end)
  669.  
  670.             local currentScheme = 1
  671.  
  672.             local colorSchemes = {
  673.                 [1] = {
  674.                     ["Title"] = 'Fog',
  675.                     ["Primary"] = Color3.fromRGB(40, 41, 45),
  676.                     ["Secondary"] = Color3.fromRGB(166, 166, 166),
  677.                 },
  678.                 [2] = {
  679.                     ["Title"] = 'Ultraviolet',
  680.                     ["Primary"] = Color3.fromRGB(56, 32, 61),
  681.                     ["Secondary"] = Color3.fromRGB(199, 66, 223),
  682.                 },
  683.                 [3] = {
  684.                     ["Title"] = 'Storm',
  685.                     ["Primary"] = Color3.fromRGB(18, 20, 45),
  686.                     ["Secondary"] = Color3.fromRGB(29, 100, 194),
  687.                 },
  688.                 [4] = {
  689.                     ["Title"] = 'Moon',
  690.                     ["Primary"] = Color3.fromRGB(25, 30, 35),
  691.                     ["Secondary"] = Color3.fromRGB(183, 108, 26),
  692.                 },
  693.                 [5] = {
  694.                     ["Title"] = 'Bloody',
  695.                     ["Primary"] = Color3.fromRGB(25, 0, 0),
  696.                     ["Secondary"] = Color3.fromRGB(199, 0, 3),
  697.                 },
  698.                 [6] = {
  699.                     ["Title"] = 'Blackout',
  700.                     ["Primary"] = Color3.fromRGB(0, 0, 0),
  701.                     ["Secondary"] = Color3.fromRGB(225, 225, 225),
  702.                 },
  703.                 [7] = {
  704.                     ["Title"] = 'Old Fart',
  705.                     ["Primary"] = Color3.fromRGB(27, 0, 0),
  706.                     ["Secondary"] = Color3.fromRGB(255, 255, 255),
  707.                 },
  708.                 [8] = {
  709.                     ["Title"] = 'Hacker',
  710.                     ["Primary"] = Color3.fromRGB(0, 0, 0),
  711.                     ["Secondary"] = Color3.fromRGB(0, 255, 0),
  712.                 },
  713.                 [9] = {
  714.                     ["Title"] = "Bloxxy's Fav",
  715.                     ["Primary"] = Color3.fromRGB(30, 30, 30),
  716.                     ["Secondary"] = Color3.fromRGB(255, 0, 230),
  717.                 },
  718.                 [10] = {
  719.                     ["Title"] = "Sakpog",
  720.                     ["Primary"] = Color3.fromRGB(29, 0, 0),
  721.                     ["Secondary"] = Color3.fromRGB(0, 95, 248),
  722.                 },
  723.             }
  724.  
  725.             local offset = UDim2.new(0, 0, 0, 0)
  726.  
  727.             local hoverOverDraggable = false
  728.             local dragging = false
  729.  
  730.             local smoothing_v2 = Vector2.new()
  731.  
  732.             title.MouseEnter:Connect(function() hoverOverDraggable = true end)
  733.             title.MouseLeave:Connect(function() hoverOverDraggable = false end)
  734.  
  735.             local mouse = player:GetMouse()
  736.  
  737.             local aimbotKeyDown = false
  738.  
  739.             mouse.Button2Down:Connect(function() aimbotKeyDown = true end)
  740.             mouse.Button2Up:Connect(function() aimbotKeyDown = false end)
  741.  
  742.             mouse.Button1Down:Connect(function()
  743.                 if hoverOverDraggable then
  744.                     dragging = true
  745.                 end
  746.             end)
  747.  
  748.             mouse.Button1Up:Connect(function() dragging = false end)
  749.  
  750.             for sectionName: string, _settings: {any} in pairs(cheats) do
  751.                 local section = script.Parent.Assets.sectionMain:Clone()
  752.                 section.Text = '['..sectionName..']'
  753.                 section.Parent = ScrollingFrame
  754.  
  755.                 section.Visible = true
  756.  
  757.                 for settingName: string, _setting_config: {any} in pairs(_settings) do
  758.                     local deafultValue: boolean | string | number = _setting_config[1]
  759.                     local desc: string = _setting_config[2] or '...'
  760.                     local clamp: {number}? = _setting_config[3]
  761.  
  762.                     local tof = typeof(deafultValue)
  763.  
  764.                     local settingFrame
  765.  
  766.                     if tof == 'string' or tof == 'number' then
  767.                         local setting = script.Parent.Assets.sectionSubInput:Clone()
  768.                         setting.setting.Text = settingName..':'
  769.                         setting.input.PlaceholderText = tostring(deafultValue)
  770.                         setting.Parent = ScrollingFrame
  771.                         settingFrame = setting
  772.  
  773.                         setting.Visible = true
  774.  
  775.                         local focused = false
  776.  
  777.                         setting.input.Focused:Connect(function()
  778.                             focused = true
  779.                         end)
  780.  
  781.                         setting.input.FocusLost:Connect(function()
  782.                             if focused then
  783.                                 focused = false
  784.  
  785.                                 if setting.input.Text ~= '' then
  786.  
  787.                                     if tof == 'number' then
  788.                                         local newVal = tonumber(setting.input.Text)
  789.  
  790.                                         if clamp then
  791.                                             newVal = math.max(clamp[1], math.min(newVal, clamp[2]))
  792.                                         end
  793.  
  794.                                         setting.input.PlaceholderText = tostring(newVal)
  795.                                         cheats[sectionName][settingName][1] = newVal
  796.                                     else
  797.                                         setting.input.PlaceholderText = setting.input.Text
  798.                                         cheats[sectionName][settingName][1] = setting.input.Text
  799.                                     end
  800.  
  801.                                     makeMsg(settingName..' has been set to '..tostring(cheats[sectionName][settingName][1]))
  802.  
  803.                                     setting.input.Text = ''
  804.                                 end
  805.                             end
  806.                         end)
  807.                     elseif tof == 'boolean' then
  808.                         local setting = script.Parent.Assets.sectionSubBoolean:Clone()
  809.                         setting.setting.Text = settingName..': '..tostring(deafultValue)
  810.                         setting.Parent = ScrollingFrame
  811.  
  812.                         settingFrame = setting
  813.  
  814.                         setting.detection.MouseButton1Click:Connect(function()
  815.                             cheats[sectionName][settingName][1] = not cheats[sectionName][settingName][1]
  816.  
  817.                             setting.setting.Text = settingName..': '..tostring(cheats[sectionName][settingName][1])
  818.                             makeMsg(settingName..' has been set to '..tostring(cheats[sectionName][settingName][1]))
  819.                         end)
  820.  
  821.                         setting.Visible = true
  822.                     else
  823.                         local currentValue: string | number = deafultValue[1]
  824.                         local list: {string | number} = deafultValue[2]
  825.  
  826.                         local setting = sectionSubBoolean:Clone()
  827.                         setting.setting.Text = settingName..': '..tostring(currentValue)
  828.                         setting.Parent = ScrollingFrame
  829.  
  830.                         setting.detection.MouseButton1Click:Connect(function()
  831.                             DropDownBody.Visible = true
  832.                             DropDownBody.Position = UDim2.new(0, mouse.X, 0, mouse.Y)
  833.  
  834.                             for i, v in ipairs(DropDownScroll:GetChildren()) do
  835.                                 if v:IsA('TextButton') then
  836.                                     v:Destroy()
  837.                                 end
  838.                             end
  839.  
  840.                             table.sort(list, function(a, b) return a < b end)
  841.  
  842.                             for entryNumber, value in ipairs(list) do
  843.                                 local tb = Instance.new('TextButton')
  844.                                 tb.Text = '<b>'..tostring(value)..'</b>'
  845.                                 tb.Name = 'ValueChose:'..tostring(value)
  846.                                 tb.Parent = DropDownScroll
  847.                                 tb.BackgroundTransparency = 1
  848.                                 tb.RichText = true
  849.                                 tb.Size = UDim2.new(1, 0, .033, 0)
  850.                                 tb.TextScaled = true
  851.                                 tb.TextColor3 = Color3.new(1, 1, 1)
  852.                                 tb.TextStrokeTransparency = .5
  853.  
  854.                                 tb.MouseButton1Click:Connect(function()
  855.                                     cheats[sectionName][settingName][1][1] = value
  856.                                     DropDownBody.Visible = false
  857.  
  858.                                     setting.setting.Text = settingName..': '..tostring(value)
  859.                                 end)
  860.                             end
  861.                         end)
  862.  
  863.                         setting.Visible = true
  864.                     end
  865.  
  866.                     if settingFrame then
  867.                         settingFrame.MouseEnter:Connect(function()
  868.                             script.Parent.desc.Position = UDim2.new(0, mouse.X, 0, mouse.Y + 36)
  869.                             script.Parent.desc.Visible = true
  870.  
  871.                             script.Parent.desc.descContent.Text = desc
  872.                         end)
  873.  
  874.                         settingFrame.MouseLeave:Connect(function()
  875.                             script.Parent.desc.Visible = false
  876.                         end)
  877.                     end
  878.                 end
  879.             end
  880.  
  881.             local colorschemeChanger = script.Parent.Assets.sectionSubBoolean:Clone()
  882.             colorschemeChanger.Parent = ScrollingFrame
  883.             colorschemeChanger.Visible = true
  884.  
  885.             colorschemeChanger.setting.Text = 'Color Scheme: '..colorSchemes[currentScheme].Title
  886.  
  887.             local changeColor = false
  888.  
  889.             colorschemeChanger.detection.MouseButton1Click:Connect(function()
  890.  
  891.                 if not changeColor then
  892.                     changeColor = true
  893.                     currentScheme += 1
  894.  
  895.                     if not colorSchemes[currentScheme] then
  896.                         currentScheme = 1
  897.                     end
  898.  
  899.                     colorschemeChanger.setting.Text = 'Color Scheme: '..colorSchemes[currentScheme].Title
  900.  
  901.                     wait(.5)
  902.                     changeColor = false
  903.                 end
  904.             end)
  905.  
  906.             local cam = workspace.CurrentCamera
  907.  
  908.             local function get_nearest_player()
  909.                 local maxDist = cheats[""]
  910.                 local target = nil
  911.  
  912.                 for _, plr in ipairs(game.Players:GetPlayers()) do
  913.  
  914.                     local character = plr.Character
  915.  
  916.                     if character then
  917.  
  918.                         if character ~= player.Character then
  919.                             local root: BasePart, selfRoot: BasePart = character:FindFirstChild('HumanoidRootPart'), player.Character:FindFirstChild('HumanoidRootPart')
  920.                             local hum = character:FindFirstChildWhichIsA('Humanoid')
  921.  
  922.                             if root and selfRoot and hum then
  923.  
  924.                                 local mag = (root.Position - selfRoot.Position).Magnitude
  925.  
  926.                                 if mag < maxDist and hum.Health > 0 then
  927.  
  928.                                     local pos_on_screen, onScreen = cam:WorldToScreenPoint(root.Position)
  929.  
  930.                                     if onScreen then
  931.  
  932.                                         local mouseV2 = Vector2.new(mouse.X, mouse.Y + 36)
  933.  
  934.                                         pos_on_screen = Vector2.new(pos_on_screen.X, pos_on_screen.Y)
  935.  
  936.                                         local scr_mag = (mouseV2 - pos_on_screen).Magnitude
  937.  
  938.                                         if scr_mag <= cheats["PVP"]["Aimbot FOV"][1][1] and cheats["PVP"]["FOV Based"][1] or not cheats["PVP"]["FOV Based"][1] then
  939.  
  940.                                             if plr.Team ~= player.Team or player.Neutral or cheats.Misc["Ignore Teams"][1] then
  941.  
  942.                                                 if not cheats.Misc["Ignore Friends"] or cheats.Misc["Ignore Friends"] and not plr:IsFriendsWith(player.UserId) then
  943.                                                     if not character:FindFirstChildWhichIsA('ForceField') or cheats.Visuals["Ignore Players with ForceField"][1] then
  944.  
  945.                                                         local canAimAt = true
  946.  
  947.                                                         if cheats["PVP"]["Visibility Check"][1] then
  948.                                                             local rp = RaycastParams.new()
  949.                                                             rp.IgnoreWater = true
  950.                                                             rp.FilterType = Enum.RaycastFilterType.Exclude
  951.                                                             rp.FilterDescendantsInstances = {player.Character, plr.Character}
  952.                                                             rp.RespectCanCollide = true
  953.  
  954.                                                             local results = workspace:Raycast(cam.CFrame.Position, root.Position, rp)
  955.  
  956.                                                             if results then canAimAt = false end
  957.                                                         end
  958.  
  959.                                                         if canAimAt then
  960.                                                             maxDist = mag
  961.                                                             target = character
  962.                                                         end
  963.                                                     end
  964.                                                 end
  965.                                             end
  966.                                         end
  967.                                     end
  968.                                 end
  969.                             end
  970.                         end
  971.                     end
  972.                 end
  973.  
  974.                 return target
  975.             end
  976.  
  977.             local function getNearestOre()
  978.                 local targetOreName = nil
  979.  
  980.                 local maxDist = math.huge
  981.                 local targetOrePart: Part = nil
  982.  
  983.                 if cheats.Autofarm["Target Specific Ore"][1] then
  984.                     targetOreName = cheats.Autofarm["Target Ore"][1][1]
  985.                 end
  986.  
  987.                 print(targetOreName)
  988.  
  989.                 local ores: Folder = workspace:FindFirstChild('Ores')
  990.  
  991.                 if ores then
  992.  
  993.                     local oreHolders: {Part} = {}
  994.  
  995.                     for i, oreFolder: Folder in ipairs(ores:GetChildren()) do
  996.                         for i, oreModel: Model in ipairs(oreFolder:GetChildren()) do
  997.  
  998.                             local part: Part = oreModel:FindFirstChild('Part')
  999.  
  1000.                             if part then table.insert(oreHolders, part) end
  1001.                         end
  1002.                     end
  1003.  
  1004.                     for i, orePart in ipairs(oreHolders) do
  1005.  
  1006.                         if orePart:FindFirstChild(tostring(targetOreName)) or not targetOreName then
  1007.  
  1008.                             local selfRoot: BasePart = player.Character:FindFirstChild('HumanoidRootPart')
  1009.  
  1010.                             if selfRoot then
  1011.  
  1012.                                 local mag = (selfRoot.Position - orePart.Position).Magnitude
  1013.  
  1014.                                 if mag < maxDist then
  1015.  
  1016.                                     maxDist = mag
  1017.                                     targetOrePart = orePart
  1018.                                 end
  1019.                             end
  1020.                         end
  1021.                     end
  1022.                 end
  1023.  
  1024.                 return targetOrePart
  1025.             end
  1026.  
  1027.             local function getNearestChestPrompt()
  1028.                 local maxDist = math.huge
  1029.                 local targetPrompt: ProximityPrompt = nil
  1030.                 local targetChestRoot: BasePart = nil
  1031.  
  1032.                 local chestsFolder: Folder = workspace:FindFirstChild('Chests')
  1033.  
  1034.                 if chestsFolder then
  1035.  
  1036.                     for i, chestModel: Model in ipairs(chestsFolder:GetChildren()) do
  1037.  
  1038.                         local selfRoot: BasePart = player.Character:FindFirstChild('HumanoidRootPart')
  1039.                         local chestRoot: BasePart = chestModel:FindFirstChild('Root')
  1040.  
  1041.                         print(selfRoot, chestRoot)
  1042.  
  1043.                         if selfRoot and chestRoot then
  1044.  
  1045.                             local mag = (selfRoot.Position - chestRoot.Position).Magnitude
  1046.  
  1047.                             if mag < maxDist then
  1048.  
  1049.                                 maxDist = mag
  1050.  
  1051.                                 print('end')
  1052.  
  1053.                                 targetChestRoot = chestRoot
  1054.                                 targetPrompt = chestModel:FindFirstChildWhichIsA('ProximityPrompt')
  1055.                             end
  1056.                         end
  1057.                     end
  1058.                 end
  1059.  
  1060.                 return targetPrompt, targetChestRoot
  1061.             end
  1062.  
  1063.             -- farm
  1064.             local oreMineUpdate = 0.0
  1065.             local chestOpenUpdate = 0.0
  1066.  
  1067.             local espUpdate = 0.0
  1068.  
  1069.             game:GetService('RunService').RenderStepped:Connect(function(delta)
  1070.                 if not Active then return end
  1071.                 ScreenGui.Name = randomize_string(24)
  1072.  
  1073.                 local act_scheme = colorSchemes[currentScheme]
  1074.  
  1075.                 if changeColor then
  1076.                     for _, v: Instance in ipairs(script.Parent:GetDescendants()) do
  1077.                         if not v:FindFirstAncestor('NotPaintable') and not v:FindFirstAncestor('Assets') and not v:FindFirstAncestor('bin') then
  1078.                             if v:IsA('Frame') then
  1079.                                 v.BackgroundColor3 = v.BackgroundColor3:Lerp(act_scheme.Primary, .15)
  1080.  
  1081.                                 if v.BackgroundTransparency > 0 then
  1082.                                     local r, g, b = act_scheme.Secondary.R, act_scheme.Secondary.G, act_scheme.Secondary.B
  1083.  
  1084.                                     v.BackgroundColor3 = Color3.fromRGB(r - 55, g - 55, b - 55)
  1085.                                 end
  1086.                             elseif v:IsA('UIStroke') then
  1087.                                 v.Color = v.Color:Lerp(act_scheme.Secondary, .15)
  1088.                             elseif v:IsA('TextLabel') or v:IsA('TextBox') then
  1089.                                 v.TextColor3 = v.TextColor3:Lerp(act_scheme.Secondary, .15)
  1090.                             end
  1091.                         end
  1092.                     end
  1093.                 end
  1094.  
  1095.                 smoothing_v2 = smoothing_v2:Lerp(Vector2.new(mouse.X, mouse.Y + offset.Y.Offset), .1)
  1096.  
  1097.                 if dragging then
  1098.                     bg.Position = UDim2.new(0, smoothing_v2.X, 0, smoothing_v2.Y, 0)
  1099.                 else
  1100.                     offset = UDim2.new(0, title.Position.X.Offset, 0, title.Position.Y.Offset + (.5 * bg_main.AbsoluteSize.Y))
  1101.                 end
  1102.  
  1103.                 -- cheats
  1104.  
  1105.                 -- farm
  1106.  
  1107.                 chestOpenUpdate += delta               
  1108.                 oreMineUpdate += delta
  1109.  
  1110.                 if chestOpenUpdate >= .25 then
  1111.                     chestOpenUpdate = 0
  1112.  
  1113.                     if cheats.Autofarm["Auto-Open Chests"][1] then
  1114.  
  1115.                         local targetPrompt, targetRoot = getNearestChestPrompt()
  1116.  
  1117.                         if targetPrompt and targetRoot then
  1118.  
  1119.                             if targetPrompt.Enabled then
  1120.  
  1121.                                 if player.Character then
  1122.  
  1123.                                     local selfRoot: BasePart = player.Character:FindFirstChild('HumanoidRootPart')
  1124.  
  1125.                                     if selfRoot then
  1126.  
  1127.                                         selfRoot.CFrame = CFrame.new(targetRoot.Position + Vector3.new(0, 2, 0))
  1128.  
  1129.                                         spawn(function()
  1130.                                             targetPrompt:InputHoldBegin()
  1131.                                             wait(.1)
  1132.                                             targetPrompt:InputHoldEnd()
  1133.                                         end)
  1134.                                     end
  1135.                                 end
  1136.                             end
  1137.                         end
  1138.                     end
  1139.                 end
  1140.  
  1141.                 if oreMineUpdate >= .1 then
  1142.                     oreMineUpdate = 0
  1143.  
  1144.                     if cheats.Autofarm["Auto-Mine Ore Deposits"][1] and not cheats.Autofarm["Auto-Open Chests"][1] then
  1145.  
  1146.                         local targetOrePart: BasePart = getNearestOre()
  1147.                         print(targetOrePart)
  1148.  
  1149.                         if targetOrePart then
  1150.  
  1151.                             local t_pos = targetOrePart.CFrame.Position - Vector3.new(2.25, 0, 0)
  1152.  
  1153.                             local t_cf = CFrame.new(t_pos) * CFrame.lookAt(t_pos, targetOrePart.Position).Rotation
  1154.  
  1155.                             if player.Character then
  1156.  
  1157.                                 local selfRoot: BasePart = player.Character:FindFirstChild('HumanoidRootPart')
  1158.  
  1159.                                 if selfRoot then
  1160.  
  1161.                                     selfRoot.CFrame = t_cf
  1162.  
  1163.                                     local tool = player.Character:FindFirstChildWhichIsA('Tool')
  1164.  
  1165.                                     if tool then
  1166.  
  1167.                                         if tool.Name ~= string.gsub(tool.Name, 'Pickaxe', '') then -- tool is a pickaxe
  1168.  
  1169.                                             local slash: RemoteEvent = tool:FindFirstChild('Slash')
  1170.  
  1171.                                             if slash then
  1172.  
  1173.                                                 local args = {
  1174.                                                     [1] = 1,
  1175.                                                 }
  1176.  
  1177.                                                 slash:FireServer(unpack(args))
  1178.                                             end
  1179.                                         end
  1180.                                     end
  1181.                                 end
  1182.                             end
  1183.                         end
  1184.                     end
  1185.                 end
  1186.  
  1187.                 -- safety
  1188.  
  1189.                 if cheats.Safety["Safzone when Low"][1] then
  1190.  
  1191.                     local char = player.Character
  1192.  
  1193.                     if char then
  1194.  
  1195.                         local hum = char:FindFirstChildWhichIsA('Humanoid')
  1196.                         local selfRoot: BasePart = char:FindFirstChild('HumanoidRootPart')
  1197.  
  1198.                         if hum then
  1199.  
  1200.                             local ratio = hum.Health / hum.MaxHealth * 100
  1201.  
  1202.                             local threshold = cheats.Safety["Low HP Threshold"][1][1]
  1203.  
  1204.                             if ratio <= threshold then
  1205.  
  1206.                                 selfRoot.CFrame = CFrame.new(safePrairePos)
  1207.                             end
  1208.                         end
  1209.                     end
  1210.                 end
  1211.  
  1212.                 -- esp
  1213.  
  1214.                 if cheats.Misc['Enable Force ClockTime'][1] then
  1215.                     game.Lighting.ClockTime = cheats.Misc["Forced ClockTime"][1]
  1216.                 end
  1217.  
  1218.                 espUpdate += delta
  1219.  
  1220.                 if espUpdate >= .1 then -- update
  1221.                     espUpdate = 0.0
  1222.  
  1223.                     for i, v in ipairs(script.Parent.bin:GetChildren()) do
  1224.                         v:Destroy()
  1225.                     end
  1226.  
  1227.                     if cheats.Visuals.ESP[1] then
  1228.  
  1229.                         local ores: Folder = workspace:FindFirstChild('Ores')
  1230.                         local chests: Folder = workspace:FindFirstChild('Chests')
  1231.  
  1232.                         if ores then
  1233.  
  1234.                             if cheats.Visuals["Ore ESP"][1] then
  1235.  
  1236.                                 for i, oreFolder: Folder in ipairs(ores:GetChildren()) do
  1237.  
  1238.                                     for i, oreModel: Model in ipairs(oreFolder:GetChildren()) do
  1239.  
  1240.                                         local _, onScreen = cam:WorldToScreenPoint(oreModel:FindFirstChild('Part').Position)
  1241.  
  1242.                                         if cheats.Visuals["Faster Mode"][1] and onScreen or not cheats.Visuals["Faster Mode"][1] then
  1243.  
  1244.                                             local glow = OreChestGlow:Clone()
  1245.                                             glow.Parent = bin
  1246.                                             glow.Adornee = oreModel
  1247.                                             glow.FillColor = Color3.new(1, 0, 0)
  1248.  
  1249.                                             local esp = OreESPBillboardGui:Clone()
  1250.                                             esp.Parent = bin
  1251.                                             esp.Adornee = oreModel
  1252.                                             esp.Enabled = true
  1253.  
  1254.                                             local part: BasePart = oreModel:FindFirstChild('Part')
  1255.  
  1256.                                             if part then
  1257.  
  1258.                                                 for i, orePart: BasePart in ipairs(part:GetChildren()) do
  1259.  
  1260.                                                     esp.List.Text ..= orePart.Name..'; '
  1261.                                                 end
  1262.                                             end
  1263.                                         end
  1264.                                     end
  1265.                                 end
  1266.                             end
  1267.                         end
  1268.  
  1269.                         if chests then
  1270.  
  1271.                             if cheats.Visuals["Chest ESP"][1] then
  1272.  
  1273.                                 for i, chestModel: Model in ipairs(chests:GetChildren()) do
  1274.  
  1275.                                     local _, onScreen = cam:WorldToScreenPoint(chestModel:FindFirstChild('Root').Position)
  1276.  
  1277.                                     if cheats.Visuals["Faster Mode"][1] and onScreen or not cheats.Visuals["Faster Mode"][1] then
  1278.  
  1279.                                         local chestGlow = OreChestGlow:Clone()
  1280.                                         chestGlow.Parent = bin
  1281.                                         chestGlow.Adornee = chestModel
  1282.                                         chestGlow.FillColor = Color3.new(.92, .92, 0)
  1283.                                     end
  1284.                                 end
  1285.                             end
  1286.                         end
  1287.  
  1288.                         for i, v in ipairs(game.Players:GetPlayers()) do
  1289.                             local character = v.Character
  1290.  
  1291.                             if character then
  1292.  
  1293.                                 if character ~= player.Character then
  1294.  
  1295.                                     local root: BasePart = character:FindFirstChild('HumanoidRootPart')
  1296.  
  1297.                                     if root then
  1298.  
  1299.                                         local _, onScreen = cam:WorldToScreenPoint(root.Position)
  1300.  
  1301.                                         if onScreen and cheats.Visuals["Faster Mode"][1] or not cheats.Visuals["Faster Mode"][1] then
  1302.  
  1303.                                             local gui = script.Parent.Assets.Visuals.espGui:Clone()
  1304.                                             gui.Parent = script.Parent.bin
  1305.                                             gui.Adornee = root
  1306.  
  1307.                                             gui.Enabled = true
  1308.  
  1309.                                             local magnitude = 0
  1310.  
  1311.                                             local selfRoot: BasePart = player.Character:FindFirstChild('HumanoidRootPart')
  1312.  
  1313.                                             if selfRoot then
  1314.                                                 magnitude = (root.Position - selfRoot.Position).Magnitude
  1315.                                                 magnitude = math.round(magnitude * 50) / 50
  1316.                                             end
  1317.  
  1318.                                             gui.box.Visible = cheats.Visuals.Box[1]
  1319.                                             gui.hp.Visible = cheats.Visuals["HP Display"][1]
  1320.                                             gui.name.Visible = cheats.Visuals['Name Display'][1]
  1321.  
  1322.                                             local humanoid = character:FindFirstChildWhichIsA('Humanoid')
  1323.  
  1324.                                             local add = ''
  1325.  
  1326.                                             if character:FindFirstChildWhichIsA('ForceField') then
  1327.                                                 add = '\n<font color="#ff0000">(Immune)</font>'
  1328.                                             end
  1329.  
  1330.                                             gui.name.Text = '<displayname> (@<username>)\n<distance> stds'..add
  1331.  
  1332.                                             gui.name.Text = string.gsub(gui.name.Text, '<displayname>', v.DisplayName)
  1333.                                             gui.name.Text = string.gsub(gui.name.Text, '<username>', v.Name)
  1334.                                             gui.name.Text = string.gsub(gui.name.Text, '<distance>', tostring(magnitude))
  1335.  
  1336.                                             if humanoid then
  1337.                                                 gui.hp.current.Size = UDim2.new(1, 0, humanoid.Health / humanoid.MaxHealth, 0)
  1338.                                             end
  1339.                                         end
  1340.                                     end
  1341.                                 end
  1342.                             end
  1343.                         end
  1344.                     end
  1345.                 end
  1346.  
  1347.                 -- noclip
  1348.  
  1349.                 if cheats.Misc.Noclip[1] and noclipEnabled then
  1350.  
  1351.                     local selfHum = player.Character:FindFirstChildWhichIsA('Humanoid')
  1352.  
  1353.                     if selfHum then
  1354.  
  1355.                         local moveDir = selfHum.MoveDirection
  1356.                         local selfRoot: BasePart = player.Character:FindFirstChild('HumanoidRootPart')
  1357.  
  1358.                         if selfRoot then
  1359.                             selfRoot.Anchored = true
  1360.  
  1361.                             local moveMultiplier = 0
  1362.  
  1363.                             if moveUp then
  1364.                                 moveMultiplier += 1
  1365.                             end
  1366.  
  1367.                             if moveDown then
  1368.                                 moveMultiplier -= 1
  1369.                             end
  1370.  
  1371.                             local v3 = Vector3.new(0, cheats.Misc["Noclip Speed"][1] * delta * moveMultiplier)
  1372.  
  1373.                             selfRoot.CFrame = CFrame.new(selfRoot.Position + (moveDir * cheats.Misc["Noclip Speed"][1] * delta) + v3) * cam.CFrame.Rotation
  1374.                         end
  1375.                     end
  1376.                 end
  1377.  
  1378.                 -- other visuals
  1379.  
  1380.                 if cheats.Misc["Custom FieldOfView"][1] then
  1381.                     cam.FieldOfView = cheats.Misc["Custom FOV Value"][1] or 70
  1382.                 end
  1383.  
  1384.                 game.Lighting.GlobalShadows = not cheats.Misc["Disable Global Lightning"][1]
  1385.  
  1386.                 -- movement
  1387.  
  1388.                 local s_char = player.Character
  1389.  
  1390.                 if s_char then
  1391.  
  1392.                     local s_hum = s_char:FindFirstChildWhichIsA('Humanoid')
  1393.  
  1394.                     if s_hum then
  1395.  
  1396.                         if cheats.Misc["Walkspeed Enabled"][1] then
  1397.                             local t_ws = cheats.Misc["Target walkspeed"][1] or 16
  1398.  
  1399.                             s_hum.WalkSpeed = t_ws
  1400.                         end
  1401.  
  1402.                         if cheats.Misc["Jump Power Enabled"][1] then
  1403.                             local t_jp = cheats.Misc["Target jump power"][1] or 50
  1404.  
  1405.                             s_hum.UseJumpPower = true
  1406.                             s_hum.JumpPower = t_jp
  1407.                         end
  1408.                     end
  1409.                 end
  1410.  
  1411.                 for i, v in ipairs(player.Character:GetChildren()) do
  1412.  
  1413.                     if v:IsA('BasePart') then
  1414.  
  1415.                         v.CanCollide = not cheats.Misc["Basic Noclip"][1]
  1416.  
  1417.                         if v.CanCollide then
  1418.                             if v.Name ~= 'HumanoidRootPart' and v.Name ~= 'Head' then
  1419.                                 v.CanCollide = false
  1420.                             end
  1421.                         end
  1422.                     end
  1423.                 end
  1424.             end)
  1425.         else
  1426.             game.Players.LocalPlayer:Kick("[BHUB]:: This script's version is outdated! Get new version here: https://pastebin.com/a15ezPaB")
  1427.         end
  1428.     else
  1429.         game.Players.LocalPlayer:Kick("[BHUB]:: Couldn't fetch script's version")
  1430.     end
  1431. end
  1432. coroutine.wrap(TZVJ_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement