IMTHEBO2

Hax

Dec 28th, 2020 (edited)
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.06 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local DaGui = Instance.new("ScreenGui")
  7. local MainFrame = Instance.new("Frame")
  8. local title = Instance.new("TextLabel")
  9. local noclipbtn = Instance.new("TextButton")
  10. local noclip2btn = Instance.new("TextButton")
  11. local debugcambtn = Instance.new("TextButton")
  12. local jumpbtn = Instance.new("TextButton")
  13. local speedbox = Instance.new("TextBox")
  14.  
  15. --Properties:
  16.  
  17. DaGui.Name = "DaGui"
  18. DaGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  19. DaGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  20.  
  21. MainFrame.Name = "MainFrame"
  22. MainFrame.Parent = DaGui
  23. MainFrame.Active = true
  24. MainFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 255)
  25. MainFrame.Position = UDim2.new(0.0789766461, 0, 0.431438148, 0)
  26. MainFrame.Selectable = true
  27. MainFrame.Size = UDim2.new(0, 382, 0, 217)
  28. MainFrame.Draggable = true
  29.  
  30. title.Name = "title"
  31. title.Parent = MainFrame
  32. title.BackgroundColor3 = Color3.fromRGB(0, 0, 255)
  33. title.Size = UDim2.new(0, 382, 0, 34)
  34. title.Font = Enum.Font.SourceSans
  35. title.Text = "Loomian Legacy Hax"
  36. title.TextColor3 = Color3.fromRGB(255, 255, 255)
  37. title.TextScaled = true
  38. title.TextSize = 14.000
  39. title.TextWrapped = true
  40.  
  41. noclipbtn.Name = "noclipbtn"
  42. noclipbtn.Parent = MainFrame
  43. noclipbtn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  44. noclipbtn.Position = UDim2.new(0.018324608, 0, 0.248847917, 0)
  45. noclipbtn.Size = UDim2.new(0, 105, 0, 36)
  46. noclipbtn.Font = Enum.Font.SourceSans
  47. noclipbtn.Text = "NoClip [Off]"
  48. noclipbtn.TextColor3 = Color3.fromRGB(0, 0, 0)
  49. noclipbtn.TextScaled = true
  50. noclipbtn.TextSize = 14.000
  51. noclipbtn.TextWrapped = true
  52.  
  53. noclip2btn.Name = "noclip2btn"
  54. noclip2btn.Parent = MainFrame
  55. noclip2btn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  56. noclip2btn.Position = UDim2.new(0.36125654, 0, 0.248847917, 0)
  57. noclip2btn.Size = UDim2.new(0, 105, 0, 36)
  58. noclip2btn.Font = Enum.Font.SourceSans
  59. noclip2btn.Text = "Fly NoClip [Off]"
  60. noclip2btn.TextColor3 = Color3.fromRGB(0, 0, 0)
  61. noclip2btn.TextScaled = true
  62. noclip2btn.TextSize = 14.000
  63. noclip2btn.TextWrapped = true
  64.  
  65. debugcambtn.Name = "debugcambtn"
  66. debugcambtn.Parent = MainFrame
  67. debugcambtn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  68. debugcambtn.Position = UDim2.new(0.70157069, 0, 0.248847917, 0)
  69. debugcambtn.Size = UDim2.new(0, 105, 0, 36)
  70. debugcambtn.Font = Enum.Font.SourceSans
  71. debugcambtn.Text = "Debug Camera [Off]"
  72. debugcambtn.TextColor3 = Color3.fromRGB(0, 0, 0)
  73. debugcambtn.TextScaled = true
  74. debugcambtn.TextSize = 14.000
  75. debugcambtn.TextWrapped = true
  76.  
  77. jumpbtn.Name = "jumpbtn"
  78. jumpbtn.Parent = MainFrame
  79. jumpbtn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  80. jumpbtn.Position = UDim2.new(0.018324608, 0, 0.470046073, 0)
  81. jumpbtn.Size = UDim2.new(0, 105, 0, 36)
  82. jumpbtn.Font = Enum.Font.SourceSans
  83. jumpbtn.Text = "Jump [Off]"
  84. jumpbtn.TextColor3 = Color3.fromRGB(0, 0, 0)
  85. jumpbtn.TextScaled = true
  86. jumpbtn.TextSize = 14.000
  87. jumpbtn.TextWrapped = true
  88.  
  89. speedbox.Name = "speedbox"
  90. speedbox.Parent = MainFrame
  91. speedbox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  92. speedbox.Position = UDim2.new(0.36125654, 0, 0.470046103, 0)
  93. speedbox.Size = UDim2.new(0, 105, 0, 36)
  94. speedbox.Font = Enum.Font.SourceSans
  95. speedbox.PlaceholderText = "Imput Number"
  96. speedbox.Text = "Imput Number"
  97. speedbox.TextColor3 = Color3.fromRGB(0, 0, 0)
  98. speedbox.TextScaled = true
  99. speedbox.TextSize = 14.000
  100. speedbox.TextWrapped = true
  101.  
  102. local p = game.Players.LocalPlayer
  103. local char = game.Workspace:FindFirstChild(p.Name)
  104. local c = workspace.CurrentCamera
  105. local userInput = game:GetService("UserInputService")
  106. local rs = game:GetService("RunService")
  107. local starterPlayer = game:GetService("StarterPlayer")
  108. local speed = 60
  109.  
  110. -- // Noclip \\--
  111.  
  112. noclipbtn.MouseButton1Click:Connect(function()
  113.  
  114. noclip = false
  115. game:GetService('RunService').Stepped:connect(function()
  116. if noclip then
  117. for _, Part in pairs(char:GetDescendants())do
  118. if Part:IsA("Humanoid") then
  119. Part:ChangeState(11)
  120. end
  121. end
  122. end
  123. end)
  124.    
  125.  
  126. if noclipbtn.Text == "NoClip [Off]" then
  127. noclipbtn.Text = "NoClip [On]"
  128. noclip = true      
  129. else
  130. noclipbtn.Text = "NoClip [Off]"
  131. noclip = false         
  132.     end
  133. end)
  134. --// Fly Noclip \\--
  135.  
  136. local selected = false
  137. local lastUpdate = 0
  138.  
  139. function getNextMovement(deltaTime)
  140.     local nextMove = Vector3.new()
  141.     -- Left/Right
  142.     if userInput:IsKeyDown("A") or userInput:IsKeyDown("Left") then
  143.         nextMove = Vector3.new(-1,0,0)
  144.     elseif userInput:IsKeyDown("D") or userInput:IsKeyDown("Right") then
  145.         nextMove = Vector3.new(1,0,0)
  146.     end
  147.     -- Forward/Back
  148.     if userInput:IsKeyDown("W") or userInput:IsKeyDown("Up") then
  149.         nextMove = nextMove + Vector3.new(0,0,-1)
  150.     elseif userInput:IsKeyDown("S") or userInput:IsKeyDown("Down") then
  151.         nextMove = nextMove + Vector3.new(0,0,1)
  152.     end
  153.     -- Up/Down
  154.     if userInput:IsKeyDown("Space") then
  155.         nextMove = nextMove + Vector3.new(0,1,0)
  156.     elseif userInput:IsKeyDown("LeftControl") then
  157.         nextMove = nextMove + Vector3.new(0,-1,0)
  158.     end
  159.     return CFrame.new( nextMove * (speed * deltaTime) )
  160. end
  161.  
  162. function onSelected()
  163.     if selected == false then
  164.     if char then
  165.         local root = char:WaitForChild("HumanoidRootPart")
  166.         currentPos = root.Position
  167.         selected = true        
  168.         noclip2btn.Text = "Fly NoClip [On]"    
  169.         root.Anchored = true
  170.         lastUpdate = tick()
  171.         for _, Part in pairs(char:GetDescendants())do
  172.         if Part:IsA("Humanoid") then
  173.         Part.PlatformStand = true
  174.         end
  175.         end
  176.        
  177.         while selected do
  178.             wait()
  179.             local delta = tick()-lastUpdate
  180.             local look = (c.Focus.p-c.CoordinateFrame.p).unit
  181.             local move = getNextMovement(delta)
  182.             local pos = root.Position
  183.             root.CFrame = CFrame.new(pos,pos+look) * move
  184.             lastUpdate = tick()
  185.         end
  186.         root.Anchored = false
  187.         root.Velocity = Vector3.new()
  188.         for _, Part in pairs(char:GetDescendants())do
  189.         if Part:IsA("Humanoid") then
  190.         Part.PlatformStand = false
  191.     end
  192.     end        
  193.     end
  194.     else
  195.         selected = false
  196.         noclip2btn.Text = "Fly NoClip [Off]"
  197.     end
  198.    
  199. end
  200.  
  201. noclip2btn.MouseButton1Click:Connect(onSelected)
  202.  
  203. local selected2 = false
  204. local lastUpdate2 = 0
  205.  
  206. function DebugCam(p)
  207. if char.Head.Anchored == false then
  208. for _, Part in pairs(char:GetDescendants())do
  209. if Part:IsA("BasePart") or Part:IsA("MeshPart") then
  210. Part.Anchored = true
  211. end
  212. end
  213. else
  214. for _, Part in pairs(char:GetDescendants())do
  215. if Part:IsA("BasePart") or Part:IsA("MeshPart") then
  216. Part.Anchored = false
  217. end
  218. end
  219. end
  220. end
  221.  
  222. function onSelected2()
  223.     if selected2 == false then
  224.     if char then
  225.         local root = char:WaitForChild("HumanoidRootPart")
  226.         currentPos = root.Position
  227.         selected2 = true           
  228.         debugcambtn.Text = "Debug Camera [On]"     
  229.         root.Anchored = true
  230.         lastUpdate = tick()
  231.         DebugCam(p.Name)       
  232.         for _, Part in pairs(char:GetDescendants())do
  233.         if Part:IsA("Humanoid") then
  234.         Part.PlatformStand = true
  235.         end
  236.         end
  237.        
  238.         while selected2 do
  239.             wait()
  240.             local delta = tick()-lastUpdate
  241.             local look = (c.Focus.p-c.CoordinateFrame.p).unit
  242.             local move = getNextMovement(delta)
  243.             local pos = root.Position
  244.             root.CFrame = CFrame.new(pos,pos+look) * move
  245.             lastUpdate = tick()
  246.         end
  247.         root.Anchored = false
  248.         root.Velocity = Vector3.new()
  249.         for _, Part in pairs(char:GetDescendants())do
  250.         if Part:IsA("Humanoid") then
  251.         Part.PlatformStand = false
  252.     end
  253.     end        
  254.     end
  255.     else
  256.         DebugCam(p.Name)
  257.         selected2 = false
  258.         debugcambtn.Text = "Debug Camera [Off]"
  259.     end
  260.    
  261. end
  262.  
  263. debugcambtn.MouseButton1Click:Connect(onSelected2)
  264.  
  265. --// Noclip / Debug Cam Speed \\--
  266.  
  267. speedbox.FocusLost:Connect(function()
  268. speed = speedbox.Text
  269. end)
  270.  
  271. --// Allow Jumping \\--
  272.  
  273.  
  274.  
  275. local CanJump = false
  276.  
  277. jumpbtn.MouseButton1Click:Connect(function()   
  278.     CanJump = not CanJump  
  279.     if CanJump == true then
  280.         char.Humanoid.JumpPower = 50
  281.         jumpbtn.Text = "Jump [On]" 
  282.     else
  283.         jumpbtn.Text = "Jump [Off]"        
  284.     end
  285. end)
  286.  
  287.  
  288. userInput.InputBegan:Connect(function(input, processed)
  289. if processed then return end  
  290.     if input.KeyCode == Enum.KeyCode.Space then
  291.         if CanJump then    
  292.             if char.Humanoid.FloorMaterial ~= Enum.Material.Air then    
  293.                 char.Humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
  294.             end
  295.         end
  296.     end
  297. end)
Add Comment
Please, Sign In to add comment