Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local FSGui = Instance.new("ScreenGui")
- local MainFrame = Instance.new("Frame")
- local Title = Instance.new("TextLabel")
- local Close = Instance.new("TextButton")
- local Frame = Instance.new("Frame")
- local Farm = Instance.new("TextButton")
- local Farming = Instance.new("TextLabel")
- local FarmLabel = Instance.new("TextLabel")
- local Tier = Instance.new("TextBox")
- local RebirthLabel = Instance.new("TextLabel")
- local RebirthAmount = Instance.new("TextLabel")
- local Rebirth = Instance.new("TextButton")
- local Rebirthing = Instance.new("TextLabel")
- local Minimize = Instance.new("TextButton")
- FSGui.Name = "FSGui"
- FSGui.Parent = game.CoreGui
- MainFrame.Name = "MainFrame"
- MainFrame.Parent = FSGui
- MainFrame.Active = true
- MainFrame.BackgroundColor3 = Color3.new(1, 1, 1)
- MainFrame.Position = UDim2.new(0, 295, 0, 145)
- MainFrame.Selectable = true
- MainFrame.Size = UDim2.new(0, 180, 0, 20)
- MainFrame.Style = Enum.FrameStyle.RobloxRound
- MainFrame.Draggable = true
- Title.Name = "Title"
- Title.Parent = MainFrame
- Title.BackgroundColor3 = Color3.new(1, 1, 1)
- Title.BackgroundTransparency = 1
- Title.Position = UDim2.new(0, 15, 0, -5)
- Title.Size = UDim2.new(0, 135, 0, 15)
- Title.Font = Enum.Font.Gotham
- Title.Text = "Forest Simulator Gui"
- Title.TextColor3 = Color3.new(1, 1, 1)
- Title.TextSize = 14
- Close.Name = "Close"
- Close.Parent = MainFrame
- Close.BackgroundColor3 = Color3.new(0, 0, 0)
- Close.BackgroundTransparency = 1
- Close.BorderColor3 = Color3.new(1, 1, 1)
- Close.Position = UDim2.new(0, 155, 0, -5)
- Close.Size = UDim2.new(0, 15, 0, 15)
- Close.Font = Enum.Font.Gotham
- Close.Text = "X"
- Close.TextColor3 = Color3.new(1, 0, 0)
- Close.TextSize = 13
- Frame.Parent = MainFrame
- Frame.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame.Position = UDim2.new(0, -3, 0, 12)
- Frame.Size = UDim2.new(0, 171, 0, 125)
- Frame.Style = Enum.FrameStyle.RobloxSquare
- Farm.Name = "Farm"
- Farm.Parent = Frame
- Farm.BackgroundColor3 = Color3.new(1, 1, 1)
- Farm.Position = UDim2.new(0, 0, 0, 20)
- Farm.Size = UDim2.new(0, 120, 0, 30)
- Farm.Style = Enum.ButtonStyle.RobloxRoundButton
- Farm.Font = Enum.Font.Gotham
- Farm.Text = "Auto Farm"
- Farm.TextColor3 = Color3.new(0, 0, 0)
- Farm.TextSize = 15
- Farming.Name = "Farming"
- Farming.Parent = Frame
- Farming.BackgroundColor3 = Color3.new(0, 0, 0)
- Farming.BackgroundTransparency = 1
- Farming.BorderColor3 = Color3.new(1, 1, 1)
- Farming.BorderSizePixel = 0
- Farming.Position = UDim2.new(0, 115, 0, 20)
- Farming.Size = UDim2.new(0, 45, 0, 30)
- Farming.Font = Enum.Font.Gotham
- Farming.Text = "OFF"
- Farming.TextColor3 = Color3.new(1, 0, 0)
- Farming.TextSize = 14
- FarmLabel.Name = "FarmLabel"
- FarmLabel.Parent = Frame
- FarmLabel.BackgroundColor3 = Color3.new(0, 0, 0)
- FarmLabel.BackgroundTransparency = 1
- FarmLabel.BorderColor3 = Color3.new(1, 1, 1)
- FarmLabel.BorderSizePixel = 0
- FarmLabel.Position = UDim2.new(0, -5, 0, -5)
- FarmLabel.Size = UDim2.new(0, 130, 0, 25)
- FarmLabel.Font = Enum.Font.Gotham
- FarmLabel.Text = "Farming Tier :"
- FarmLabel.TextColor3 = Color3.new(1, 1, 1)
- FarmLabel.TextSize = 16
- Tier.Name = "Tier"
- Tier.Parent = Frame
- Tier.BackgroundColor3 = Color3.new(0.45098, 0.45098, 0.45098)
- Tier.Position = UDim2.new(0, 120, 0, -2)
- Tier.Size = UDim2.new(0, 30, 0, 20)
- Tier.Font = Enum.Font.Gotham
- Tier.PlaceholderColor3 = Color3.new(0, 0, 0)
- Tier.Text = "12"
- Tier.TextColor3 = Color3.new(0, 0, 0)
- Tier.TextSize = 16
- RebirthLabel.Name = "RebirthLabel"
- RebirthLabel.Parent = Frame
- RebirthLabel.BackgroundColor3 = Color3.new(0, 0, 0)
- RebirthLabel.BackgroundTransparency = 1
- RebirthLabel.BorderColor3 = Color3.new(1, 1, 1)
- RebirthLabel.BorderSizePixel = 0
- RebirthLabel.Position = UDim2.new(0, 0, 0, 55)
- RebirthLabel.Size = UDim2.new(0, 90, 0, 25)
- RebirthLabel.Font = Enum.Font.Gotham
- RebirthLabel.Text = "Rebirths :"
- RebirthLabel.TextColor3 = Color3.new(1, 1, 1)
- RebirthLabel.TextSize = 16
- RebirthAmount.Name = "RebirthAmount"
- RebirthAmount.Parent = Frame
- RebirthAmount.BackgroundColor3 = Color3.new(0, 0, 0)
- RebirthAmount.BackgroundTransparency = 1
- RebirthAmount.BorderColor3 = Color3.new(1, 1, 1)
- RebirthAmount.BorderSizePixel = 0
- RebirthAmount.Position = UDim2.new(0, 85, 0, 55)
- RebirthAmount.Size = UDim2.new(0, 65, 0, 25)
- RebirthAmount.Font = Enum.Font.Gotham
- RebirthAmount.Text = "135/145"
- RebirthAmount.TextColor3 = Color3.new(1, 1, 0)
- RebirthAmount.TextSize = 16
- Rebirth.Name = "Rebirth"
- Rebirth.Parent = Frame
- Rebirth.BackgroundColor3 = Color3.new(1, 1, 1)
- Rebirth.Position = UDim2.new(0, 0, 0, 80)
- Rebirth.Size = UDim2.new(0, 120, 0, 30)
- Rebirth.Style = Enum.ButtonStyle.RobloxRoundButton
- Rebirth.Font = Enum.Font.Gotham
- Rebirth.Text = "Auto Rebirth"
- Rebirth.TextColor3 = Color3.new(0, 0, 0)
- Rebirth.TextSize = 15
- Rebirthing.Name = "Rebirthing"
- Rebirthing.Parent = Frame
- Rebirthing.BackgroundColor3 = Color3.new(0, 0, 0)
- Rebirthing.BackgroundTransparency = 1
- Rebirthing.BorderColor3 = Color3.new(1, 1, 1)
- Rebirthing.BorderSizePixel = 0
- Rebirthing.Position = UDim2.new(0, 115, 0, 80)
- Rebirthing.Size = UDim2.new(0, 45, 0, 30)
- Rebirthing.Font = Enum.Font.Gotham
- Rebirthing.Text = "OFF"
- Rebirthing.TextColor3 = Color3.new(1, 0, 0)
- Rebirthing.TextSize = 15
- Minimize.Name = "Minimize"
- Minimize.Parent = MainFrame
- Minimize.BackgroundColor3 = Color3.new(0, 0, 0)
- Minimize.BackgroundTransparency = 1
- Minimize.BorderColor3 = Color3.new(1, 1, 1)
- Minimize.Position = UDim2.new(0, -5, 0, -5)
- Minimize.Size = UDim2.new(0, 15, 0, 15)
- Minimize.Font = Enum.Font.Gotham
- Minimize.Text = "-"
- Minimize.TextColor3 = Color3.new(1, 0, 0)
- Minimize.TextSize = 22
- local plr = game:GetService("Players").LocalPlayer
- local rebirths = plr.PlayerGui.Rebirth.Background.ExpBar.Health
- local remotes = game:GetService("ReplicatedStorage").Remotes
- local pieces = string.split(rebirths.Text, "/")
- local open = true
- _G.farm = false
- _G.clip = false
- _G.rebirth = false
- RebirthAmount.Text = rebirths.Text
- Close.MouseButton1Click:Connect(function()
- FSGui:Destroy()
- end)
- Minimize.MouseButton1Click:Connect(function()
- if open == true then
- open = false
- Frame.Visible = false
- else if open == false then
- open = true
- Frame.Visible = true
- end
- end
- end)
- Rebirth.MouseButton1Click:Connect(function()
- if _G.rebirth then
- _G.rebirth = false
- Rebirthing.TextColor3 = Color3.new(1, 0, 0)
- Rebirthing.Text = "OFF"
- else if not _G.rebirth then
- _G.rebirth = true
- Rebirthing.TextColor3 = Color3.new(0, 1, 0)
- Rebirthing.Text = "ON"
- end
- end
- end)
- Farm.MouseButton1Click:Connect(function()
- if _G.farm and _G.clip then
- _G.farm = false
- _G.clip = false
- Farming.TextColor3 = Color3.new(1, 0, 0)
- Farming.Text = "OFF"
- else if not _G.farm and not _G.clip then
- _G.farm = true
- _G.clip = true
- Farming.TextColor3 = Color3.new(0, 1, 0)
- Farming.Text = "ON"
- end
- end
- end)
- while wait() do
- if _G.farm then
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Workspace").SellALL.CFrame
- wait(0.1)
- for i,v in pairs(game:GetService("Workspace").DestroyableItems[Tier.Text].Trees:GetChildren()) do
- if v.HitBox then
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.HitBox.CFrame
- repeat
- wait()
- game.Players.LocalPlayer.Character:findFirstChildOfClass("Tool").Remote:FireServer(v.HitBox)
- until v.Health.Value < 0
- end
- end
- end
- end
- while wait() do
- if _G.rebirth then
- if pieces[1] == pieces[2] then
- remotes.Rebirth:FireServer()
- end
- end
- end
- game:GetService('RunService').Stepped:connect(function()
- if _G.clip == true then
- game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Humanoid"):ChangeState(11)
- end
- end)
- RebirthAmount.Text = (rebirths.Value)
- rebirths.Changed:connect(function()
- RebirthAmount.Text = (rebirths.Value)
- end)
- plr.Idled:connect(function()
- game:GetService("VirtualUser"):Button2Down(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
- wait(1)
- game:GetService("VirtualUser"):Button2Up(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
- end)
- if game:GetService("Players").LocalPlayer.PlayerGui.BossEvent.Enabled == true then
- game:GetService("Players").LocalPlayer.PlayerGui.BossEvent.Enabled = false
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement