Upscalefanatic3

(Roblox) Thug Quest Stat-Autofarm

Jan 25th, 2020
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local tipo = game.Workspace["Thug Quest LV. 1 - 30"]
  2. local quest = game.Workspace["Thug Quest LV. 1 - 30"].ClickDetector
  3.  
  4. game.Players.LocalPlayer.Character.Humanoid.Health = 0
  5.  
  6. function toTarget(pos, targetPos, targetCFrame)
  7. local tween_s = game:service"TweenService"
  8. local info = TweenInfo.new((targetPos - pos).Magnitude/75, Enum.EasingStyle.Quad)
  9. local tic_k = tick()
  10. local tween, err = pcall(function()
  11. local tween = tween_s:Create(game.Players.LocalPlayer.Character["HumanoidRootPart"], info, {CFrame = targetCFrame})
  12. tween:Play()
  13. end)
  14. if not tween then return err end
  15. end
  16. game.Players.LocalPlayer.CharacterAdded:Connect(function()
  17. game.Players.LocalPlayer.Character:WaitForChild("Humanoid")
  18. wait(3)
  19. if game.Players.LocalPlayer.PlayerGui:FindFirstChild("CoreGUI") then
  20. game.Players.LocalPlayer.PlayerGui.CoreGUI.Events.SummonStand:InvokeServer()
  21. end
  22. while wait()do
  23. pcall(function()
  24. if not game.Players.LocalPlayer.PlayerGui.Quest.Quest:FindFirstChild("Thug Quest") then
  25. repeat
  26. toTarget(game.Players.LocalPlayer.Character.HumanoidRootPart.Position, tipo.HumanoidRootPart.Position, tipo.HumanoidRootPart.CFrame)
  27. fireclickdetector(quest)
  28. until game.Players.LocalPlayer.PlayerGui.Quest.Quest.ThugQuest
  29. end
  30. for i,v in pairs(game.Workspace:GetChildren())do
  31. if v.Name == "SpawnLocation" or v.Name == "Fist" or v.Name == "base" or v.Name == "light center" or v.Name == "fight" or v.Name == "FistBarrage" or v.Name == "Projectile" then
  32. v:Destroy()
  33. end
  34. end
  35.  
  36. for i2,v2 in pairs(game.Workspace:GetChildren())do
  37. if v2.ClassName == "Model" and v2.Name == "Thug" and v2:FindFirstChild("HumanoidRootPart") then
  38. repeat
  39. wait()
  40. game.Players.LocalPlayer.PlayerGui.CoreGUI.Events.Punch:InvokeServer()
  41. game.Players.LocalPlayer.PlayerGui.CoreGUI.Events.Barrage:InvokeServer()
  42. game.Players.LocalPlayer.PlayerGui.CoreGUI.Events.Heavy:InvokeServer()
  43. toTarget(game.Players.LocalPlayer.Character.HumanoidRootPart.Position, v2.HumanoidRootPart.Position, v2.HumanoidRootPart.CFrame)
  44. until v2.Humanoid.Health <= 0
  45. end
  46. end
  47. end)
  48. end
  49. end)
Add Comment
Please, Sign In to add comment