Advertisement
Guest User

AutoFarmWorks

a guest
Jul 22nd, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.49 KB | None | 0 0
  1. local ScreenGui = Instance.new("ScreenGui")
  2. local Frame = Instance.new("Frame")
  3. local TextLabel = Instance.new("TextLabel")
  4. local start = Instance.new("TextButton")
  5. local TextLabel_2 = Instance.new("TextLabel")
  6. local TextLabel_3 = Instance.new("TextLabel")
  7. local TextLabel_4 = Instance.new("TextLabel")
  8. --Properties:
  9. ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui
  10.  
  11. Frame.Parent = ScreenGui
  12. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  13. Frame.BorderSizePixel = 4
  14. Frame.Position = UDim2.new(0.353340864, 0, 0.373754144, 0)
  15. Frame.Size = UDim2.new(0, 258, 0, 152)
  16. Frame.Active = true
  17. Frame.Draggable = true
  18.  
  19. TextLabel.Parent = Frame
  20. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  21. TextLabel.BorderSizePixel = 3
  22. TextLabel.Size = UDim2.new(0, 258, 0, 44)
  23. TextLabel.Font = Enum.Font.Cartoon
  24. TextLabel.Text = "Y3Np's Gui"
  25. TextLabel.TextColor3 = Color3.new(0, 1, 0)
  26. TextLabel.TextScaled = true
  27. TextLabel.TextSize = 14
  28. TextLabel.TextWrapped = true
  29.  
  30. start.Name = "start"
  31. start.Parent = Frame
  32. start.BackgroundColor3 = Color3.new(1, 1, 1)
  33. start.BorderSizePixel = 3
  34. start.Position = UDim2.new(0.0503875986, 0, 0.381578952, 0)
  35. start.Size = UDim2.new(0, 89, 0, 72)
  36. start.Font = Enum.Font.Highway
  37. start.Text = "Start"
  38. start.TextColor3 = Color3.new(0, 1, 0)
  39. start.TextSize = 30
  40.  
  41. start.MouseButton1Down:connect(function()
  42. game.Players.LocalPlayer.Character.Humanoid.Name = 1
  43.  
  44. local l = game.Players.LocalPlayer.Character["1"]:Clone()
  45.  
  46. l.Parent = game.Players.LocalPlayer.Character
  47. l.Name = "Humanoid"
  48.  
  49. wait(0.1)
  50.  
  51. game.Workspace.CurrentCamera.CameraSubject =
  52. game.Players.LocalPlayer.Character
  53.  
  54. game.Players.LocalPlayer.Character.Animate.Disabled = true
  55.  
  56. wait(0.1)
  57.  
  58. game.Players.LocalPlayer.Character.Animate.Disabled = false
  59.  
  60. game.Players.LocalPlayer.Character.Humanoid.DisplayDistanceType = "None"
  61.  
  62. wait(0,5)
  63. while wait(0,1) do
  64. for _,v in pairs(game.Workspace.Mobs:GetDescendants()) do
  65.  
  66. if v:IsA("Model") and v:FindFirstChild("HumanoidRootPart") then
  67.  
  68. repeat
  69.  
  70. wait(0,1)
  71.  
  72. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.HumanoidRootPart.CFrame * CFrame.new(0,0,3)
  73.  
  74. game:GetService("ReplicatedStorage").RemoteEvents.PunchRemote:FireServer()
  75.  
  76. until v.Humanoid.Health == 0
  77.  
  78. end
  79.  
  80. end
  81.  
  82. end
  83. end)
  84.  
  85. TextLabel_2.Parent = Frame
  86. TextLabel_2.BackgroundColor3 = Color3.new(1, 1, 1)
  87. TextLabel_2.BorderSizePixel = 0
  88. TextLabel_2.Position = UDim2.new(0.430232555, 0, 0.328947365, 0)
  89. TextLabel_2.Size = UDim2.new(0, 147, 0, 40)
  90. TextLabel_2.Font = Enum.Font.SourceSans
  91. TextLabel_2.Text = "Gui By Kiet Pham"
  92. TextLabel_2.TextColor3 = Color3.new(1, 0.666667, 0)
  93. TextLabel_2.TextScaled = true
  94. TextLabel_2.TextSize = 19
  95. TextLabel_2.TextWrapped = true
  96.  
  97. TextLabel_3.Parent = Frame
  98. TextLabel_3.BackgroundColor3 = Color3.new(1, 1, 1)
  99. TextLabel_3.BorderSizePixel = 0
  100. TextLabel_3.Position = UDim2.new(0.430232555, 0, 0.671052635, 0)
  101. TextLabel_3.Size = UDim2.new(0, 147, 0, 43)
  102. TextLabel_3.Font = Enum.Font.SourceSans
  103. TextLabel_3.Text = "Script By Amnesia "
  104. TextLabel_3.TextColor3 = Color3.new(1, 0, 0)
  105. TextLabel_3.TextScaled = true
  106. TextLabel_3.TextSize = 19
  107. TextLabel_3.TextWrapped = true
  108.  
  109. TextLabel_4.Parent = Frame
  110. TextLabel_4.BackgroundColor3 = Color3.new(1, 1, 1)
  111. TextLabel_4.BorderSizePixel = 0
  112. TextLabel_4.Position = UDim2.new(0.430232555, 0, 0.546052635, 0)
  113. TextLabel_4.Size = UDim2.new(0, 147, 0, 23)
  114. TextLabel_4.Font = Enum.Font.SourceSans
  115. TextLabel_4.Text = "-----------"
  116. TextLabel_4.TextColor3 = Color3.new(0, 0, 0)
  117. TextLabel_4.TextSize = 50
  118. TextLabel_4.TextWrapped = true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement