MaxproGlitcher

Auto Farm pizza

Oct 1st, 2024
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1. local TweenService = game:GetService("TweenService")
  2. local player = game.Players.LocalPlayer
  3. local character = player.Character or player.CharacterAdded:Wait()
  4. local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
  5.  
  6. local destinations = {
  7. CFrame.new(196.75387573242188, 2.9980247020721436, -234.80709838867188),
  8. CFrame.new(127.27082824707031, 2.9980247020721436, -119.6380615234375),
  9. CFrame.new(310.6056213378906, 2.9980247020721436, -232.6556854248047),
  10. CFrame.new(183.8242645263672, 2.9980247020721436, 31.61514663696289),
  11. CFrame.new(289.7371520996094, 2.9980247020721436, 21.79258155822754),
  12. CFrame.new(406.2591552734375, 2.9980247020721436, -219.95846557617188),
  13. CFrame.new(386.2557678222656, 2.9980247020721436, -264.6410827636719),
  14. CFrame.new(221.3898468017578, 2.9980247020721436, -75.41827392578125),
  15. CFrame.new(362.8822937011719, 2.9980247020721436, -80.82730865478516),
  16. CFrame.new(174.37269592285156, 2.9980247020721436, 25.34210777282715),
  17. CFrame.new(117.36202239990234, 2.998026132583618, -100.84730529785156)
  18. }
  19.  
  20. local tweenInfo = TweenInfo.new(2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
  21.  
  22. local function teleportWithTween(destination)
  23. local tween = TweenService:Create(humanoidRootPart, tweenInfo, {CFrame = destination})
  24. tween:Play()
  25. tween.Completed:Wait() -- Attendre que le tween soit terminé avant de passer à la prochaine position
  26. end
  27.  
  28. for _, destination in ipairs(destinations) do
  29. teleportWithTween(destination)
  30. wait(10) -- Attendre 10 secondes entre chaque tween
  31. end
  32.  
Advertisement
Add Comment
Please, Sign In to add comment