Advertisement
BINO2002

Untitled

Sep 16th, 2019
424
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. _G.Farm = true
  2.  
  3. local player = game.Players.LocalPlayer
  4. local level = player.PlayerFolder.Level.Value
  5.  
  6. while wait() do
  7. if _G.Farm then
  8. if level < 10 then
  9. for i,v in pairs(workspace:GetChildren()) do
  10. if v.Name == "TrainingDummy" and v:FindFirstChild("HumanoidRootPart") and v:FindFirstChild("Humanoid") then
  11. repeat wait()
  12. player.Character.HumanoidRootPart.CFrame=CFrame.new(v.HumanoidRootPart.Position+Vector3.new(-1,0,2))
  13. game:GetService("ReplicatedStorage").Remotes.Client.PlayerControl:FireServer("Combat")
  14. until v.Humanoid.Health == 0 or _G.Farm == false
  15. end
  16. end
  17. end
  18. if level > 10 then
  19. if player.PlayerFolder.Quest.Value == "No Quest" then
  20. game.ReplicatedStorage.Remotes.Player.NPCChat:FireServer("Defeat 10 Thugs.", true)
  21. end
  22. if player.PlayerFolder.Quest.Value ~= "No Quest" then
  23. for i,v in pairs(player.Backpack:GetChildren()) do
  24. if v.Name == "Combat" then
  25. repeat wait()
  26. player.Character.Humanoid:EquipTool(v)
  27. until player.Character:FindFirstChild("Combat")
  28. end
  29. end
  30. for i,v in pairs(workspace:GetChildren()) do
  31. if v.Name == "Thug" and v:FindFirstChild("HumanoidRootPart") and v:FindFirstChild("Humanoid") then
  32. repeat wait()
  33. player.Character.HumanoidRootPart.CFrame=CFrame.new(v.HumanoidRootPart.Position+Vector3.new(-1,0,2))
  34. game:GetService("ReplicatedStorage").Remotes.Client.PlayerControl:FireServer("Combat")
  35. until v.Humanoid.Health == 0 or _G.Farm == false or player.PlayerFolder.Quest.Value == "No Quest"
  36. end
  37. end
  38. end
  39. end
  40. end
  41. if _G.Farm == false then
  42. break
  43. end
  44. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement