Advertisement
anonmods

sagapiece farm

Mar 11th, 2022
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. -- tween shit
  2.  
  3. _G.target = "Bandit Keith" -- Put NPC Name
  4.  
  5. Speed = 5 -- if it kicks u increase the number
  6.  
  7. TweenService = game:service'TweenService'
  8.  
  9. TweenInfo = TweenInfo.new(Speed)
  10.  
  11. TweenGoal = {}
  12.  
  13. --------------
  14.  
  15. getfenv().plr = game.Players.LocalPlayer
  16.  
  17. rs = game:service'RunService'.RenderStepped
  18.  
  19. t = true
  20.  
  21. while rs:wait() do
  22.  
  23. getfenv().plr.Character.Humanoid:ChangeState(10)
  24.  
  25. for i,v in pairs(workspace.NPCS:GetChildren()) do
  26.  
  27. if string.match(v.Name,_G.target) then
  28.  
  29. if v:FindFirstChild("HumanoidRootPart") then
  30.  
  31. TweenGoal.CFrame = v.HumanoidRootPart.CFrame
  32.  
  33. Tween = TweenService:Create(getfenv().plr.Character.HumanoidRootPart,TweenInfo,TweenGoal)
  34.  
  35. Tween:Play()
  36.  
  37. end
  38.  
  39. end
  40.  
  41. end
  42. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement