IMTHEBO2

LLHax2.0Testing

May 6th, 2022 (edited)
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.50 KB | None | 0 0
  1. local _p = "_p"
  2. for i,v in pairs(debug.getregistry()) do
  3. if type(v) == 'function' then
  4. for i,v in pairs(debug.getupvalues(v)) do
  5. local ret,tab = pcall (function() return v["NPCChat"] end)
  6. if ret == true and type(tab) == "table" then
  7. _p = v
  8. break
  9. end
  10. end
  11. end
  12. end
  13.  
  14. local Utilities = _p.Utilities
  15. local create = Utilities.Create
  16. local write = Utilities.Write
  17. local roundedFrame = _p.RoundedFrame
  18. local plr = _p.player
  19. local mouse = plr:GetMouse()
  20. local char = plr.Character
  21. local c = workspace.CurrentCamera
  22. local userInput = game:GetService("UserInputService")
  23. local speed = 60
  24. local ignM, ignW, ignPS = true, true, true
  25.  
  26. function getNextMovement(deltaTime)
  27. local nextMove = Vector3.new()
  28. -- Left/Right
  29. if userInput:IsKeyDown("A") or userInput:IsKeyDown("Left") then
  30. nextMove = Vector3.new(-1,0,0)
  31. elseif userInput:IsKeyDown("D") or userInput:IsKeyDown("Right") then
  32. nextMove = Vector3.new(1,0,0)
  33. end
  34. -- Forward/Back
  35. if userInput:IsKeyDown("W") or userInput:IsKeyDown("Up") then
  36. nextMove = nextMove + Vector3.new(0,0,-1)
  37. elseif userInput:IsKeyDown("S") or userInput:IsKeyDown("Down") then
  38. nextMove = nextMove + Vector3.new(0,0,1)
  39. end
  40. -- Up/Down
  41. if userInput:IsKeyDown("Space") then
  42. nextMove = nextMove + Vector3.new(0,1,0)
  43. elseif userInput:IsKeyDown("LeftControl") then
  44. nextMove = nextMove + Vector3.new(0,-1,0)
  45. end
  46. return CFrame.new( nextMove * (speed * deltaTime) )
  47. end
  48.  
  49. local Visible = false
  50. local arrow, close
  51. local bg = roundedFrame:new({
  52. CornerRadius = Utilities.gui.AbsoluteSize.Y * 0.031,
  53. BackgroundColor3 = Color3.new(0.3, 0.3, 0.3),
  54. Size = UDim2.new(0.5, 0, 0.6, 0),
  55. Position = UDim2.new(0.5, 0, 1.3, 0),
  56. AnchorPoint = Vector2.new(0.5, 0.5),
  57. ZIndex = math.huge*math.huge, -- infront of everything bby
  58. Parent = Utilities.frontGui,
  59. --Button = true,
  60. --MouseButton1Click = function()
  61.  
  62. --end,
  63. })
  64.  
  65. local Debounce = false
  66.  
  67. local function Toggle()
  68. if Debounce then return end
  69. Debounce = true
  70. Visible = not Visible
  71.  
  72. if Visible then
  73. _p.Utilities.Tween(.5, 'easeOutCubic', function(a)
  74. bg.Position = UDim2.new(0.5, 0, 1.3-0.8*a, 0)
  75. arrow.Rotation = 180-180*a
  76. close:setBackgroundColor3(Color3.new(1*a, .8-.4*a, .4)) -- from green to red
  77. end)
  78. else
  79. _p.Utilities.Tween(.5, 'easeInCubic', function(a)
  80. bg.Position = UDim2.new(0.5, 0, 0.5+0.8*a, 0)
  81. arrow.Rotation = 180*a
  82. close:setBackgroundColor3(Color3.new(1-1*a, .4+.4*a, .4)) -- from red to green
  83. end)
  84. end
  85. Debounce = false
  86. end
  87.  
  88. write('LL Hax v2.0')({
  89. Scaled = true,
  90. Frame = create("Frame")({
  91. BackgroundTransparency = 1,
  92. Size = UDim2.new(0, 0, 0.1, 0),
  93. Position = UDim2.new(0.5, 0, 0.05, 0),
  94. ZIndex = 3,
  95. Parent = bg.gui,
  96. }),
  97. })
  98.  
  99. close = roundedFrame:new({
  100. CornerRadius = Utilities.gui.AbsoluteSize.Y * 0.031,
  101. BackgroundColor3 = Color3.new(0, .8, .4),
  102. Size = UDim2.new(0.125, 0, 0.2, 0),
  103. Position = UDim2.new(1, 0, 0, 0),
  104. AnchorPoint = Vector2.new(0.5, 0.5),
  105. ZIndex = 3,
  106. Parent = bg.gui,
  107. Button = true,
  108. MouseButton1Click = Toggle,
  109. })
  110.  
  111. arrow = create("ImageLabel")({
  112. BackgroundTransparency = 1,
  113. Image = "rbxassetid://1174799555", -- 2984940561
  114. SizeConstraint = Enum.SizeConstraint.RelativeYY,
  115. Size = UDim2.new(1, 0, 1, 0),
  116. AnchorPoint = Vector2.new(0.5, 0.5),
  117. Position = UDim2.new(0.5, 0, 0.5, 0),
  118. Rotation = 180,
  119. ZIndex = 31,
  120. Parent = close.gui
  121. })
  122.  
  123. write('NoClip: ')({
  124. Scaled = true,
  125. Frame = create("Frame")({
  126. BackgroundTransparency = 1,
  127. Size = UDim2.new(0, 0, 0.1, 0),
  128. Position = UDim2.new(0.15, 0, 0.25, 0),
  129. ZIndex = 3,
  130. Parent = bg.gui,
  131. }),
  132. })
  133.  
  134. local NCtipBg = create("TextButton")({
  135. BackgroundTransparency = 1,
  136. SizeConstraint = Enum.SizeConstraint.RelativeYY,
  137. Size = UDim2.fromScale(0.15, 0.16),
  138. AnchorPoint = Vector2.new(0.5, 0.5),
  139. Position = UDim2.new(0.5, 0, 0.3, 0),
  140. Font = Enum.Font.Gotham,
  141. Text = utf8.char(9432),
  142. TextScaled = true,
  143. TextColor3 = Color3.new(1, 1, 1),
  144. ZIndex = 6,
  145. Parent = bg.gui
  146. })
  147.  
  148. _p.ToolTip:create(NCtipBg, 'Toggles no clip (so you can go though walls, use "w" "a" "s" "d" "space" and "left control" to move)')
  149.  
  150. local ncToggle = _p.ToggleButton:new {
  151. Size = UDim2.new(0.0, 0, 0.1, 0),
  152. Position = UDim2.new(0.375, 0, 0.26, 0),
  153. Value = false,
  154. ZIndex = 3, Parent = bg.gui,
  155. }
  156.  
  157. local root = char:WaitForChild("HumanoidRootPart")
  158. local currentPos, lastUpdate
  159.  
  160. ncToggle.ValueChanged:connect(function()
  161. if ncToggle.Value then
  162.  
  163. currentPos = root.Position
  164.  
  165. root.Anchored = true
  166. lastUpdate = tick()
  167. for _, Part in pairs(char:GetDescendants())do
  168. if Part:IsA("Humanoid") then
  169. Part.PlatformStand = true
  170. end
  171. end
  172. while ncToggle.Value do
  173. wait()
  174. local delta = tick()-lastUpdate
  175. local look = (c.Focus.p-c.CoordinateFrame.p).unit
  176. local move = getNextMovement(delta)
  177. local pos = root.Position
  178. root.CFrame = CFrame.new(pos,pos+look) * move
  179. lastUpdate = tick()
  180. end
  181. else
  182. root.Anchored = false
  183. root.Velocity = Vector3.new()
  184. for _, Part in pairs(char:GetDescendants())do
  185. if Part:IsA("Humanoid") then
  186. Part.PlatformStand = false
  187. end
  188. end
  189. end
  190. end)
  191.  
  192. write('Jumping: ')({
  193. Scaled = true,
  194. Frame = create("Frame")({
  195. BackgroundTransparency = 1,
  196. Size = UDim2.new(0, 0, 0.1, 0),
  197. Position = UDim2.new(0.18, 0, 0.385, 0),
  198. ZIndex = 3,
  199. Parent = bg.gui,
  200. }),
  201. })
  202.  
  203. local JMPtipBg = create("TextButton")({
  204. BackgroundTransparency = 1,
  205. SizeConstraint = Enum.SizeConstraint.RelativeYY,
  206. Size = UDim2.fromScale(0.15, 0.16),
  207. AnchorPoint = Vector2.new(0.5, 0.5),
  208. Position = UDim2.new(0.565, 0, 0.44, 0),
  209. Font = Enum.Font.Gotham,
  210. Text = utf8.char(9432),
  211. TextScaled = true,
  212. TextColor3 = Color3.new(1, 1, 1),
  213. ZIndex = 6,
  214. Parent = bg.gui
  215. })
  216.  
  217. _p.ToolTip:create(JMPtipBg, 'Toggles whether you can jump or not.')
  218.  
  219. local jmpToggle = _p.ToggleButton:new {
  220. Size = UDim2.new(0.0, 0, 0.1, 0),
  221. Position = UDim2.new(0.44, 0, 0.4, 0),
  222. Value = false,
  223. ZIndex = 3, Parent = bg.gui,
  224. }
  225.  
  226. jmpToggle.ValueChanged:connect(function()
  227. _p.MasterControl:SetJumpEnabled(jmpToggle.Value)
  228. end)
  229.  
  230. write('Menu: ')({
  231. Scaled = true,
  232. Frame = create("Frame")({
  233. BackgroundTransparency = 1,
  234. Size = UDim2.new(0, 0, 0.1, 0),
  235. Position = UDim2.new(0.125, 0, 0.535, 0),
  236. ZIndex = 3,
  237. Parent = bg.gui,
  238. }),
  239. })
  240.  
  241. local MNUtipBg = create("TextButton")({
  242. BackgroundTransparency = 1,
  243. SizeConstraint = Enum.SizeConstraint.RelativeYY,
  244. Size = UDim2.fromScale(0.15, 0.16),
  245. AnchorPoint = Vector2.new(0.5, 0.5),
  246. Position = UDim2.new(0.45, 0, 0.58, 0),
  247. Font = Enum.Font.Gotham,
  248. Text = utf8.char(9432),
  249. TextScaled = true,
  250. TextColor3 = Color3.new(1, 1, 1),
  251. ZIndex = 6,
  252. Parent = bg.gui
  253. })
  254.  
  255. _p.ToolTip:create(MNUtipBg, 'Takes the menu buttons off / on screen .')
  256.  
  257. local mnuToggle = _p.ToggleButton:new {
  258. Size = UDim2.new(0.0, 0, 0.1, 0),
  259. Position = UDim2.new(0.325, 0, 0.54, 0),
  260. Value = _p.Menu.enabled,
  261. ZIndex = 3, Parent = bg.gui,
  262. }
  263.  
  264. mnuToggle.ValueChanged:connect(function()
  265. _p.Menu.preventEnable = false -- hehe boi
  266.  
  267. ignM = false
  268. if mnuToggle.Value then
  269. _p.Menu:enable()
  270. else
  271. _p.Menu:disable()
  272. end
  273. ignM = true
  274. end)
  275.  
  276. write('Walking: ')({
  277. Scaled = true,
  278. Frame = create("Frame")({
  279. BackgroundTransparency = 1,
  280. Size = UDim2.new(0, 0, 0.1, 0),
  281. Position = UDim2.new(0.175, 0, 0.67, 0),
  282. ZIndex = 3,
  283. Parent = bg.gui,
  284. }),
  285. })
  286.  
  287. local WLKtipBg = create("TextButton")({
  288. BackgroundTransparency = 1,
  289. SizeConstraint = Enum.SizeConstraint.RelativeYY,
  290. Size = UDim2.fromScale(0.15, 0.16),
  291. AnchorPoint = Vector2.new(0.5, 0.5),
  292. Position = UDim2.new(0.545, 0, 0.72, 0),
  293. Font = Enum.Font.Gotham,
  294. Text = utf8.char(9432),
  295. TextScaled = true,
  296. TextColor3 = Color3.new(1, 1, 1),
  297. ZIndex = 6,
  298. Parent = bg.gui
  299. })
  300.  
  301. _p.ToolTip:create(WLKtipBg, 'Toggles whether walking is enabled.')
  302.  
  303. local wlkToggle = _p.ToggleButton:new {
  304. Size = UDim2.new(0.0, 0, 0.1, 0),
  305. Position = UDim2.new(0.425, 0, 0.68, 0),
  306. Value = _p.MasterControl.WalkEnabled,
  307. ZIndex = 3, Parent = bg.gui,
  308. }
  309.  
  310. wlkToggle.ValueChanged:connect(function()
  311. ignW = false
  312. _p.MasterControl.WalkEnabled = wlkToggle.Value
  313. ignW = true
  314. end)
  315.  
  316. write('Players: ')({
  317. Scaled = true,
  318. Frame = create("Frame")({
  319. BackgroundTransparency = 1,
  320. Size = UDim2.new(0, 0, 0.1, 0),
  321. Position = UDim2.new(0.175, 0, 0.81, 0),
  322. ZIndex = 3,
  323. Parent = bg.gui,
  324. }),
  325. })
  326.  
  327. local PLRStipBg = create("TextButton")({
  328. BackgroundTransparency = 1,
  329. SizeConstraint = Enum.SizeConstraint.RelativeYY,
  330. Size = UDim2.fromScale(0.15, 0.16),
  331. AnchorPoint = Vector2.new(0.5, 0.5),
  332. Position = UDim2.new(0.545, 0, 0.86, 0),
  333. Font = Enum.Font.Gotham,
  334. Text = utf8.char(9432),
  335. TextScaled = true,
  336. TextColor3 = Color3.new(1, 1, 1),
  337. ZIndex = 6,
  338. Parent = bg.gui
  339. })
  340.  
  341. _p.ToolTip:create(PLRStipBg, 'Hides / shows other players and their loomians.')
  342.  
  343. local plrsToggle = _p.ToggleButton:new {
  344. Size = UDim2.new(0.0, 0, 0.1, 0),
  345. Position = UDim2.new(0.425, 0, 0.82, 0),
  346. Value = not _p.CutsceneManager.OtherPlayersHidden,
  347. ZIndex = 3, Parent = bg.gui,
  348. }
  349.  
  350. plrsToggle.ValueChanged:connect(function()
  351. ignPS = false
  352. if plrsToggle.Value then
  353. _p.CutsceneManager:ShowOtherPlayers()
  354. else
  355. _p.CutsceneManager:HideOtherPlayers()
  356. end
  357. ignPS = true
  358. end)
  359.  
  360. spawn(function()
  361. while true do
  362. if ignM and _p.Menu.enabled ~= mnuToggle.Value then
  363. mnuToggle:animateToValue(_p.Menu.enabled)
  364. end
  365. if ignW and _p.MasterControl.WalkEnabled ~= wlkToggle.Value then
  366. wlkToggle:animateToValue(_p.MasterControl.WalkEnabled)
  367. end
  368. if ignPS and _p.CutsceneManager.OtherPlayersHidden == plrsToggle.Value then
  369. plrsToggle:animateToValue(not _p.CutsceneManager.OtherPlayersHidden)
  370. end
  371. wait()
  372. end
  373. end)
  374.  
  375. local pc = roundedFrame:new({
  376. CornerRadius = Utilities.gui.AbsoluteSize.Y * 0.031,
  377. BackgroundColor3 = Color3.new(0.1, 0.1, 0.1),
  378. Size = UDim2.new(0.25, 0, 0.15, 0),
  379. Position = UDim2.new(0.775, 0, 0.3, 0),
  380. AnchorPoint = Vector2.new(0.5, 0.5),
  381. ZIndex = 2,
  382. Parent = bg.gui,
  383. Button = true,
  384. MouseButton1Click = function()
  385. _p.Menu.pc:bootUp()
  386. end,
  387. })
  388.  
  389. write('Open PC')({
  390. Scaled = true,
  391. Frame = create("Frame")({
  392. BackgroundTransparency = 1,
  393. Size = UDim2.new(0.4, 0, 0.4, 0),
  394. AnchorPoint = Vector2.new(0.5, 0.5),
  395. Position = UDim2.new(0.5, 0, 0.5, 0),
  396. ZIndex = 3,
  397. Parent = pc.gui,
  398. }),
  399. })
  400.  
  401. local PCtipBg = create("TextButton")({
  402. BackgroundTransparency = 1,
  403. SizeConstraint = Enum.SizeConstraint.RelativeYY,
  404. Size = UDim2.fromScale(0.15, 0.16),
  405. AnchorPoint = Vector2.new(0.5, 0.5),
  406. Position = UDim2.new(0.95, 0, 0.28, 0),
  407. Font = Enum.Font.Gotham,
  408. Text = utf8.char(9432),
  409. TextScaled = true,
  410. TextColor3 = Color3.new(1, 1, 1),
  411. ZIndex = 6,
  412. Parent = bg.gui
  413. })
  414.  
  415. _p.ToolTip:create(PCtipBg, 'Opens your pc, works anywhere!')
  416.  
  417. local heal = roundedFrame:new({
  418. CornerRadius = Utilities.gui.AbsoluteSize.Y * 0.031,
  419. BackgroundColor3 = Color3.new(0.1, 0.1, 0.1),
  420. Size = UDim2.new(0.25, 0, 0.15, 0),
  421. Position = UDim2.new(0.775, 0, 0.475, 0),
  422. AnchorPoint = Vector2.new(0.5, 0.5),
  423. ZIndex = 2,
  424. Parent = bg.gui,
  425. Button = true,
  426. MouseButton1Click = function()
  427. spawn(Toggle) -- good one mate!
  428. _p.Network:get("heal", "HealthCenter", "HealMachine1")
  429. end,
  430. })
  431.  
  432. write('Heal')({
  433. Scaled = true,
  434. Frame = create("Frame")({
  435. BackgroundTransparency = 1,
  436. Size = UDim2.new(0.6, 0, 0.6, 0),
  437. AnchorPoint = Vector2.new(0.5, 0.5),
  438. Position = UDim2.new(0.5, 0, 0.5, 0),
  439. ZIndex = 3,
  440. Parent = heal.gui,
  441. }),
  442. })
  443.  
  444. local healtipBg = create("TextButton")({
  445. BackgroundTransparency = 1,
  446. SizeConstraint = Enum.SizeConstraint.RelativeYY,
  447. Size = UDim2.fromScale(0.15, 0.16),
  448. AnchorPoint = Vector2.new(0.5, 0.5),
  449. Position = UDim2.new(0.95, 0, 0.46, 0),
  450. Font = Enum.Font.Gotham,
  451. Text = utf8.char(9432),
  452. TextScaled = true,
  453. TextColor3 = Color3.new(1, 1, 1),
  454. ZIndex = 6,
  455. Parent = bg.gui
  456. })
  457.  
  458. _p.ToolTip:create(healtipBg, 'Heals the loomians in your party, works anywhere!')
  459.  
  460. local eBattle = roundedFrame:new({
  461. CornerRadius = Utilities.gui.AbsoluteSize.Y * 0.031,
  462. BackgroundColor3 = Color3.new(0.1, 0.1, 0.1),
  463. Size = UDim2.new(0.3, 0, 0.15, 0),
  464. Position = UDim2.new(0.75, 0, 0.65, 0),
  465. AnchorPoint = Vector2.new(0.5, 0.5),
  466. ZIndex = 2,
  467. Parent = bg.gui,
  468. Button = true,
  469. MouseButton1Click = function()
  470. if _p.Battle.currentBattle then
  471. _p.Battle.currentBattle.BattleEnded:fire()
  472. else
  473. _p.NPCChat:say('You must be in a battle for this to work!')
  474. end
  475. end,
  476. })
  477.  
  478. write('End Battle')({
  479. Scaled = true,
  480. Frame = create("Frame")({
  481. BackgroundTransparency = 1,
  482. Size = UDim2.new(0.4, 0, 0.4, 0),
  483. AnchorPoint = Vector2.new(0.5, 0.5),
  484. Position = UDim2.new(0.5, 0, 0.5, 0),
  485. ZIndex = 3,
  486. Parent = eBattle.gui,
  487. }),
  488. })
  489.  
  490. local eBtltipBg = create("TextButton")({
  491. BackgroundTransparency = 1,
  492. SizeConstraint = Enum.SizeConstraint.RelativeYY,
  493. Size = UDim2.fromScale(0.15, 0.16),
  494. AnchorPoint = Vector2.new(0.5, 0.5),
  495. Position = UDim2.new(0.95, 0, 0.64, 0),
  496. Font = Enum.Font.Gotham,
  497. Text = utf8.char(9432),
  498. TextScaled = true,
  499. TextColor3 = Color3.new(1, 1, 1),
  500. ZIndex = 6,
  501. Parent = bg.gui
  502. })
  503.  
  504. _p.ToolTip:create(eBtltipBg, 'Ends the current battle instantly.')
  505.  
  506. local unstuck = roundedFrame:new({
  507. CornerRadius = Utilities.gui.AbsoluteSize.Y * 0.031,
  508. BackgroundColor3 = Color3.new(0.1, 0.1, 0.1),
  509. Size = UDim2.new(0.3, 0, 0.15, 0),
  510. Position = UDim2.new(0.75, 0, 0.825, 0),
  511. AnchorPoint = Vector2.new(0.5, 0.5),
  512. ZIndex = 2,
  513. Parent = bg.gui,
  514. Button = true,
  515. MouseButton1Click = function()
  516. _p.Menu.options:getUnstuck(true)
  517. end,
  518. })
  519.  
  520. write('Get Unstuck')({
  521. Scaled = true,
  522. Frame = create("Frame")({
  523. BackgroundTransparency = 1,
  524. Size = UDim2.new(0.4, 0, 0.4, 0),
  525. AnchorPoint = Vector2.new(0.5, 0.5),
  526. Position = UDim2.new(0.5, 0, 0.5, 0),
  527. ZIndex = 3,
  528. Parent = unstuck.gui,
  529. }),
  530. })
  531.  
  532. local unstucktipBg = create("TextButton")({
  533. BackgroundTransparency = 1,
  534. SizeConstraint = Enum.SizeConstraint.RelativeYY,
  535. Size = UDim2.fromScale(0.15, 0.16),
  536. AnchorPoint = Vector2.new(0.5, 0.5),
  537. Position = UDim2.new(0.95, 0, 0.82, 0),
  538. Font = Enum.Font.Gotham,
  539. Text = utf8.char(9432),
  540. TextScaled = true,
  541. TextColor3 = Color3.new(1, 1, 1),
  542. ZIndex = 6,
  543. Parent = bg.gui
  544. })
  545.  
  546. _p.ToolTip:create(unstucktipBg, 'Get Unstuck but no timer limitations.')
  547.  
  548. mouse.KeyDown:Connect(function(k)
  549. if k == 'r' then
  550. Toggle()
  551. end
  552. end)
  553.  
  554. _p.NPCChat:say("Thank you for using LL Hax v2.0!")
  555. _p.NPCChat.bottom = true
  556. _p.NPCChat:say("Made By BlueGuyCodes")
  557. _p.NPCChat.bottom = nil
  558. Toggle()
  559.  
Add Comment
Please, Sign In to add comment