Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Gui to Lua
- -- Version: 3.2
- function noclip()
- game:GetService("RunService").Stepped:Connect(
- function()
- game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
- end
- )
- end
- function Attack()
- game.Players.LocalPlayer.Backpack.ServerTraits.Input:FireServer(
- {
- [1] = "mx"
- },
- CFrame.new(math.random, math.random, math.random),
- InputObject,
- false
- )
- end
- -- Instances:
- local Main = Instance.new("ScreenGui")
- local FarmFrame = Instance.new("Frame")
- local NPCTextBox = Instance.new("TextBox")
- local FarmButton = Instance.new("TextButton")
- local Close = Instance.new("TextButton")
- local tutorial = Instance.new("TextLabel")
- --Properties:
- Main.Name = "Main"
- Main.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- Main.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- FarmFrame.Name = "FarmFrame"
- FarmFrame.Parent = Main
- FarmFrame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- FarmFrame.Position = UDim2.new(0.135719612, 0, 0.363095164, 0)
- FarmFrame.Size = UDim2.new(0, 285, 0, 200)
- NPCTextBox.Name = "NPCTextBox"
- NPCTextBox.Parent = FarmFrame
- NPCTextBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- NPCTextBox.Position = UDim2.new(0.147368416, 0, 0.332894742, 0)
- NPCTextBox.Size = UDim2.new(0, 200, 0, 50)
- NPCTextBox.Font = Enum.Font.SourceSans
- NPCTextBox.Text = ""
- NPCTextBox.TextColor3 = Color3.fromRGB(0, 0, 0)
- NPCTextBox.TextSize = 14.000
- NPCTextBox.TextScaled = true
- FarmButton.Name = "FarmButton"
- FarmButton.Parent = FarmFrame
- FarmButton.BackgroundColor3 = Color3.fromRGB(108, 108, 108)
- FarmButton.Position = UDim2.new(0.284210503, 0, 0.652631581, 0)
- FarmButton.Size = UDim2.new(0, 121, 0, 50)
- FarmButton.Font = Enum.Font.Arial
- FarmButton.Text = "Start Farming"
- FarmButton.TextColor3 = Color3.fromRGB(0, 0, 0)
- FarmButton.TextSize = 25.000
- FarmButton.TextWrapped = true
- FarmButton.MouseButton1Click:Connect(
- function()
- for i, v in pairs(workspace.Live:GetChildren()) do
- local table1 = string.split(v.Name, "Lvl")
- _G.Target = NPCTextBox.Text
- if string.match(table1[1], _G.Target) then
- tweenService, tweenInfo = game:GetService("TweenService"), TweenInfo.new(0.8, Enum.EasingStyle.Linear)
- noclip()
- repeat
- wait(0.7)
- tween =
- tweenService:Create(
- game:GetService("Players")["LocalPlayer"].Character.HumanoidRootPart,
- tweenInfo,
- {CFrame = CFrame.new(v.HumanoidRootPart.Position + Vector3.new(0, 0, 2))}
- )
- tween:Play()
- workspace.CurrentCamera.CFrame =
- CFrame.new(
- game.Players.LocalPlayer.Character.HumanoidRootPart.Position,
- v.HumanoidRootPart.Position
- )
- Attack()
- until v.Humanoid.Health < 1
- end
- end
- end
- )
- Close.Name = "Close"
- Close.Parent = FarmFrame
- Close.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Close.BackgroundTransparency = 1.000
- Close.Position = UDim2.new(0.849122822, 0, 0, 0)
- Close.Size = UDim2.new(0, 48, 0, 49)
- Close.Font = Enum.Font.GothamSemibold
- Close.Text = "X"
- Close.TextColor3 = Color3.fromRGB(0, 0, 0)
- Close.TextSize = 14.000
- Close.TextWrapped = true
- Close.MouseButton1Click:Connect(
- function()
- Main:Destroy()
- end
- )
- tutorial.Name = "tutorial"
- tutorial.Parent = FarmFrame
- tutorial.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- tutorial.Position = UDim2.new(0.171929836, 0, 0.0797367841, 0)
- tutorial.Size = UDim2.new(0, 184, 0, 50)
- tutorial.Font = Enum.Font.SourceSans
- tutorial.Text = "Enter A Name Of A Npc Or A Player"
- tutorial.TextColor3 = Color3.fromRGB(0, 0, 0)
- tutorial.TextScaled = true
- tutorial.TextSize = 14.000
- tutorial.TextWrapped = true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement