Advertisement
Upscalefanatic3

Fireflies Tp script Fantastic frontier

Nov 13th, 2018
9,626
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. —- Press Right Ctrl to toggle
  2.  
  3.  
  4.  
  5. local ffarm = false
  6. local root = game.Workspace[game.Players.LocalPlayer.Name].HumanoidRootPart
  7.  
  8. function checkTP()
  9. if not game.Workspace.HOLE:FindFirstChild("HoleTPEntrance") then
  10. repeat
  11. local prevPos = root.CFrame
  12. root.CFrame = CFrame.new(1304,96,-525)
  13. wait()
  14. root.CFrame = prevPos
  15. wait(1)
  16. until game.Workspace.HOLE:FindFirstChild("HoleTPEntrance")
  17. end
  18. end
  19.  
  20. function goto(firefly)
  21. local hole = game.Workspace.HOLE.HoleTPEntrance
  22. if (root.Position - firefly.Position).magnitude < 200 then
  23. else
  24. hole.Size = Vector3.new(1,1,1)
  25. hole.Transparency = 1
  26. hole.CFrame = root.CFrame
  27. repeat hole.Position = root.Position wait() until (hole.Position - root.Position).magnitude < 10
  28. hole.Position = Vector3.new(1318,85,-527)
  29. hole.Size = Vector3.new(14,5,17)
  30. repeat wait() until (root.Position - Vector3.new(430,441,102)).magnitude < 10
  31. local preframe = root.CFrame
  32. for i=1, 5 do
  33. root.Anchored = true
  34. root.CFrame = firefly.CFrame + Vector3.new(0,3,0)
  35. wait(.1)
  36. end
  37. end
  38. wait()
  39. if firefly.Parent then
  40. repeat
  41. if not ffarm then return end
  42. root.Anchored = true
  43. root.CFrame = firefly.CFrame + Vector3.new(0,3,0)
  44. root.Anchored = false
  45. wait()
  46. firefly.CollectEvent:FireServer()
  47. wait(.08)
  48. until firefly.Parent == nil
  49. end
  50. root.Anchored = false
  51. end
  52.  
  53. game:GetService("UserInputService").InputBegan:connect(function(input)
  54. if input.KeyCode == Enum.KeyCode.RightControl then
  55. if ffarm then
  56. ffarm = false
  57. print("FireFly Farm Off")
  58. else if not ffarm then
  59. ffarm = true
  60. print("FireFly Farm On")
  61. checkTP()
  62. while ffarm do
  63. local fly = game.Workspace.Fireflies:FindFirstChild("FireflyServer")
  64. if fly and ffarm then
  65. goto(fly)
  66. end
  67. wait(.1)
  68. end
  69. end
  70. end
  71. end
  72. end)
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement