Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local RuS = game:GetService("RunService")
- local UsS = game:GetService("UserInputService")
- local TwS = game:GetService("TweenService")
- local Players = game:GetService("Players")
- local Player = Players.LocalPlayer
- local Mouse = Player:GetMouse()
- local Character = Player.Character
- local Humanoid = Character:WaitForChild("Humanoid")
- local Camera = workspace.CurrentCamera
- local espLib = loadstring(game:HttpGet("https://pastebin.com/raw/JJ0dzMRd"))()
- local guiLib = loadstring(game:HttpGet("https://pastebin.com/raw/RKi1JLX1"))()
- local generalWindow = guiLib:CreateWindow("General Exploits", "Dietz nuts", "1",Color3.new(1,1,0.5))
- local selfTab = generalWindow:Tab("Self")
- local flyTab = generalWindow:Tab("Fly")
- local carpetSection = flyTab:Section("Carpet (can bypass some anti-cheats)",UDim2.fromOffset(5,5),UDim2.new(0.5,-5,0,5))
- local flightSection = flyTab:Section("Fly", UDim2.new(0.5,5,0,5), UDim2.new(0.5,-5,0,5))
- local humanoidSection = selfTab:Section("Humanoid",UDim2.fromOffset(5,5),UDim2.new(0.5,-5,0,5))
- local tpSection = selfTab:Section("Teleport",UDim2.new(0.5,5,0,5),UDim2.new(0.5,-5,0,5))
- print("loaded")
- if _G.GeneralConnections then
- for i,connection in pairs(_G.GeneralConnections) do
- connection:Disconnect()
- end
- _G.GeneralConnections = {}
- else
- _G.GeneralConnections = {}
- end
- local function addConnection(connection, callback)
- table.insert(_G.GeneralConnections, connection:Connect(callback))
- end
- local function getMass(model)
- local mass = 0
- for i,v in pairs(model:GetDescendants()) do
- if v:IsA("BasePart") then
- mass = mass + v:GetMass()
- end
- end
- return mass
- end
- _G.GeneralGuiSettings = {}
- local settings = _G.GeneralGuiSettings
- settings.WalkSpeed = 16
- settings.JumpPower = 50
- settings.Noclip = false
- settings.Fly = false
- settings.FlySpeed = 10
- settings.FlyBV = nil
- settings.FlyBG = nil
- settings.FlyAG = nil
- settings.Carpet = false
- settings.CarpetVisible = false
- settings.CarpetObject = nil
- settings.PlayerTeleport = nil
- humanoidSection:TextBox("Walkspeed","16", function(text)
- settings.WalkSpeed = tonumber(text) or 16
- end)
- humanoidSection:TextBox("JumpPower","50", function(text)
- settings.JumpPower = tonumber(text) or 50
- end)
- humanoidSection:Toggle("Noclip", false, function(on)
- settings.Noclip = on
- end)
- tpSection:TextBox("Player To", "", function(text)
- local player = Players:FindFirstChild(text)
- if player then
- settings.PlayerTeleport = player
- else
- for i,v in pairs(Players:GetChildren()) do
- if v.DisplayName == text then
- settings.PlayerTeleport = v
- end
- end
- end
- end)
- tpSection:Button("Teleport", function()
- local player = settings.PlayerTeleport
- if player then
- local target = player.Character
- if target and target.Humanoid.Health > 0 then
- Character:PivotTo(target:GetPivot())
- end
- end
- end)
- tpSection:Button("TP Tool", function()
- local tool = Instance.new("Tool")
- tool.Name = "Click to Teleport"
- tool.RequiresHandle = false
- tool.ToolTip = "Click where you want to teleport to!"
- tool.Activated:Connect(function()
- if Mouse.Target then
- Character:PivotTo(CFrame.new(Mouse.Hit.p + Vector3.new(0,5,0)))
- end
- end)
- tool:GetPropertyChangedSignal("Parent"):Connect(function()
- if tool.Parent == workspace then
- task.wait()
- tool:Destroy()
- end
- end)
- tool.Parent = Player.Backpack
- end)
- carpetSection:Toggle("Active", false, function(on)
- settings.Carpet = on
- if on then
- local newCarpet = Instance.new("Part")
- newCarpet.Anchored = true
- newCarpet.CanCollide = true
- newCarpet.Size = Vector3.new(5,0.1,5)
- newCarpet.Material = Enum.Material.SmoothPlastic
- newCarpet.BrickColor = BrickColor.Random()
- newCarpet.Parent = workspace
- settings.CarpetObject = newCarpet
- else
- if settings.CarpetObject then
- settings.CarpetObject:Destroy()
- settings.CarpetObject = nil
- end
- end
- end)
- carpetSection:Toggle("Visible", false, function(on)
- settings.CarpetVisible = on
- end)
- flightSection:Toggle("Active", false, function(on)
- settings.Fly = on
- if on then
- local bg = Instance.new("BodyGyro", Character.HumanoidRootPart)
- bg.P = 9e4
- bg.MaxTorque = Vector3.one * 9e9
- local bv = Instance.new("BodyVelocity", Character.HumanoidRootPart)
- bv.Velocity = Vector3.new(0,0,0)
- bv.MaxForce = Vector3.one * 9e9
- --local ag = Instance.new("BodyVelocity", Character.HumanoidRootPart)
- --ag.Velocity = Vector3.new(0,workspace.Gravity,0) * getMass(Character)
- --ag.MaxForce = Vector3.one * 9e9
- settings.FlyBG = bg
- settings.FlyBV = bv
- --settings.FlyAG = ag
- else
- settings.FlyBG:Destroy()
- settings.FlyBV:Destroy()
- --settings.FlyAG:Destroy()
- end
- end)
- flightSection:TextBox("Fly Speed", false, function(text)
- settings.FlySpeed = tonumber(text) or 10
- end)
- addConnection(RuS.RenderStepped, function()
- Character = Player.Character
- Humanoid = Character.Humanoid
- if Character and Humanoid then
- Humanoid.WalkSpeed = settings.WalkSpeed
- Humanoid.JumpPower = settings.JumpPower
- if Humanoid.Health > 0 and settings.Carpet then
- local carpet = settings.CarpetObject
- local yChange = 0
- yChange = (UsS:IsKeyDown(Enum.KeyCode.Q) and 0.3 or 0) + (UsS:IsKeyDown(Enum.KeyCode.E) and -0.3 or 0)
- carpet.Position = Character.HumanoidRootPart.Position - Vector3.new(0,3.05 + yChange,0)
- if settings.CarpetVisible then
- carpet.Transparency = 0.5
- else
- carpet.Transparency = 1
- end
- end
- if settings.Noclip then
- for i,v in pairs(Character:GetDescendants()) do
- if v:IsA("BasePart") then
- v.CanCollide = not settings.Noclip
- end
- end
- end
- Humanoid.PlatformStand = settings.Fly
- if settings.Fly and Humanoid.Health > 0 then
- 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}
- local look = Camera.CFrame.LookVector
- local up = Camera.CFrame.UpVector
- local right = Camera.CFrame.RightVector
- 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))
- TwS:Create(settings.FlyBG,TweenInfo.new(0.2),{CFrame = Camera.CFrame}):Play()
- TwS:Create(settings.FlyBV,TweenInfo.new(0.2),{Velocity = velocity}):Play()
- end
- end
- end)
Advertisement
Advertisement