Advertisement
HappySunChild

the

Sep 4th, 2022 (edited)
1,895
0
Never
2
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.18 KB | Source Code | 1 1
  1. local RuS = game:GetService("RunService")
  2. local UsS = game:GetService("UserInputService")
  3. local TwS = game:GetService("TweenService")
  4. local Players = game:GetService("Players")
  5.  
  6. local Player = Players.LocalPlayer
  7. local Mouse = Player:GetMouse()
  8. local Character = Player.Character
  9. local Humanoid = Character:WaitForChild("Humanoid")
  10. local Camera = workspace.CurrentCamera
  11.  
  12. local espLib = loadstring(game:HttpGet("https://pastebin.com/raw/JJ0dzMRd"))()
  13. local guiLib = loadstring(game:HttpGet("https://pastebin.com/raw/RKi1JLX1"))()
  14.  
  15. local generalWindow = guiLib:CreateWindow("General Exploits", "Dietz nuts", "1",Color3.new(1,1,0.5))
  16.  
  17. local selfTab = generalWindow:Tab("Self")
  18. local flyTab = generalWindow:Tab("Fly")
  19.  
  20. local carpetSection = flyTab:Section("Carpet (can bypass some anti-cheats)",UDim2.fromOffset(5,5),UDim2.new(0.5,-5,0,5))
  21. local flightSection = flyTab:Section("Fly", UDim2.new(0.5,5,0,5), UDim2.new(0.5,-5,0,5))
  22.  
  23. local humanoidSection = selfTab:Section("Humanoid",UDim2.fromOffset(5,5),UDim2.new(0.5,-5,0,5))
  24. local tpSection = selfTab:Section("Teleport",UDim2.new(0.5,5,0,5),UDim2.new(0.5,-5,0,5))
  25.  
  26. print("loaded")
  27.  
  28. if _G.GeneralConnections then
  29.     for i,connection in pairs(_G.GeneralConnections) do
  30.         connection:Disconnect()
  31.     end
  32.  
  33.     _G.GeneralConnections = {}
  34. else
  35.     _G.GeneralConnections = {}
  36. end
  37.  
  38. local function addConnection(connection, callback)
  39.     table.insert(_G.GeneralConnections, connection:Connect(callback))
  40. end
  41.  
  42. local function getMass(model)
  43.     local mass = 0
  44.  
  45.     for i,v in pairs(model:GetDescendants()) do
  46.         if v:IsA("BasePart") then
  47.             mass = mass + v:GetMass()
  48.         end
  49.     end
  50.  
  51.     return mass
  52. end
  53.  
  54. _G.GeneralGuiSettings = {}
  55.  
  56. local settings = _G.GeneralGuiSettings
  57. settings.WalkSpeed = 16
  58. settings.JumpPower = 50
  59. settings.Noclip = false
  60.  
  61. settings.Fly = false
  62. settings.FlySpeed = 10
  63. settings.FlyBV = nil
  64. settings.FlyBG = nil
  65. settings.FlyAG = nil
  66.  
  67. settings.Carpet = false
  68. settings.CarpetVisible = false
  69. settings.CarpetObject = nil
  70. settings.PlayerTeleport = nil
  71.  
  72. humanoidSection:TextBox("Walkspeed","16", function(text)
  73.     settings.WalkSpeed = tonumber(text) or 16
  74. end)
  75.  
  76. humanoidSection:TextBox("JumpPower","50", function(text)
  77.     settings.JumpPower = tonumber(text) or 50
  78. end)
  79.  
  80. humanoidSection:Toggle("Noclip", false, function(on)
  81.     settings.Noclip = on
  82. end)
  83.  
  84. tpSection:TextBox("Player To", "", function(text)
  85.     local player = Players:FindFirstChild(text)
  86.  
  87.     if player then
  88.         settings.PlayerTeleport = player
  89.     else
  90.         for i,v in pairs(Players:GetChildren()) do
  91.             if v.DisplayName == text then
  92.                 settings.PlayerTeleport = v
  93.             end
  94.         end
  95.     end
  96. end)
  97.  
  98. tpSection:Button("Teleport", function()
  99.     local player = settings.PlayerTeleport
  100.  
  101.     if player then
  102.         local target = player.Character
  103.  
  104.         if target and target.Humanoid.Health > 0 then
  105.             Character:PivotTo(target:GetPivot())
  106.         end
  107.     end
  108. end)
  109.  
  110. tpSection:Button("TP Tool", function()
  111.     local tool = Instance.new("Tool")
  112.     tool.Name = "Click to Teleport"
  113.     tool.RequiresHandle = false
  114.     tool.ToolTip = "Click where you want to teleport to!"
  115.  
  116.     tool.Activated:Connect(function()
  117.         if Mouse.Target then
  118.             Character:PivotTo(CFrame.new(Mouse.Hit.p + Vector3.new(0,5,0)))
  119.         end
  120.     end)
  121.  
  122.     tool:GetPropertyChangedSignal("Parent"):Connect(function()
  123.         if tool.Parent == workspace then
  124.             task.wait()
  125.             tool:Destroy()
  126.         end
  127.     end)
  128.  
  129.     tool.Parent = Player.Backpack
  130. end)
  131.  
  132. carpetSection:Toggle("Active", false, function(on)
  133.     settings.Carpet = on
  134.  
  135.     if on then
  136.         local newCarpet = Instance.new("Part")
  137.         newCarpet.Anchored = true
  138.         newCarpet.CanCollide = true
  139.         newCarpet.Size = Vector3.new(5,0.1,5)
  140.         newCarpet.Material = Enum.Material.SmoothPlastic
  141.         newCarpet.BrickColor = BrickColor.Random()
  142.         newCarpet.Parent = workspace
  143.  
  144.         settings.CarpetObject = newCarpet
  145.     else
  146.         if settings.CarpetObject then
  147.             settings.CarpetObject:Destroy()
  148.             settings.CarpetObject = nil
  149.         end
  150.     end
  151. end)
  152.  
  153. carpetSection:Toggle("Visible", false, function(on)
  154.     settings.CarpetVisible = on
  155. end)
  156.  
  157. flightSection:Toggle("Active", false, function(on)
  158.     settings.Fly = on
  159.  
  160.     if on then
  161.         local bg = Instance.new("BodyGyro", Character.HumanoidRootPart)
  162.         bg.P = 9e4
  163.         bg.MaxTorque = Vector3.one * 9e9
  164.        
  165.         local bv = Instance.new("BodyVelocity", Character.HumanoidRootPart)
  166.         bv.Velocity = Vector3.new(0,0,0)
  167.         bv.MaxForce = Vector3.one * 9e9
  168.  
  169.         --local ag = Instance.new("BodyVelocity", Character.HumanoidRootPart)
  170.         --ag.Velocity = Vector3.new(0,workspace.Gravity,0) * getMass(Character)
  171.         --ag.MaxForce = Vector3.one * 9e9
  172.  
  173.         settings.FlyBG = bg
  174.         settings.FlyBV = bv
  175.         --settings.FlyAG = ag
  176.     else
  177.         settings.FlyBG:Destroy()
  178.         settings.FlyBV:Destroy()
  179.         --settings.FlyAG:Destroy()
  180.     end
  181. end)
  182.  
  183. flightSection:TextBox("Fly Speed", false, function(text)
  184.     settings.FlySpeed = tonumber(text) or 10
  185. end)
  186.  
  187. addConnection(RuS.RenderStepped, function()
  188.     Character = Player.Character
  189.     Humanoid = Character.Humanoid
  190.  
  191.     if Character and Humanoid then
  192.         Humanoid.WalkSpeed = settings.WalkSpeed
  193.         Humanoid.JumpPower = settings.JumpPower
  194.  
  195.         if Humanoid.Health > 0 and settings.Carpet then
  196.             local carpet = settings.CarpetObject
  197.             local yChange = 0
  198.  
  199.             yChange = (UsS:IsKeyDown(Enum.KeyCode.Q) and 0.3 or 0) + (UsS:IsKeyDown(Enum.KeyCode.E) and -0.3 or 0)
  200.  
  201.             carpet.Position = Character.HumanoidRootPart.Position - Vector3.new(0,3.05 + yChange,0)
  202.  
  203.             if settings.CarpetVisible then
  204.                 carpet.Transparency = 0.5
  205.             else
  206.                 carpet.Transparency = 1
  207.             end
  208.         end
  209.  
  210.         if settings.Noclip then
  211.             for i,v in pairs(Character:GetDescendants()) do
  212.                 if v:IsA("BasePart") then
  213.                     v.CanCollide = not settings.Noclip
  214.                 end
  215.             end
  216.         end
  217.  
  218.         Humanoid.PlatformStand = settings.Fly
  219.  
  220.         if settings.Fly and Humanoid.Health > 0 then
  221.             local ctrl = {f = UsS:IsKeyDown(Enum.KeyCode.W) and 1 or 0, b = UsS:IsKeyDown(Enum.KeyCode.S) and -1 or 0, l = UsS:IsKeyDown(Enum.KeyCode.A) and -1 or 0, r = UsS:IsKeyDown(Enum.KeyCode.D) and 1 or 0, u = UsS:IsKeyDown(Enum.KeyCode.E) and 1 or 0, d = UsS:IsKeyDown(Enum.KeyCode.Q) and -1 or 0}
  222.             local look = Camera.CFrame.LookVector
  223.             local up = Camera.CFrame.UpVector
  224.             local right = Camera.CFrame.RightVector
  225.  
  226.             local velocity = UsS:GetFocusedTextBox() and Vector3.zero or (look * ((ctrl.f + ctrl.b) * settings.FlySpeed)) + (right * ((ctrl.l + ctrl.r) * settings.FlySpeed)) + (up * ((ctrl.u + ctrl.d) * settings.FlySpeed))
  227.  
  228.             TwS:Create(settings.FlyBG,TweenInfo.new(0.2),{CFrame = Camera.CFrame}):Play()
  229.             TwS:Create(settings.FlyBV,TweenInfo.new(0.2),{Velocity = velocity}):Play()
  230.         end
  231.     end
  232. end)
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement