Advertisement
Guest User

Idk

a guest
Feb 17th, 2020
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 19.04 KB | None | 0 0
  1.     -- Farewell Infortality.
  2. -- Version: 2.82
  3. -- Instances:
  4. local RPGui = Instance.new("ScreenGui")
  5. local Main = Instance.new("Frame")
  6. local Title = Instance.new("TextLabel")
  7. local SelectRemoveFog = Instance.new("TextButton")
  8. local SelectIDTraveler = Instance.new("TextButton")
  9. local SelectPresents = Instance.new("TextButton")
  10. local SelectTower = Instance.new("TextButton")
  11. local SelectFirefly = Instance.new("TextButton")
  12. local SelectPlant = Instance.new("TextButton")
  13. local SelectFly = Instance.new("TextButton")
  14. local SelectTeleport = Instance.new("TextButton")
  15. --Properties:
  16. RPGui.Name = "RPGui"
  17. RPGui.Parent = game.CoreGui
  18.  
  19. Main.Name = "Main"
  20. Main.Parent = RPGui
  21. Main.BackgroundColor3 = Color3.new(1, 1, 1)
  22. Main.BorderSizePixel = 0
  23. Main.Position = UDim2.new(0.441995353, 0, 0.271347255, 0)
  24. Main.Size = UDim2.new(0, 100, 0, 240)
  25. Main.Active = true
  26. Main.Draggable = true
  27.  
  28. Title.Name = "Title"
  29. Title.Parent = Main
  30. Title.BackgroundColor3 = Color3.new(0, 0, 0)
  31. Title.BorderColor3 = Color3.new(1, 1, 1)
  32. Title.Size = UDim2.new(0, 300, 0, 40)
  33. Title.Font = Enum.Font.Cartoon
  34. Title.Text = "Demo'sFFGUI"
  35. Title.TextColor3 = Color3.new(1, 1, 1)
  36. Title.TextSize = 40
  37. Title.TextWrapped = true
  38.  
  39. SelectRemoveFog.Name = "SelectRemoveFog"
  40. SelectRemoveFog.Parent = Main
  41. SelectRemoveFog.BackgroundColor3 = Color3.new(1, 1, 1)
  42. SelectRemoveFog.BorderColor3 = Color3.new(0, 0, 0)
  43. SelectRemoveFog.Position = UDim2.new(0, 0, 0.166666672, 0)
  44. SelectRemoveFog.Size = UDim2.new(0, 100, 0, 25)
  45. SelectRemoveFog.Font = Enum.Font.SourceSansSemibold
  46. SelectRemoveFog.Text = "Remove Fog"
  47. SelectRemoveFog.TextColor3 = Color3.new(0, 0, 0)
  48. SelectRemoveFog.TextSize = 13
  49. SelectRemoveFog.TextWrapped = true
  50. SelectRemoveFog.MouseButton1Down:connect(function()
  51. local player = game.Players.LocalPlayer
  52. player.PlayerScripts.Fog:Destroy()
  53. player.Character.Fogbox.Ring1:Destroy()
  54. player.Character.Fogbox.Ring2:Destroy()
  55. player.Character.Fogbox.Ring3:Destroy()
  56. end)
  57.  
  58. SelectIDTraveler.Name = "SelectIDTraveler"
  59. SelectIDTraveler.Parent = Main
  60. SelectIDTraveler.BackgroundColor3 = Color3.new(1, 1, 1)
  61. SelectIDTraveler.BorderColor3 = Color3.new(0, 0, 0)
  62. SelectIDTraveler.Position = UDim2.new(0, 0, 0.270833343, 0)
  63. SelectIDTraveler.Size = UDim2.new(0, 100, 0, 25)
  64. SelectIDTraveler.Font = Enum.Font.SourceSansSemibold
  65. SelectIDTraveler.Text = "ID Traveler Tracker"
  66. SelectIDTraveler.TextColor3 = Color3.new(0, 0, 0)
  67. SelectIDTraveler.TextSize = 13
  68. SelectIDTraveler.TextWrapped = true
  69. SelectIDTraveler.MouseButton1Down:connect(function()
  70. Mushroom = workspace.PassiveNPCs["NPC_Giver"].Head
  71. local Beam = Instance.new("Beam")
  72. Beam.Name = "Track"
  73. Beam.Parent = game.Players.LocalPlayer.Character.Head
  74. Beam.Width0 = 0.3
  75. Beam.Width1 = 0.3
  76. local Point1 = Instance.new("Attachment")
  77. local Point2 = Instance.new("Attachment")
  78. Point1.Parent = game.Players.LocalPlayer.Character.Head
  79. Point2.Parent = Mushroom
  80. Beam.Attachment0 = Point1
  81. Beam.Attachment1 = Point2
  82. end)
  83.  
  84. SelectPresents.Name = "SelectPresents"
  85. SelectPresents.Parent = Main
  86. SelectPresents.BackgroundColor3 = Color3.new(1, 1, 1)
  87. SelectPresents.BorderColor3 = Color3.new(1, 1, 1)
  88. SelectPresents.Position = UDim2.new(0, 0, 0.375, 0)
  89. SelectPresents.Size = UDim2.new(0, 100, 0, 25)
  90. SelectPresents.Font = Enum.Font.SourceSansSemibold
  91. SelectPresents.Text = "Present Tracker"
  92. SelectPresents.TextColor3 = Color3.new(0, 0, 0)
  93. SelectPresents.TextSize = 13
  94. SelectPresents.TextWrapped = true
  95. SelectPresents.MouseButton1Down:connect(function()
  96. Mushroom = workspace.Present1.PP
  97. local Beam = Instance.new("Beam")
  98. Beam.Name = "Track"
  99. Beam.Parent = game.Players.LocalPlayer.Character.Head
  100. Beam.Width0 = 0.3
  101. Beam.Width1 = 0.3
  102. local Point1 = Instance.new("Attachment")
  103. local Point2 = Instance.new("Attachment")
  104. Point1.Parent = game.Players.LocalPlayer.Character.Head
  105. Point2.Parent = Mushroom
  106. Beam.Attachment0 = Point1
  107. Beam.Attachment1 = Point2
  108. end)
  109. SelectPresents.MouseButton1Click:connect(function()
  110. Mushroom = workspace.Present2.PP
  111. local Beam = Instance.new("Beam")
  112. Beam.Name = "Track"
  113. Beam.Parent = game.Players.LocalPlayer.Character.Head
  114. Beam.Width0 = 0.3
  115. Beam.Width1 = 0.3
  116. local Point1 = Instance.new("Attachment")
  117. local Point2 = Instance.new("Attachment")
  118. Point1.Parent = game.Players.LocalPlayer.Character.Head
  119. Point2.Parent = Mushroom
  120. Beam.Attachment0 = Point1
  121. Beam.Attachment1 = Point2
  122. end)
  123. SelectPresents.MouseButton1Click:connect(function()
  124. Mushroom = workspace.Present3.PP
  125. local Beam = Instance.new("Beam")
  126. Beam.Name = "Track"
  127. Beam.Parent = game.Players.LocalPlayer.Character.Head
  128. Beam.Width0 = 0.3
  129. Beam.Width1 = 0.3
  130. local Point1 = Instance.new("Attachment")
  131. local Point2 = Instance.new("Attachment")
  132. Point1.Parent = game.Players.LocalPlayer.Character.Head
  133. Point2.Parent = Mushroom
  134. Beam.Attachment0 = Point1
  135. Beam.Attachment1 = Point2
  136. end)
  137. SelectPresents.MouseButton1Click:connect(function()
  138. Mushroom = workspace.Present4.PP
  139. local Beam = Instance.new("Beam")
  140. Beam.Name = "Track"
  141. Beam.Parent = game.Players.LocalPlayer.Character.Head
  142. Beam.Width0 = 0.3
  143. Beam.Width1 = 0.3
  144. local Point1 = Instance.new("Attachment")
  145. local Point2 = Instance.new("Attachment")
  146. Point1.Parent = game.Players.LocalPlayer.Character.Head
  147. Point2.Parent = Mushroom
  148. Beam.Attachment0 = Point1
  149. Beam.Attachment1 = Point2
  150. end)
  151. SelectPresents.MouseButton1Click:connect(function()
  152. Mushroom = workspace.Present5.PP
  153. local Beam = Instance.new("Beam")
  154. Beam.Name = "Track"
  155. Beam.Parent = game.Players.LocalPlayer.Character.Head
  156. Beam.Width0 = 0.3
  157. Beam.Width1 = 0.3
  158. local Point1 = Instance.new("Attachment")
  159. local Point2 = Instance.new("Attachment")
  160. Point1.Parent = game.Players.LocalPlayer.Character.Head
  161. Point2.Parent = Mushroom
  162. Beam.Attachment0 = Point1
  163. Beam.Attachment1 = Point2
  164. end)
  165.  
  166. SelectTower.Name = "SelectTower"
  167. SelectTower.Parent = Main
  168. SelectTower.BackgroundColor3 = Color3.new(1, 1, 1)
  169. SelectTower.BorderColor3 = Color3.new(0, 0, 0)
  170. SelectTower.Position = UDim2.new(0, 0, 0.479166657, 0)
  171. SelectTower.Size = UDim2.new(0, 100, 0, 25)
  172. SelectTower.Font = Enum.Font.SourceSansSemibold
  173. SelectTower.Text = "Tower"
  174. SelectTower.TextColor3 = Color3.new(0, 0, 0)
  175. SelectTower.TextSize = 13
  176. SelectTower.TextWrapped = true
  177. SelectTower.MouseButton1Down:connect(function()
  178. count = 0
  179. local Event = game:GetService("Workspace").DungeonDoorStart.InteractEvent
  180. Event:FireServer()
  181.  
  182. workspace.DungeonTemp.DescendantAdded:Connect(function(added)
  183.     wait()
  184.     if added:IsA('Humanoid') and count < 49 then repeat wait()
  185.         added.Health = 0
  186.         until not added
  187.         elseif added.Name == "Exit" then wait()
  188.             count = count+1
  189.             local Event = game:GetService("Workspace").DungeonTemp.Exit.Portal.InteractEvent
  190.             Event:FireServer()
  191.         if count == 5 or count == 10 or count == 15 or count == 20 or count == 25 or count == 30 or count == 35 or count == 40 or count == 45 then
  192.             wait(10)
  193.             game:GetService('Players').LocalPlayer.Character:MoveTo(Vector3.new(563,258,-44)) wait(1.5) --[[lol tp bypass]]--
  194.             game:GetService('Players').LocalPlayer.Character:MoveTo(Vector3.new(563,258,-88)) wait(0.2)
  195.             local Event = game:GetService("Workspace").DungeonDoorContinue.InteractEvent
  196.             Event:FireServer()
  197.         elseif count == 49 then
  198.         wait(4)
  199.         local Event = game:GetService("Workspace").DungeonTemp.Room.FloorBaseA.TheMarble.InteractEvent
  200.     Event:FireServer()
  201.     wait(15)
  202.         local p = Instance.new("Part",workspace) --[[Boss mr58 can't be insta killed so this platform will help you defeat it, very very recommended you have magic power or a ranged gun with enough bullets]]--
  203.         p.Anchored = true
  204.         p.Size = Vector3.new(95,1,65)
  205.         p.Position = Vector3.new(22,591,8786)
  206.         game:GetService('Players').LocalPlayer.Character:MoveTo(Vector3.new(22,612,8786))
  207.         loadstring(game:HttpGet("https://pastebin.com/raw/cRiVmeSQ", true))();
  208.         end
  209.     end
  210. end)
  211.  
  212. while wait(0.75) do
  213. if count < 49 then
  214.     for i,v in next, workspace.DungeonTemp:GetDescendants() do
  215.         if v:IsA('Model') then
  216.             if v:FindFirstChildOfClass("Humanoid") then
  217.                 if (v:GetModelCFrame().Position - game:GetService('Players').LocalPlayer.Character:GetModelCFrame().Position).Magnitude < 20 then
  218.                     v:MoveTo(Vector3.new(1,1,1))
  219.                     end
  220.                 end
  221.             end
  222.         end
  223.     end
  224. end
  225.  
  226.  
  227. print("~Enjoy,\nThe Fantastic Frontier Towers Auto Farm!")
  228. end)
  229.  
  230. SelectFirefly.Name = "SelectFirefly"
  231. SelectFirefly.Parent = Main
  232. SelectFirefly.BackgroundColor3 = Color3.new(1, 1, 1)
  233. SelectFirefly.BorderColor3 = Color3.new(0, 0, 0)
  234. SelectFirefly.Position = UDim2.new(0, 0, 0.583333313, 0)
  235. SelectFirefly.Size = UDim2.new(0, 100, 0, 25)
  236. SelectFirefly.Font = Enum.Font.SourceSansSemibold
  237. SelectFirefly.Text = "Firefly Farm[RCTRL]"
  238. SelectFirefly.TextColor3 = Color3.new(0, 0, 0)
  239. SelectFirefly.TextSize = 13
  240. SelectFirefly.TextWrapped = true
  241. SelectFirefly.MouseButton1Down:connect(function()
  242. local ffarm = false
  243. local root = game.Workspace[game.Players.LocalPlayer.Name].HumanoidRootPart
  244.  
  245. function checkTP()
  246.     if not game.Workspace.HOLE:FindFirstChild("HoleTPEntrance") then
  247.         repeat
  248.             local prevPos = root.CFrame
  249.             root.CFrame = CFrame.new(1304,96,-525)
  250.             wait()
  251.             root.CFrame = prevPos
  252.             wait(1)
  253.         until game.Workspace.HOLE:FindFirstChild("HoleTPEntrance")
  254.     end
  255. end
  256.  
  257. function goto(firefly)
  258.     local hole = game.Workspace.HOLE.HoleTPEntrance
  259.     if (root.Position - firefly.Position).magnitude < 200 then
  260.     else
  261.     hole.Size = Vector3.new(1,1,1)
  262.     hole.Transparency = 1
  263.     hole.CFrame = root.CFrame
  264.     repeat hole.Position = root.Position wait() until (hole.Position - root.Position).magnitude < 10
  265.     hole.Position = Vector3.new(1318,85,-527)
  266.     hole.Size = Vector3.new(14,5,17)
  267.     repeat wait() until (root.Position - Vector3.new(430,441,102)).magnitude < 10
  268.     local preframe = root.CFrame
  269.     for i=1, 5 do
  270.     root.Anchored = true
  271.     root.CFrame = firefly.CFrame + Vector3.new(0,3,0)
  272.     wait(.1)
  273.     end
  274.     end
  275.     wait()
  276.     if firefly.Parent then
  277.         repeat
  278.         if not ffarm then return end
  279.         root.Anchored = true
  280.         root.CFrame = firefly.CFrame + Vector3.new(0,3,0)
  281.         root.Anchored = false
  282.         wait()
  283.         firefly.CollectEvent:FireServer()
  284.         wait(.08)
  285.         until firefly.Parent == nil
  286.     end
  287.     root.Anchored = false
  288. end
  289.  
  290. game:GetService("UserInputService").InputBegan:connect(function(input)
  291. if input.KeyCode == Enum.KeyCode.RightControl then
  292. if ffarm then
  293.     ffarm = false
  294.     print("FireFly Farm Off")
  295. else if not ffarm then
  296.     ffarm = true
  297.     print("FireFly Farm On")
  298.     checkTP()
  299.     while ffarm do
  300.         local fly = game.Workspace.Fireflies:FindFirstChild("FireflyServer")
  301.         if fly and ffarm then
  302.         goto(fly)
  303.         end
  304.         wait(.1)
  305.     end
  306.     end
  307. end
  308. end
  309. end)
  310. end)
  311.  
  312. SelectPlant.Name = "SelectPlant"
  313. SelectPlant.Parent = Main
  314. SelectPlant.BackgroundColor3 = Color3.new(1, 1, 1)
  315. SelectPlant.BorderColor3 = Color3.new(0, 0, 0)
  316. SelectPlant.Position = UDim2.new(0, 0, 0.6875, 0)
  317. SelectPlant.Size = UDim2.new(0, 100, 0, 25)
  318. SelectPlant.Font = Enum.Font.SourceSansSemibold
  319. SelectPlant.Text = "Plant Farm[LCTRL]"
  320. SelectPlant.TextColor3 = Color3.new(0, 0, 0)
  321. SelectPlant.TextSize = 13
  322. SelectPlant.TextWrapped = true
  323. SelectPlant.MouseButton1Down:connect(function()
  324. local root = game.Workspace[game.Players.LocalPlayer.Name].HumanoidRootPart
  325. local pfarm = false
  326.  
  327. function checkTP()
  328.     if not game.Workspace.HOLE:FindFirstChild("HoleTPEntrance") then
  329.         repeat
  330.             local prevPos = root.CFrame
  331.             root.CFrame = CFrame.new(1304,96,-525)
  332.             wait()
  333.             root.CFrame = prevPos
  334.             wait(1)
  335.         until game.Workspace.HOLE:FindFirstChild("HoleTPEntrance")
  336.     end
  337. end
  338.  
  339. function matchTop(plant)
  340.     local list = {"RisingStarMushroom","TheObjectFromEarth","TravelerPlant","GratefulFrogs","Strangeman'sMushroom","BrainMushroom","FantasticMushroom","IcemMushrooms","NightmareMushrooms","FruitStack","StrangemanShells"}
  341.     local name = string.sub(plant.Parent.Name,9)
  342.     for _,names in pairs(list) do
  343.     if name == names then
  344.     return true
  345.     end
  346.     end
  347. end
  348. function matchLow(plant)
  349.     local list = {"Gorbacabbage","GrugbugMushroom","AbandonedFlower","FifeFlower","LoolFlower","MoonFlower","SunFlower","PlumboFlower","LemonFlower","HungryFlower","StrangemanFlower","Clamstack","SprutleMushroom","TargetMushroom","BoombaMushroom","SnowballMushrooms","Mushtache Mushrooms","ElephantMushroom","AngryBushdwellers"}
  350.     local name = string.sub(plant.Parent.Name,9)
  351.     for _,names in pairs(list) do
  352.     if name == names then
  353.     return true
  354.     end
  355.     end
  356. end
  357.  
  358. function goto(plant)
  359.     local hole = game.Workspace.HOLE.HoleTPEntrance
  360.     local pp = plant:FindFirstChild("PP")
  361.     if not pp then return end
  362.     if (root.Position - pp.Position).magnitude < 200 then
  363.     else
  364.     hole.Size = Vector3.new(1,1,1)
  365.     hole.Transparency = 1
  366.     hole.CFrame = root.CFrame
  367.     repeat hole.Position = root.Position wait() until (hole.Position - root.Position).magnitude < 10
  368.     hole.Position = Vector3.new(1318,85,-527)
  369.     hole.Size = Vector3.new(14,5,17)
  370.     repeat wait() until (root.Position - Vector3.new(430,441,102)).magnitude < 10
  371.     local preframe = root.CFrame
  372.     if not pp then return end
  373.     for i=1, 5 do
  374.     root.Anchored = true
  375.     root.CFrame = pp.CFrame + Vector3.new(0,3,0)
  376.     wait(.1)
  377.     end
  378.     end
  379.     root.Anchored = false
  380.     wait()
  381.     if plant.Parent then
  382.         repeat
  383.         if not pfarm then root.Anchored = false return end
  384.         root.Anchored = true
  385.         root.CFrame = pp.CFrame + Vector3.new(0,3,0)
  386.         root.Anchored = false
  387.         wait()
  388.         plant.InteractEvent:FireServer()
  389.         wait(.08)
  390.         until plant.Parent == nil
  391.     end
  392.     root.Anchored = false
  393. end
  394.  
  395. game:GetService("UserInputService").InputBegan:connect(function(input)
  396. if input.KeyCode == Enum.KeyCode.LeftControl and pfarm  then
  397.     print("Plant Farm Off")
  398.     pfarm = false
  399. else if input.KeyCode == Enum.KeyCode.LeftControl and not pfarm then
  400.     print("Plant Farm On")
  401.     pfarm = true
  402.     checkTP()
  403.     while pfarm do
  404.         for i,plant in pairs(game.Workspace.Spawners:GetDescendants()) do
  405.             if not pfarm then return end
  406.             if plant.Name == "Collectible" and plant.Parent and matchTop(plant) then
  407.                 print("Going to "..string.sub(plant.Parent.Name,9))
  408.                 goto(plant)
  409.                 wait()
  410.             end
  411.         end
  412.         wait(.2)
  413.         for i,plant in pairs(game.Workspace.Spawners:GetDescendants()) do
  414.             if not pfarm then return end
  415.             if plant.Name == "Collectible" and plant.Parent and matchLow(plant) then
  416.                 print("Going to "..string.sub(plant.Parent.Name,9))
  417.                 goto(plant)
  418.                 wait()
  419.                 break
  420.             end
  421.         end
  422.     end
  423. end
  424. end
  425. end)
  426. end)
  427.  
  428. SelectFly.Name = "SelectFly"
  429. SelectFly.Parent = Main
  430. SelectFly.BackgroundColor3 = Color3.new(1, 1, 1)
  431. SelectFly.BorderColor3 = Color3.new(0, 0, 0)
  432. SelectFly.Position = UDim2.new(0, 0, 0.791666687, 0)
  433. SelectFly.Size = UDim2.new(0, 100, 0, 25)
  434. SelectFly.Font = Enum.Font.SourceSansSemibold
  435. SelectFly.Text = "Fly[Z]"
  436. SelectFly.TextColor3 = Color3.new(0, 0, 0)
  437. SelectFly.TextSize = 13
  438. SelectFly.TextWrapped = true
  439. SelectFly.MouseButton1Down:connect(function()
  440. repeat wait()
  441.    until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("Torso") and game.Players.LocalPlayer.Character:findFirstChild("Humanoid")
  442. local mouse = game.Players.LocalPlayer:GetMouse()
  443. repeat wait() until mouse
  444. local plr = game.Players.LocalPlayer
  445. local torso = plr.Character.Torso
  446. local flying = true
  447. local deb = true
  448. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  449. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  450. local maxspeed = 50
  451. local speed = 0
  452.  
  453. function Fly()
  454. local bg = Instance.new("BodyGyro", torso)
  455. bg.P = 9e4
  456. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  457. bg.cframe = torso.CFrame
  458. local bv = Instance.new("BodyVelocity", torso)
  459. bv.velocity = Vector3.new(0,0.1,0)
  460. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  461. repeat wait()
  462. plr.Character.Humanoid.PlatformStand = true
  463. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  464. speed = speed+.5+(speed/maxspeed)
  465. if speed > maxspeed then
  466. speed = maxspeed
  467. end
  468. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  469. speed = speed-1
  470. if speed < 0 then
  471. speed = 0
  472. end
  473. end
  474. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  475. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  476. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  477. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  478. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  479. else
  480. bv.velocity = Vector3.new(0,0.1,0)
  481. end
  482. bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  483. until not flying
  484. ctrl = {f = 0, b = 0, l = 0, r = 0}
  485. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  486. speed = 0
  487. bg:Destroy()
  488. bv:Destroy()
  489. plr.Character.Humanoid.PlatformStand = false
  490. end
  491. mouse.KeyDown:connect(function(key)
  492. if key:lower() == "z" then
  493. if flying then flying = false
  494. else
  495. flying = true
  496. Fly()
  497. end
  498. elseif key:lower() == "w" then
  499. ctrl.f = 1
  500. elseif key:lower() == "s" then
  501. ctrl.b = -1
  502. elseif key:lower() == "a" then
  503. ctrl.l = -1
  504. elseif key:lower() == "d" then
  505. ctrl.r = 1
  506. end
  507. end)
  508. mouse.KeyUp:connect(function(key)
  509. if key:lower() == "w" then
  510. ctrl.f = 0
  511. elseif key:lower() == "s" then
  512. ctrl.b = 0
  513. elseif key:lower() == "a" then
  514. ctrl.l = 0
  515. elseif key:lower() == "d" then
  516. ctrl.r = 0
  517. end
  518. end)
  519. Fly()
  520. end)
  521.  
  522. SelectTeleport.Name = "SelectTeleport"
  523. SelectTeleport.Parent = Main
  524. SelectTeleport.BackgroundColor3 = Color3.new(1, 1, 1)
  525. SelectTeleport.BorderColor3 = Color3.new(0, 0, 0)
  526. SelectTeleport.Position = UDim2.new(0, 0, 0.895833373, 0)
  527. SelectTeleport.Size = UDim2.new(0, 100, 0, 25)
  528. SelectTeleport.Font = Enum.Font.SourceSansSemibold
  529. SelectTeleport.Text = "Teleport[X]"
  530. SelectTeleport.TextColor3 = Color3.new(0, 0, 0)
  531. SelectTeleport.TextSize = 13
  532. SelectTeleport.TextWrapped = true
  533. SelectTeleport.MouseButton1Down:connect(function()
  534. local active = false
  535. local plr = game.Players.LocalPlayer
  536. local root = game.Workspace[plr.Name].HumanoidRootPart
  537.  
  538. game:GetService("UserInputService").InputBegan:connect(function(input)
  539. if input.KeyCode == Enum.KeyCode.X and not active then
  540. active = true
  541. local mouse = plr:GetMouse().hit
  542.  
  543. if not game.Workspace.HOLE:FindFirstChild("HoleTPEntrance") then
  544.     repeat
  545.     local prevPos = root.CFrame
  546.     root.CFrame = CFrame.new(1304,96,-525)
  547.     wait()
  548.     root.CFrame = prevPos
  549.     wait(1)
  550.     until game.Workspace.HOLE:FindFirstChild("HoleTPEntrance")
  551. end
  552.  
  553. if (root.Position - Vector3.new(mouse.X,mouse.Y + 5,mouse.Z)).magnitude < 200 then
  554.     root.CFrame = CFrame.new(mouse.X,mouse.Y + 5,mouse.Z)
  555.     wait(.3)
  556.     active = false
  557. else
  558. local hole = game.Workspace.HOLE.HoleTPEntrance
  559. local oPos = hole.Position
  560. local oSize = hole.Size
  561.  
  562. hole.Size = Vector3.new(1,1,1)
  563. hole.Transparency = 1
  564. hole.CFrame = root.CFrame
  565. repeat hole.Position = root.Position wait() until (hole.Position - root.Position).magnitude < 10
  566. hole.Position = oPos
  567. hole.Size = oSize
  568. repeat wait() until (root.Position - Vector3.new(430,441,102)).magnitude < 10
  569. for i=1, 4 do
  570. root.Anchored = true
  571. root.CFrame = CFrame.new(mouse.X,mouse.Y + 5,mouse.Z)
  572. wait(.1)
  573. end
  574. wait(.1)
  575. root.Anchored = false
  576. active = false
  577. end
  578. end
  579. end)
  580. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement