Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Gui
- local DBFRAutoFarmAndTeleportGui = Instance.new("ScreenGui")
- local BackgroundFrame = Instance.new("Frame")
- local TitleFrame = Instance.new("Frame")
- local ExploitTitleText = Instance.new("TextLabel")
- local CreditsFrame = Instance.new("Frame")
- local CreditsText = Instance.new("TextLabel")
- local MainFramesList = Instance.new("Frame")
- local MainFrame1 = Instance.new("Frame")
- local ScrollingFrame = Instance.new("ScrollingFrame")
- local UIGridLayout = Instance.new("UIGridLayout")
- local StartButton = Instance.new("TextButton")
- local MainFrame2 = Instance.new("Frame")
- local ScrollingFrame2 = Instance.new("ScrollingFrame")
- local UIGridLayout_2 = Instance.new("UIGridLayout")
- local TeleportButton = Instance.new("TextButton")
- local SelectedText = Instance.new("TextLabel")
- local MainFrame3 = Instance.new("Frame")
- local InfiniteHealthFrame = Instance.new("Frame")
- local InfiniteHealthButton = Instance.new("TextButton")
- local UICorner = Instance.new("UICorner")
- local UICorner_2 = Instance.new("UICorner")
- local Text1 = Instance.new("TextLabel")
- local MainFrame0 = Instance.new("Frame")
- local SideButtons = Instance.new("ScrollingFrame")
- local ListButton1 = Instance.new("TextButton")
- local ListButton2 = Instance.new("TextButton")
- local ListButton3 = Instance.new("TextButton")
- local UIGridLayout_3 = Instance.new("UIGridLayout")
- local ExitButton = Instance.new("TextButton")
- local MinimizeButton = Instance.new("TextButton")
- DBFRAutoFarmAndTeleportGui.Name = "DBFRAutoFarmAndTeleportGui"
- DBFRAutoFarmAndTeleportGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- DBFRAutoFarmAndTeleportGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- BackgroundFrame.Name = "BackgroundFrame"
- BackgroundFrame.Parent = DBFRAutoFarmAndTeleportGui
- BackgroundFrame.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
- BackgroundFrame.BorderSizePixel = 0
- BackgroundFrame.Position = UDim2.new(0.213541672, 0, 0.22632423, 0)
- BackgroundFrame.Size = UDim2.new(0, 549, 0, 355)
- BackgroundFrame.Active = true
- BackgroundFrame.Draggable = true
- TitleFrame.Name = "TitleFrame"
- TitleFrame.Parent = BackgroundFrame
- TitleFrame.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
- TitleFrame.BorderSizePixel = 0
- TitleFrame.Position = UDim2.new(0.000426912564, 0, -0.00205683778, 0)
- TitleFrame.Size = UDim2.new(0, 549, 0, 55)
- ExploitTitleText.Name = "ExploitTitleText"
- ExploitTitleText.Parent = TitleFrame
- ExploitTitleText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ExploitTitleText.BackgroundTransparency = 1.000
- ExploitTitleText.BorderSizePixel = 0
- ExploitTitleText.Size = UDim2.new(0, 440, 0, 55)
- ExploitTitleText.Font = Enum.Font.Arial
- ExploitTitleText.Text = "DBFR Exploit Gui"
- ExploitTitleText.TextColor3 = Color3.fromRGB(255, 255, 255)
- ExploitTitleText.TextScaled = true
- ExploitTitleText.TextSize = 30.000
- ExploitTitleText.TextWrapped = true
- CreditsFrame.Name = "CreditsFrame"
- CreditsFrame.Parent = BackgroundFrame
- CreditsFrame.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
- CreditsFrame.BorderSizePixel = 0
- CreditsFrame.Position = UDim2.new(0.256999999, 0, 0.897183061, 0)
- CreditsFrame.Size = UDim2.new(0, 408, 0, 36)
- CreditsText.Name = "CreditsText"
- CreditsText.Parent = CreditsFrame
- CreditsText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- CreditsText.BackgroundTransparency = 1.000
- CreditsText.BorderSizePixel = 0
- CreditsText.Position = UDim2.new(0.631187618, 0, -0.000804477255, 0)
- CreditsText.Size = UDim2.new(0, 150, 0, 37)
- CreditsText.Font = Enum.Font.Arial
- CreditsText.Text = "By: ImposterSussy111"
- CreditsText.TextColor3 = Color3.fromRGB(255, 255, 255)
- CreditsText.TextSize = 14.000
- CreditsText.TextWrapped = true
- MainFramesList.Name = "MainFramesList"
- MainFramesList.Parent = BackgroundFrame
- MainFramesList.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- MainFramesList.BackgroundTransparency = 1.000
- MainFramesList.Position = UDim2.new(0.255009115, 0, 0.152112678, 0)
- MainFramesList.Size = UDim2.new(0, 408, 0, 264)
- MainFrame1.Name = "MainFrame1"
- MainFrame1.Parent = MainFramesList
- MainFrame1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- MainFrame1.BackgroundTransparency = 1.000
- MainFrame1.BorderSizePixel = 0
- MainFrame1.Position = UDim2.new(-0.000522345304, 0, 0.000597521663, 0)
- MainFrame1.Size = UDim2.new(0, 407, 0, 264)
- MainFrame1.Visible = false
- ScrollingFrame.Parent = MainFrame1
- ScrollingFrame.Active = true
- ScrollingFrame.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
- ScrollingFrame.BorderSizePixel = 0
- ScrollingFrame.Position = UDim2.new(0.233415231, 0, 0.0681818202, 0)
- ScrollingFrame.Size = UDim2.new(0, 220, 0, 136)
- ScrollingFrame.CanvasSize = UDim2.new(0, 0, 10, 0)
- UIGridLayout.Parent = ScrollingFrame
- UIGridLayout.SortOrder = Enum.SortOrder.LayoutOrder
- UIGridLayout.CellSize = UDim2.new(0, 205, 0, 50)
- StartButton.Name = "StartButton"
- StartButton.Parent = MainFrame1
- StartButton.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
- StartButton.Position = UDim2.new(0.257985264, 0, 0.670454562, 0)
- StartButton.Size = UDim2.new(0, 200, 0, 50)
- StartButton.Font = Enum.Font.Arial
- StartButton.Text = "Start"
- StartButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- StartButton.TextSize = 25.000
- MainFrame2.Name = "MainFrame2"
- MainFrame2.Parent = MainFramesList
- MainFrame2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- MainFrame2.BackgroundTransparency = 1.000
- MainFrame2.BorderSizePixel = 0
- MainFrame2.Position = UDim2.new(-0.000522345304, 0, 0.000597521663, 0)
- MainFrame2.Size = UDim2.new(0, 407, 0, 264)
- MainFrame2.Visible = false
- ScrollingFrame2.Name = "ScrollingFrame2"
- ScrollingFrame2.Parent = MainFrame2
- ScrollingFrame2.Active = true
- ScrollingFrame2.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
- ScrollingFrame2.BorderSizePixel = 0
- ScrollingFrame2.Position = UDim2.new(0.233415231, 0, 0.0265151523, 0)
- ScrollingFrame2.Size = UDim2.new(0, 220, 0, 136)
- ScrollingFrame2.CanvasSize = UDim2.new(0, 0, 10, 0)
- UIGridLayout_2.Parent = ScrollingFrame2
- UIGridLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
- UIGridLayout_2.CellSize = UDim2.new(0, 205, 0, 50)
- TeleportButton.Name = "TeleportButton"
- TeleportButton.Parent = MainFrame2
- TeleportButton.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
- TeleportButton.Position = UDim2.new(0.257985264, 0, 0.772727311, 0)
- TeleportButton.Size = UDim2.new(0, 200, 0, 50)
- TeleportButton.Font = Enum.Font.Arial
- TeleportButton.Text = "Teleport"
- TeleportButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- TeleportButton.TextSize = 25.000
- SelectedText.Name = "SelectedText"
- SelectedText.Parent = MainFrame2
- SelectedText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- SelectedText.BackgroundTransparency = 1.000
- SelectedText.Position = UDim2.new(0.257985264, 0, 0.537878811, 0)
- SelectedText.Size = UDim2.new(0, 200, 0, 50)
- SelectedText.Font = Enum.Font.Arial
- SelectedText.LineHeight = 1.100
- SelectedText.Text = "Selected:"
- SelectedText.TextColor3 = Color3.fromRGB(255, 255, 255)
- SelectedText.TextSize = 20.000
- MainFrame3.Name = "MainFrame3"
- MainFrame3.Parent = MainFramesList
- MainFrame3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- MainFrame3.BackgroundTransparency = 1.000
- MainFrame3.BorderSizePixel = 0
- MainFrame3.Position = UDim2.new(-0.000522345304, 0, 0.000597521663, 0)
- MainFrame3.Size = UDim2.new(0, 407, 0, 264)
- MainFrame3.Visible = false
- InfiniteHealthFrame.Name = "InfiniteHealthFrame"
- InfiniteHealthFrame.Parent = MainFrame3
- InfiniteHealthFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
- InfiniteHealthFrame.Position = UDim2.new(0.208257198, 0, 0.132322341, 0)
- InfiniteHealthFrame.Size = UDim2.new(0, 54, 0, 27)
- InfiniteHealthButton.Name = "InfiniteHealthButton"
- InfiniteHealthButton.Parent = InfiniteHealthFrame
- InfiniteHealthButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
- InfiniteHealthButton.Size = UDim2.new(0, 27, 0, 27)
- InfiniteHealthButton.Font = Enum.Font.SourceSans
- InfiniteHealthButton.Text = ""
- InfiniteHealthButton.TextColor3 = Color3.fromRGB(0, 0, 0)
- InfiniteHealthButton.TextSize = 14.000
- UICorner.CornerRadius = UDim.new(8, 0)
- UICorner.Parent = InfiniteHealthButton
- UICorner_2.CornerRadius = UDim.new(8, 0)
- UICorner_2.Parent = InfiniteHealthFrame
- Text1.Name = "Text1"
- Text1.Parent = MainFrame3
- Text1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Text1.BackgroundTransparency = 1.000
- Text1.Position = UDim2.new(0.339066356, 0, 0.0871212184, 0)
- Text1.Size = UDim2.new(0, 137, 0, 50)
- Text1.Font = Enum.Font.Arial
- Text1.Text = "Infinite Health"
- Text1.TextColor3 = Color3.fromRGB(255, 255, 255)
- Text1.TextSize = 20.000
- MainFrame0.Name = "MainFrame0"
- MainFrame0.Parent = MainFramesList
- MainFrame0.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- MainFrame0.Size = UDim2.new(0, 100, 0, 100)
- MainFrame0.Visible = false
- SideButtons.Name = "SideButtons"
- SideButtons.Parent = BackgroundFrame
- SideButtons.Active = true
- SideButtons.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
- SideButtons.BorderSizePixel = 0
- SideButtons.Position = UDim2.new(0, 0, 0.152112678, 0)
- SideButtons.Size = UDim2.new(0, 141, 0, 301)
- SideButtons.CanvasSize = UDim2.new(0, 0, 5, 0)
- ListButton1.Name = "ListButton1"
- ListButton1.Parent = SideButtons
- ListButton1.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
- ListButton1.BorderSizePixel = 0
- ListButton1.Size = UDim2.new(0, 141, 0, 50)
- ListButton1.Font = Enum.Font.Arial
- ListButton1.Text = "Auto Farm"
- ListButton1.TextColor3 = Color3.fromRGB(255, 255, 255)
- ListButton1.TextSize = 14.000
- ListButton2.Name = "ListButton2"
- ListButton2.Parent = SideButtons
- ListButton2.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
- ListButton2.BorderSizePixel = 0
- ListButton2.Position = UDim2.new(0, 0, 0.0338028185, 0)
- ListButton2.Size = UDim2.new(0, 141, 0, 50)
- ListButton2.Font = Enum.Font.Arial
- ListButton2.Text = "Teleport"
- ListButton2.TextColor3 = Color3.fromRGB(255, 255, 255)
- ListButton2.TextSize = 14.000
- ListButton3.Name = "ListButton3"
- ListButton3.Parent = SideButtons
- ListButton3.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
- ListButton3.BorderSizePixel = 0
- ListButton3.Position = UDim2.new(0, 0, 0.0338028185, 0)
- ListButton3.Size = UDim2.new(0, 141, 0, 50)
- ListButton3.Font = Enum.Font.Arial
- ListButton3.Text = "Gravity Chamber Exploits"
- ListButton3.TextColor3 = Color3.fromRGB(255, 255, 255)
- ListButton3.TextSize = 14.000
- ListButton3.TextWrapped = true
- UIGridLayout_3.Parent = SideButtons
- UIGridLayout_3.SortOrder = Enum.SortOrder.LayoutOrder
- UIGridLayout_3.CellSize = UDim2.new(0, 141, 0, 50)
- ExitButton.Name = "ExitButton"
- ExitButton.Parent = BackgroundFrame
- ExitButton.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
- ExitButton.BorderSizePixel = 0
- ExitButton.Position = UDim2.new(0.899817824, 0, 0, 0)
- ExitButton.Size = UDim2.new(0, 54, 0, 54)
- ExitButton.Font = Enum.Font.Arial
- ExitButton.Text = "X"
- ExitButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- ExitButton.TextScaled = true
- ExitButton.TextSize = 14.000
- ExitButton.TextWrapped = true
- MinimizeButton.Name = "MinimizeButton"
- MinimizeButton.Parent = BackgroundFrame
- MinimizeButton.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
- MinimizeButton.BorderSizePixel = 0
- MinimizeButton.Position = UDim2.new(0.801999986, 0, 0, 0)
- MinimizeButton.Size = UDim2.new(0, 54, 0, 54)
- MinimizeButton.Font = Enum.Font.Arial
- MinimizeButton.Text = "-"
- MinimizeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- MinimizeButton.TextScaled = true
- MinimizeButton.TextSize = 100.000
- MinimizeButton.TextWrapped = true
- -- Variables
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local TeleportService = game:GetService("TeleportService")
- local TweenService = game:GetService("TweenService")
- local remotes = ReplicatedStorage.Remotes
- local player = game.Players.LocalPlayer
- local character = player.Character
- local humanoidRootPart = character.HumanoidRootPart
- local humanoid = character.Humanoid
- local plrMaxHealth, plrHealth = humanoid.MaxHealth, humanoid.Health
- local yOffset = 0.0175
- local visible = true
- local hitSpeed = 0
- local hits = 10
- local gameIds = {
- [1] = 5798060869, -- Gravity Chamber
- [2] = 4263492467, -- Other World
- [3] = 298400657, -- Earth
- [4] = 0
- }
- local texts = {
- [1] = "Gravity Chamber",
- [2] = "Other World",
- [3] = "Earth",
- [4] = "Hyperbolic Time Chamber"
- }
- local tpButtons = {}
- local buttons = SideButtons:GetChildren()
- local frames = MainFramesList:GetChildren()
- _G.autoFarm = false
- _G.mobToFarm = ""
- _G.gcInfiniteHealth = false
- _G.gameId = 0
- -- Functions
- function switchButton(bool, button)
- info = TweenInfo.new(
- 0.5,
- Enum.EasingStyle.Sine,
- Enum.EasingDirection.Out,
- 0,
- false,
- 0
- )
- if bool then
- local properties = {
- Position = UDim2.new(0.5,0,0,0),
- BackgroundColor3 = Color3.fromRGB(0,255,0)
- }
- local tween = TweenService:Create(button, info, properties)
- tween:Play()
- else
- local properties = {
- Position = UDim2.new(0,0,0,0),
- BackgroundColor3 = Color3.fromRGB(255,0,0)
- }
- local tween = TweenService:Create(button, info, properties)
- tween:Play()
- end
- end
- function getMobs() -- Returns array of mobs in game
- local list = {}
- for i, mob in pairs(workspace:GetChildren()) do
- if mob:FindFirstChild("Humanoid") and not game.Players:FindFirstChild(mob.Name) then
- table.insert(list,mob.Name)
- end
- end
- return list
- end
- function createButtons() -- Create buttons
- for i = 0, #getMobs()-1 do
- local button = Instance.new("TextButton", ScrollingFrame)
- button.Name = getMobs()[i+1].."Button"
- button.Text = getMobs()[i+1]
- button.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
- button.TextColor3 = Color3.fromRGB(255, 255, 255)
- button.TextScaled = true
- button.Font = Enum.Font.Arial
- end
- end
- function createTpButtons()
- for i = 0, #texts-1 do
- local button = Instance.new("TextButton", ScrollingFrame2)
- button.Name = texts[i+1].."Button"
- button.Text = texts[i+1]
- button.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
- button.TextColor3 = Color3.fromRGB(255, 255, 255)
- button.TextScaled = true
- button.Font = Enum.Font.Arial
- table.insert(tpButtons, button)
- end
- end
- function tpButtonsClicked()
- for i, button in pairs(tpButtons) do
- button.MouseButton1Click:Connect(function()
- _G.gameId = gameIds[i]
- SelectedText.Text = "Selected: "..texts[i]
- end)
- end
- end
- function farm() -- Farm Function
- for _, mob in pairs(workspace:GetChildren()) do
- if mob:FindFirstChild("Humanoid") and mob.Humanoid.Health > 0 then
- if mob.Name == _G.mobToFarm then
- while true do
- if _G.autoFarm == false or mob.Humanoid.Health <= 0 then
- break
- end
- humanoidRootPart.CFrame = mob.HumanoidRootPart.CFrame - mob.HumanoidRootPart.CFrame.LookVector*5
- local args = {
- ["HitTime"] = hitSpeed,
- ["Type"] = "Normal",
- ["HitEffect"] = game.ReplicatedStorage.Resources.OtherEffects.NormalHitEffect2,
- ["VictimCFrame"] = mob.HumanoidRootPart.CFrame,
- ["HurtAnimation"] = game.ReplicatedStorage.Resources.Animations.HurtAnimations.Hurt1,
- ["Velocity"] = Vector3.new(1,1,1),
- ["Sound"] = game.ReplicatedStorage.Resources.Sounds.Combat.NormalPunching,
- ["Damage"] = 1
- }
- remotes.Damage4:InvokeServer(mob,args)
- end
- wait()
- end
- end
- end
- end
- function sideButtonsClicked()
- for i, button in pairs(buttons) do
- if button:IsA("TextButton") then
- button.MouseButton1Down:Connect(function()
- for i,v in pairs(frames) do
- if v:IsA("Frame") then
- v.Visible = false
- end
- end
- frames[i].Visible = true
- end)
- end
- end
- end
- function infiniteHealthButtonClicked()
- _G.gcInfiniteHealth = not _G.gcInfiniteHealth
- switchButton(_G.gcInfiniteHealth, InfiniteHealthButton)
- local plrNewHealth = _G.gcInfiniteHealth and math.huge or plrHealth
- if game.PlaceId == gameIds[1] then
- humanoid.MaxHealth = plrNewHealth
- humanoid.Health = plrNewHealth
- else
- print("only works in gc")
- end
- end
- function exitButtonClicked()
- _G.autoFarm = false
- DBFRAutoFarmAndTeleportGui:Destroy()
- end
- function minimizeButtonClicked()
- visible = not visible
- for _, ui in pairs(DBFRAutoFarmAndTeleportGui:GetDescendants()) do
- if ui ~= BackgroundFrame then
- if not ui:IsA("UICorner") then
- if not ui:IsA("UIGridLayout") then
- ui.Visible = visible
- end
- end
- else
- if visible then
- ui.BackgroundTransparency = 0
- MinimizeButton.Text = "-"
- else
- ui.BackgroundTransparency = 1
- MinimizeButton.Text = "+"
- end
- end
- if ui == ExitButton or ui == MinimizeButton then
- ui.Visible = true
- end
- end
- for _, frame in pairs(frames) do
- frame.Visible = false
- end
- end
- function startButtonClicked()
- _G.autoFarm = not _G.autoFarm
- if _G.autoFarm == false then
- StartButton.Text = "Start"
- else
- StartButton.Text = "Stop"
- end
- end
- function teleportButtonClicked()
- TeleportService:Teleport(_G.gameId, player)
- print("teleporting "..player.Name)
- end
- spawn(function() -- Mob Buttons On Click
- while wait() do
- for _, button in pairs(ScrollingFrame:GetChildren()) do
- if button:IsA("TextButton") then
- button.MouseButton1Down:Connect(function()
- _G.mobToFarm = button.Text
- end)
- end
- end
- end
- end)
- for i = 1, hits do -- Auto Farm
- spawn(function()
- while wait() do
- if _G.autoFarm then
- farm()
- end
- end
- end)
- end
- -- Call Functions
- createButtons()
- createTpButtons()
- tpButtonsClicked()
- sideButtonsClicked()
- StartButton.MouseButton1Down:Connect(startButtonClicked)
- ExitButton.MouseButton1Down:Connect(exitButtonClicked)
- MinimizeButton.MouseButton1Down:Connect(minimizeButtonClicked)
- InfiniteHealthButton.MouseButton1Down:Connect(infiniteHealthButtonClicked)
- TeleportButton.MouseButton1Down:Connect(teleportButtonClicked)
Add Comment
Please, Sign In to add comment