EVVA_OFFICIAL

Mad City Banshee Farm

Apr 10th, 2019
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.62 KB | None | 0 0
  1. local plr = game.Players.LocalPlayer
  2. -- turn oldpos to false if you don't want to teleport back to original position, true if you do.
  3. oldpos = false
  4.  
  5. Status = false
  6. plr.Chatted:Connect(function(msg)
  7. if string.sub(msg, 1, 9) == "/e toggle" then
  8. if Status == false then
  9. position = plr.Character.HumanoidRootPart.Position
  10. X = game.workspace.ObjectSelection.FuelRocket.Part.Position
  11. game.Players.LocalPlayer.Character.HumanoidRootPart.Position = X
  12. Status = true
  13. else
  14. if oldpos == true then
  15. Status = false
  16. plr.Character.HumanoidRootPart.Position = position
  17. else
  18. Status = false
  19. print("not going back")
  20. end
  21. end
  22. while Status do
  23. while Status == true do
  24. workspace.ObjectSelection.TakeFuel.TakeFuel.TakeFuel.Event:FireServer()
  25. workspace.ObjectSelection.FuelRocket.FuelRocket.FuelRocket.Event:FireServer()
  26. X = game.workspace.ObjectSelection.FuelRocket.Part.Position
  27. if (game.workspace.ObjectSelection.FuelRocket.Part.Position - game.Players.LocalPlayer.Character.HumanoidRootPart.Position).Magnitude > 10 then
  28. game.Players.LocalPlayer.Character.HumanoidRootPart.Position = game.Workspace.ObjectSelection.FuelRocket.Part.Position
  29. else
  30. print("good boy")
  31. end
  32. wait(0.1)
  33. end
  34. while Status do
  35. while Status == true do
  36. if game.workspace.ObjectSelection.FuelRocket.Screen.GUI.Fuel.Text == '100%' then
  37. plr.Character.HumanoidRootPart.Position = game.workspace.ObjectSelection.Deagle.Deagle
  38. game.workspace.ObjectSelection.Deagle.Deagle.Deagle.Event:FireServer()
  39. wait(0.5)
  40. plr.Character.HumanoidRootPart.Position = game.workspace.ObjectSelection.LaunchRocket.Part.Position
  41. game.workspace.ObjectSelection.LaunchRocket.NoLever.LaunchRocket.Event:FireServer()
  42. wait(10)
  43. for _,v in pairs(game.workspace.Cluckles:GetChildren()) do
  44. if v.Name == Torso then
  45. ReplicatedStorage.Event:FireServer(
  46. "ShootGun",
  47. plr,
  48. v,
  49. "Deagle",
  50. 28,
  51. 2.2
  52. )
  53. else
  54. print("Not Yet")
  55. end
  56. end
  57. end
  58. end
  59. end
  60. end
  61. end
  62. end)
  63. if oldpos == true then
  64. local tbl_3951E9C0 =
  65. {
  66. ["Delay"] = 5,
  67. ["Text"] = "Loaded. Type /e Toggle To Toggle. Saving Old Position."
  68. }
  69. local tbl_39521BD0 =
  70. {
  71. tbl_3951E9C0
  72. }
  73. local tbl_main =
  74. {
  75. "Dialogue",
  76. tbl_39521BD0
  77. }
  78. game:GetService("ReplicatedStorage").Event:FireServer(unpack(tbl_main))
  79. else
  80. local tbl_3951E9C0 =
  81. {
  82. ["Delay"] = 5,
  83. ["Text"] = "Loaded. Type /e Toggle To Toggle. Not Saving Old Position."
  84. }
  85. local tbl_39521BD0 =
  86. {
  87. tbl_3951E9C0
  88. }
  89. local tbl_main =
  90. {
  91. "Dialogue",
  92. tbl_39521BD0
  93. }
  94. game:GetService("ReplicatedStorage").Event:FireServer(unpack(tbl_main))
  95. end
Advertisement
Add Comment
Please, Sign In to add comment