Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local stoppp = false
- local opgui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local combatfarm = Instance.new("TextButton")
- local swordfarm = Instance.new("TextButton")
- local quit = Instance.new("TextButton")
- local credit = Instance.new("TextLabel")
- local farmstop = Instance.new("TextButton")
- opgui.Name = math.random()
- opgui.Parent = game:GetService("CoreGui")
- Frame.Parent = opgui
- Frame.BackgroundColor3 = Color3.new(0.647059, 0.0313726, 1)
- Frame.BackgroundTransparency = 0.69999998807907
- Frame.Position = UDim2.new(0.182978719, 0, 0.259493679, 0)
- Frame.Size = UDim2.new(0, 596, 0, 380)
- Frame.Active = true
- Frame.Draggable = true
- combatfarm.Name = "combat farm"
- combatfarm.Parent = Frame
- combatfarm.BackgroundColor3 = Color3.new(1, 1, 1)
- combatfarm.Position = UDim2.new(0.557047009, 0, 0.334210515, 0)
- combatfarm.Size = UDim2.new(0, 200, 0, 63)
- combatfarm.Text = "Combat Farm"
- combatfarm.TextColor3 = Color3.new(0, 0, 0)
- combatfarm.TextSize = 20
- swordfarm.Name = "sword farm"
- swordfarm.Parent = Frame
- swordfarm.BackgroundColor3 = Color3.new(1, 1, 1)
- swordfarm.Position = UDim2.new(0.0889261737, 0, 0.334210515, 0)
- swordfarm.Size = UDim2.new(0, 200, 0, 63)
- swordfarm.Text = "Sword Farm"
- swordfarm.TextColor3 = Color3.new(0, 0, 0)
- swordfarm.TextSize = 20
- quit.Name = "quit"
- quit.Parent = Frame
- quit.BackgroundColor3 = Color3.new(1, 1, 1)
- quit.BorderSizePixel = 0
- quit.Position = UDim2.new(0.916107357, 0, 0, 0)
- quit.Size = UDim2.new(0, 50, 0, 49)
- quit.Font = Enum.Font.SourceSans
- quit.Text = "X"
- quit.TextColor3 = Color3.new(0.666667, 0, 0)
- quit.TextScaled = true
- quit.TextSize = 14
- quit.TextWrapped = true
- credit.Name = "credit"
- credit.Parent = Frame
- credit.BackgroundColor3 = Color3.new(1, 1, 1)
- credit.BorderSizePixel = 0
- credit.Size = UDim2.new(0, 546, 0, 49)
- credit.Font = Enum.Font.SourceSans
- credit.Text = "Created by Amnesia @ v3rm"
- credit.TextColor3 = Color3.new(0, 0, 0)
- credit.TextSize = 35
- credit.TextWrapped = true
- farmstop.Name = "farmstop"
- farmstop.Parent = Frame
- farmstop.BackgroundColor3 = Color3.new(1, 1, 1)
- farmstop.Position = UDim2.new(0.332214773, 0, 0.678947389, 0)
- farmstop.Size = UDim2.new(0, 200, 0, 63)
- farmstop.Text = "Stop Farming"
- farmstop.TextColor3 = Color3.new(0, 0, 0)
- farmstop.TextSize = 20
- combatfarm.MouseButton1Click:connect(function()
- for _,v in pairs(game:GetService("Players").LocalPlayer.Character.Head:GetChildren()) do
- if v:IsA("BillboardGui") then
- v:Remove()
- end
- end
- stopp = false
- while wait(0,1) do
- local players = game:GetService("Players"):GetPlayers()
- for i = 1, #players do
- for _,v in pairs(game.Workspace:GetChildren()) do
- if v:IsA("Model") and v:FindFirstChild("Humanoid") then
- if v.Name ~= players[i].Name then
- repeat
- wait(0,1)
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.HumanoidRootPart.CFrame * CFrame.new(0,0,2)
- local A_1 = 3
- local Event = game:GetService("Players").LocalPlayer.Backpack.Combat.COMBAT
- Event:FireServer(A_1)
- if stopp then
- break
- end
- until v.Humanoid.Health == 0
- end
- end
- end
- end
- if stopp then
- break
- end
- end
- end)
- swordfarm.MouseButton1Click:connect(function()
- for _,v in pairs(game:GetService("Players").LocalPlayer.Character.Head:GetChildren()) do
- if v:IsA("BillboardGui") then
- v:Remove()
- end
- end
- stopp = false
- local Event = game:GetService("Players").LocalPlayer.Backpack.Sword.SwordEvents.UnSeath
- Event:FireServer()
- wait(1)
- while wait(0,1) do
- local players = game:GetService("Players"):GetPlayers()
- for i = 1, #players do
- for _,v in pairs(game.Workspace:GetChildren()) do
- if v:IsA("Model") and v:FindFirstChild("Humanoid") then
- if v.Name ~= players[i].Name then
- repeat
- wait(0,1)
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.HumanoidRootPart.CFrame * CFrame.new(0,0,3)
- local A_1 = 3
- local Event = game:GetService("Players").LocalPlayer.Backpack.Sword.Slashes.SwordSlash
- Event:FireServer(A_1)
- if stopp then
- break
- end
- until v.Humanoid.Health == 0
- end
- end
- end
- end
- if stopp then
- break
- end
- end
- end)
- farmstop.MouseButton1Click:connect(function()
- stopp = true
- wait()
- game.Players.LocalPlayer.Character.Humanoid.Health = 0
- end)
- quit.MouseButton1Click:connect(function()
- opgui:Remove()
- end)
Add Comment
Please, Sign In to add comment