Advertisement
rotemgamer

Untitled

Jun 5th, 2020
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.96 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3. function noclip()
  4. game:GetService("RunService").Stepped:Connect(
  5. function()
  6. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  7. end
  8. )
  9. end
  10. function Attack()
  11. game.Players.LocalPlayer.Backpack.ServerTraits.Input:FireServer(
  12. {
  13. [1] = "mx"
  14. },
  15. CFrame.new(math.random, math.random, math.random),
  16. InputObject,
  17. false
  18. )
  19. end
  20. -- Instances:
  21.  
  22. local Main = Instance.new("ScreenGui")
  23. local FarmFrame = Instance.new("Frame")
  24. local NPCTextBox = Instance.new("TextBox")
  25. local FarmButton = Instance.new("TextButton")
  26. local Close = Instance.new("TextButton")
  27. local tutorial = Instance.new("TextLabel")
  28.  
  29. --Properties:
  30.  
  31. Main.Name = "Main"
  32. Main.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  33. Main.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  34.  
  35. FarmFrame.Name = "FarmFrame"
  36. FarmFrame.Parent = Main
  37. FarmFrame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  38. FarmFrame.Position = UDim2.new(0.135719612, 0, 0.363095164, 0)
  39. FarmFrame.Size = UDim2.new(0, 285, 0, 200)
  40.  
  41. NPCTextBox.Name = "NPCTextBox"
  42. NPCTextBox.Parent = FarmFrame
  43. NPCTextBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  44. NPCTextBox.Position = UDim2.new(0.147368416, 0, 0.332894742, 0)
  45. NPCTextBox.Size = UDim2.new(0, 200, 0, 50)
  46. NPCTextBox.Font = Enum.Font.SourceSans
  47. NPCTextBox.Text = ""
  48. NPCTextBox.TextColor3 = Color3.fromRGB(0, 0, 0)
  49. NPCTextBox.TextSize = 14.000
  50. NPCTextBox.TextScaled = true
  51. FarmButton.Name = "FarmButton"
  52. FarmButton.Parent = FarmFrame
  53. FarmButton.BackgroundColor3 = Color3.fromRGB(108, 108, 108)
  54. FarmButton.Position = UDim2.new(0.284210503, 0, 0.652631581, 0)
  55. FarmButton.Size = UDim2.new(0, 121, 0, 50)
  56. FarmButton.Font = Enum.Font.Arial
  57. FarmButton.Text = "Start Farming"
  58. FarmButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  59. FarmButton.TextSize = 25.000
  60. FarmButton.TextWrapped = true
  61. FarmButton.MouseButton1Click:Connect(
  62. function()
  63. for i, v in pairs(workspace.Live:GetChildren()) do
  64. local table1 = string.split(v.Name, "Lvl")
  65. _G.Target = NPCTextBox.Text
  66. if string.match(table1[1], _G.Target) then
  67. tweenService, tweenInfo = game:GetService("TweenService"), TweenInfo.new(0.8, Enum.EasingStyle.Linear)
  68. noclip()
  69. repeat
  70. wait(0.7)
  71. tween =
  72. tweenService:Create(
  73. game:GetService("Players")["LocalPlayer"].Character.HumanoidRootPart,
  74. tweenInfo,
  75. {CFrame = CFrame.new(v.HumanoidRootPart.Position + Vector3.new(0, 0, 2))}
  76. )
  77. tween:Play()
  78. workspace.CurrentCamera.CFrame =
  79. CFrame.new(
  80. game.Players.LocalPlayer.Character.HumanoidRootPart.Position,
  81. v.HumanoidRootPart.Position
  82. )
  83. Attack()
  84. until v.Humanoid.Health < 1
  85. end
  86. end
  87. end
  88. )
  89. Close.Name = "Close"
  90. Close.Parent = FarmFrame
  91. Close.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  92. Close.BackgroundTransparency = 1.000
  93. Close.Position = UDim2.new(0.849122822, 0, 0, 0)
  94. Close.Size = UDim2.new(0, 48, 0, 49)
  95. Close.Font = Enum.Font.GothamSemibold
  96. Close.Text = "X"
  97. Close.TextColor3 = Color3.fromRGB(0, 0, 0)
  98. Close.TextSize = 14.000
  99. Close.TextWrapped = true
  100. Close.MouseButton1Click:Connect(
  101. function()
  102. Main:Destroy()
  103. end
  104. )
  105. tutorial.Name = "tutorial"
  106. tutorial.Parent = FarmFrame
  107. tutorial.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  108. tutorial.Position = UDim2.new(0.171929836, 0, 0.0797367841, 0)
  109. tutorial.Size = UDim2.new(0, 184, 0, 50)
  110. tutorial.Font = Enum.Font.SourceSans
  111. tutorial.Text = "Enter A Name Of A Npc Or A Player"
  112. tutorial.TextColor3 = Color3.fromRGB(0, 0, 0)
  113. tutorial.TextScaled = true
  114. tutorial.TextSize = 14.000
  115. tutorial.TextWrapped = true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement