Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local xDD = Instance.new("ScreenGui")
- local Dinamic = Instance.new("Frame")
- local Open = Instance.new("TextButton")
- local main = Instance.new("Frame")
- local autofarm = Instance.new("Frame")
- local xd = Instance.new("Frame")
- local x = Instance.new("TextButton")
- local labelxxl = Instance.new("TextLabel")
- local on = Instance.new("TextButton")
- local off = Instance.new("TextButton")
- local tp = Instance.new("TextButton")
- local speed = Instance.new("TextButton")
- local name = Instance.new("TextBox")
- --Properties:
- xDD.Name = "xDD"
- xDD.Parent = game.CoreGui
- Dinamic.Name = "Dinamic"
- Dinamic.Parent = xDD
- Dinamic.BackgroundColor3 = Color3.new(0.27451, 0.843137, 1)
- Dinamic.BackgroundTransparency = 0.15000000596046
- Dinamic.BorderColor3 = Color3.new(1, 1, 1)
- Dinamic.Position = UDim2.new(0.354927003, 0, 0, 0)
- Dinamic.Size = UDim2.new(0, 87, 0, 31)
- Open.Name = "Open"
- Open.Parent = Dinamic
- Open.BackgroundColor3 = Color3.new(0.27451, 0.843137, 1)
- Open.BackgroundTransparency = 0.15000000596046
- Open.BorderColor3 = Color3.new(1, 1, 1)
- Open.BorderSizePixel = 0
- Open.Position = UDim2.new(0.0866760463, 0, 0, 0)
- Open.Size = UDim2.new(0, 71, 0, 29)
- Open.Font = Enum.Font.Bodoni
- Open.Text = "Open"
- Open.TextColor3 = Color3.new(1, 1, 1)
- Open.TextSize = 17
- main.Name = "main"
- main.Parent = xDD
- main.BackgroundColor3 = Color3.new(0.223529, 0.27451, 1)
- main.BackgroundTransparency = 0.25
- main.BorderSizePixel = 0
- main.Position = UDim2.new(0.242700726, 0, 0.382000059, 0)
- main.Size = UDim2.new(0, 282, 0, 132)
- main.Active = true
- main.Draggable = true
- main.Visible = false
- autofarm.Name = "autofarm"
- autofarm.Parent = main
- autofarm.BackgroundColor3 = Color3.new(0.368627, 0.45098, 1)
- autofarm.BorderSizePixel = 0
- autofarm.Size = UDim2.new(0, 282, 0, 21)
- xd.Name = "xd"
- xd.Parent = main
- xd.BackgroundColor3 = Color3.new(0.368627, 0.45098, 1)
- xd.BorderSizePixel = 0
- xd.Position = UDim2.new(0, 0, 0.515151501, 0)
- xd.Size = UDim2.new(0, 282, 0, 21)
- x.Name = "x"
- x.Parent = main
- x.BackgroundColor3 = Color3.new(1, 0.0588235, 0.0588235)
- x.BackgroundTransparency = 0.30000001192093
- x.BorderSizePixel = 0
- x.Position = UDim2.new(0.911347508, 0, 0, 0)
- x.Size = UDim2.new(0, 25, 0, 21)
- x.Font = Enum.Font.Bodoni
- x.Text = "X"
- x.TextColor3 = Color3.new(0, 0, 0)
- x.TextSize = 14
- labelxxl.Name = "labelxxl"
- labelxxl.Parent = main
- labelxxl.BackgroundColor3 = Color3.new(0.368627, 0.45098, 1)
- labelxxl.BorderSizePixel = 0
- labelxxl.Position = UDim2.new(0.0957446843, 0, 0, 0)
- labelxxl.Size = UDim2.new(0, 227, 0, 21)
- labelxxl.Font = Enum.Font.Bodoni
- labelxxl.Text = "Auto Farm"
- labelxxl.TextColor3 = Color3.new(1, 1, 1)
- labelxxl.TextSize = 16
- on.Name = "on"
- on.Parent = main
- on.BackgroundColor3 = Color3.new(0.396078, 0.658824, 1)
- on.BackgroundTransparency = 0.20000000298023
- on.BorderSizePixel = 0
- on.Position = UDim2.new(0.0957446843, 0, 0.24242425, 0)
- on.Size = UDim2.new(0, 96, 0, 24)
- on.Font = Enum.Font.Bodoni
- on.Text = "On"
- on.TextColor3 = Color3.new(1, 1, 1)
- on.TextSize = 16
- on.TextStrokeColor3 = Color3.new(1, 1, 1)
- off.Name = "off"
- off.Parent = main
- off.BackgroundColor3 = Color3.new(0.396078, 0.658824, 1)
- off.BackgroundTransparency = 0.20000000298023
- off.BorderSizePixel = 0
- off.Position = UDim2.new(0.570922017, 0, 0.24242425, 0)
- off.Size = UDim2.new(0, 96, 0, 24)
- off.Font = Enum.Font.Bodoni
- off.Text = "Off"
- off.TextColor3 = Color3.new(1, 1, 1)
- off.TextSize = 16
- tp.Name = "tp"
- tp.Parent = main
- tp.BackgroundColor3 = Color3.new(0.396078, 0.658824, 1)
- tp.BackgroundTransparency = 0.20000000298023
- tp.BorderSizePixel = 0
- tp.Position = UDim2.new(0.0957446992, 0, 0.75757575, 0)
- tp.Size = UDim2.new(0, 96, 0, 24)
- tp.Font = Enum.Font.Bodoni
- tp.Text = "Teleport"
- tp.TextColor3 = Color3.new(1, 1, 1)
- tp.TextSize = 16
- speed.Name = "speed"
- speed.Parent = main
- speed.BackgroundColor3 = Color3.new(0.396078, 0.658824, 1)
- speed.BackgroundTransparency = 0.20000000298023
- speed.BorderSizePixel = 0
- speed.Position = UDim2.new(0.570922017, 0, 0.75757575, 0)
- speed.Size = UDim2.new(0, 96, 0, 24)
- speed.Font = Enum.Font.Bodoni
- speed.Text = "Coming Soon..."
- speed.TextColor3 = Color3.new(1, 1, 1)
- speed.TextSize = 16
- name.Name = "name"
- name.Parent = main
- name.BackgroundColor3 = Color3.new(0.368627, 0.45098, 1)
- name.BorderColor3 = Color3.new(0.796079, 0.796079, 0.796079)
- name.Position = UDim2.new(0.145390064, 0, 0.515151501, 0)
- name.Size = UDim2.new(0, 200, 0, 21)
- name.Font = Enum.Font.Bodoni
- name.Text = "Name"
- name.TextColor3 = Color3.new(1, 1, 1)
- name.TextSize = 17
- tp.MouseButton1Down:connect(function()
- local d = game.Players.LocalPlayer.Character.HumanoidRootPart
- for i,v in pairs(game.Workspace:GetChildren()) do
- if v.name == name.Text then
- for _, b in pairs(v:GetChildren()) do
- if b.name == "HumanoidRootPart" then
- d.CFrame = b.CFrame
- end
- end
- end
- end
- end)
- on.MouseButton1Down:connect(function()
- _G.range = math.huge
- local lp = game.Players.LocalPlayer
- local rs = game:GetService("RunService").RenderStepped
- local pfs = game:GetService("PathfindingService")
- local closest = math.huge
- local enemy = nil
- function attack(entity)
- if entity then
- if(lp.Character:FindFirstChild("HumanoidRootPart") and enemy:FindFirstChild("HumanoidRootPart")) then
- rs:wait()
- local ehrp = enemy:FindFirstChild("HumanoidRootPart")
- if ehrp ~= nil and (ehrp.Position-lp.Character.HumanoidRootPart.Position).magnitude > 200 then
- local path = pfs:FindPathAsync(lp.Character.HumanoidRootPart.Position, enemy:FindFirstChild("HumanoidRootPart").Position)
- local points = path:GetWaypoints()
- for _,v in pairs(points) do
- rs:wait()
- lp.Character.HumanoidRootPart.CFrame = CFrame.new(v.Position)
- end
- else
- if enemy:FindFirstChild("HumanoidRootPart") ~= nil then
- lp.Character.HumanoidRootPart.CFrame = enemy:FindFirstChild("HumanoidRootPart").CFrame * CFrame.new(0,0,4)
- end
- end
- local key = "\240\159\146\166\240\159\146\148\240\159\141\145\240\159\145\140\240\159\146\166\240\159\146\148\240\159\141\145\240\159\145\140\240\159\146\166\240\159\146\148\240\159\141\145\240\159\145\140"
- local remote = game:GetService("Players").LocalPlayer.Character.Remotes.KeyEvent
- remote:FireServer(key,"Mouse1","Down",CFrame.new(0,0,0))
- local key = "\240\159\146\166\240\159\146\148\240\159\141\145\240\159\145\140\240\159\146\166\240\159\146\148\240\159\141\145\240\159\145\140\240\159\146\166\240\159\146\148\240\159\141\145\240\159\145\140"
- local remote = game:GetService("Players").LocalPlayer.Character.Remotes.KeyEvent
- remote:FireServer(key,"E","Down",CFrame.new(0,0,0))
- local key = "\240\159\146\166\240\159\146\148\240\159\141\145\240\159\145\140\240\159\146\166\240\159\146\148\240\159\141\145\240\159\145\140\240\159\146\166\240\159\146\148\240\159\141\145\240\159\145\140"
- local remote = game:GetService("Players").LocalPlayer.Character.Remotes.KeyEvent
- remote:FireServer(key,"R","Down",CFrame.new(0,0,0))
- local key = "\240\159\146\166\240\159\146\148\240\159\141\145\240\159\145\140\240\159\146\166\240\159\146\148\240\159\141\145\240\159\145\140\240\159\146\166\240\159\146\148\240\159\141\145\240\159\145\140"
- local remote = game:GetService("Players").LocalPlayer.Character.Remotes.KeyEvent
- remote:FireServer(key,"F","Down",CFrame.new(0,0,0))
- local key = "\240\159\146\166\240\159\146\148\240\159\141\145\240\159\145\140\240\159\146\166\240\159\146\148\240\159\141\145\240\159\145\140\240\159\146\166\240\159\146\148\240\159\141\145\240\159\145\140"
- local remote = game:GetService("Players").LocalPlayer.Character.Remotes.KeyEvent
- remote:FireServer(key,"C","Down",CFrame.new(0,0,0))
- end
- end
- end
- _G.farm = true
- while _G.farm do
- for i,v in pairs(game:GetService("Workspace").NPCSpawns:GetChildren()) do
- local npc = v:GetChildren()[1]
- if(npc and npc:FindFirstChild("HumanoidRootPart") and npc:FindFirstChild("Humanoid"))then
- local mag = (npc:FindFirstChild("HumanoidRootPart").Position-lp.Character.HumanoidRootPart.Position).magnitude
- if mag <= _G.range then
- closest = mag
- enemy = npc
- repeat attack(enemy) until not enemy or not enemy:FindFirstChild("HumanoidRootPart")
- end
- end
- end
- end
- end)
- off.MouseButton1Down:connect(function()
- _G.farm = false
- end)
- speed.MouseButton1Down:connect(function()
- down = false
- velocity = Instance.new("BodyVelocity")
- velocity.maxForce = Vector3.new(100000, 0, 100000)
- ---vv Use that to change the speed v
- local speed = 150
- gyro = Instance.new("BodyGyro")
- gyro.maxTorque = Vector3.new(100000, 0, 100000)
- local hum = game.Players.LocalPlayer.Character.Humanoid
- function onButton1Down(mouse)
- down = true
- velocity.Parent = game.Players.LocalPlayer.Character.UpperTorso
- velocity.velocity = (hum.MoveDirection) * speed
- gyro.Parent = game.Players.LocalPlayer.Character.UpperTorso
- while down do
- if not down then break end
- velocity.velocity = (hum.MoveDirection) * speed
- local refpos = gyro.Parent.Position + (gyro.Parent.Position - workspace.CurrentCamera.CoordinateFrame.p).unit * 5
- gyro.cframe = CFrame.new(gyro.Parent.Position, Vector3.new(refpos.x, gyro.Parent.Position.y, refpos.z))
- wait(0.1)
- end
- end
- function onButton1Up(mouse)
- velocity.Parent = nil
- gyro.Parent = nil
- down = false
- end
- --To Change the key in those 2 lines, replace the "q" with your desired key
- function onSelected(mouse)
- mouse.KeyDown:connect(function(k) if k:lower()=="q"then onButton1Down(mouse)end end)
- mouse.KeyUp:connect(function(k) if k:lower()=="q"then onButton1Up(mouse)end end)
- end
- onSelected(game.Players.LocalPlayer:GetMouse())
- end)
- x.MouseButton1Down:connect(function()
- main.Visible = false
- Dinamic.Visible = true
- end)
- Open.MouseButton1Down:connect(function()
- main.Visible = true
- Dinamic.Visible = false
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement