Advertisement
Emptiness_ok

Untitled

Oct 27th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.58 KB | None | 0 0
  1.  
  2.  
  3. local plr = game.Players.LocalPlayer
  4. local Delay = 0.35
  5.  
  6. function Teleport(teleportTo,time)
  7. local TS = game:GetService("TweenService")
  8. local teleportInfo = TweenInfo.new(time,Enum.EasingStyle.Linear,Enum.EasingDirection.In,0,false,0)
  9. local teleportPosition = {
  10. CFrame = CFrame.new(teleportTo)
  11. }
  12.  
  13.  
  14.  
  15. local A = TS:Create(plr.Character.HumanoidRootPart,teleportInfo,teleportPosition)
  16. A:Play()
  17. end
  18.  
  19. print("Saber GUI Loading...")
  20. local library = loadstring(game:HttpGet("https://pastebin.com/raw/7Z6TzFnv", true))()
  21. local afkGui = library:CreateWindow({
  22. text = "AutoFarm"
  23. })
  24. local localplayer = library:CreateWindow({
  25. text = "LocalPlayer"
  26. })
  27. local teleport = library:CreateWindow({
  28. text = "Teleports"
  29. })
  30. local credits = library:CreateWindow({
  31. text = "Credits"
  32. })
  33. afkGui:AddToggle("AutoFarm Candy", function(state)
  34. local waitValue5 = .2
  35. if state then
  36. local candysValue = tostring(plr.PlayerGui.Gui.Home.Candy.Amount.Text)
  37. local lastPos = plr.Character.HumanoidRootPart.Position
  38. while wait(waitValue5) do
  39. if game.Workspace:FindFirstChild(plr.Name) then
  40. if game.Workspace[plr.Name]:FindFirstChild("HumanoidRootPart") then
  41. if not game.Workspace:FindFirstChild(plr.Name) then
  42. wait(2)
  43. if not plr.PlayerGui:FindFirstChild("Gui") then
  44. Delay = Delay + 0.10
  45. end
  46. repeat wait(0.1) until plr.PlayerGui:FindFirstChild("Gui")
  47. end
  48. if plr.PlayerGui:FindFirstChild("Gui") then
  49. if tonumber(plr.PlayerGui.Gui.Home.Candy.Amount.Text) == candysValue + 3 then
  50. Teleport(lastPos,0.1)
  51. wait(Delay)
  52. candysValue = tostring(plr.PlayerGui.Gui.Home.Candy.Amount.Text)
  53. end
  54. Teleport(game.Workspace.CandyHolder.Candy.Position,0.1)
  55. end
  56. end
  57. end
  58. end
  59. else
  60. waitValue5 = 100000000000000000000000
  61. end
  62. end)
  63.  
  64. afkGui:AddToggle("AutoFarm Coins", function(state)
  65. if state then
  66. waitValue4 = .1
  67. while wait(waitValue4) do
  68. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.CoinsHolder.Coin.CFrame
  69. end
  70. else
  71. waitValue4 = 100000000000000000000000
  72. end
  73. end)
  74.  
  75. localplayer:AddToggle("High Jump", function(state)
  76. game:GetService("Players").LocalPlayer.Character.Humanoid.JumpPower = (state and 100 or 50)
  77. end)
  78.  
  79. localplayer:AddButton("Destroy gui",function()
  80. game.CoreGui.UILibrary:Destroy()
  81. end)
  82.  
  83. afkGui:AddToggle("AutoFarm Strength", function(state)
  84. if state then
  85. waitValue = .2
  86. while wait(waitValue) do
  87. game.ReplicatedStorage.Events.Clicked:FireServer()
  88. end
  89. else
  90. waitValue = 100000000000000000000
  91. end
  92. end)
  93. afkGui:AddToggle("Auto Sell when Full", function(state)
  94. if state then
  95. waitValue2 = .1
  96. while wait(waitValue2) do
  97. if game.Players.LocalPlayer.PlayerGui.Gui.Submenus.BackpackFull.Visible == true then
  98. lastCF = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  99. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.Locations.Sell.CFrame
  100. wait(.7)
  101. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = lastCF
  102. end
  103. end
  104. else
  105. waitValue2 = 10000000000000000000
  106. end
  107. end)
  108. afkGui:AddLabel("Click screen when bag full")
  109.  
  110. afkGui:AddToggle("AutoHatch(Pumpkin)", function(state)
  111. if state then
  112. waitValue3 = .1
  113. while wait(waitValue3) do
  114. game.ReplicatedStorage.Events.HatchEggs:InvokeServer(game.ReplicatedStorage.Eggs.Pumpkin, 1)
  115. end
  116. else
  117. waitValue3 = 100000000000000
  118. end
  119. end)
  120. afkGui:AddToggle("AutoHatch(BasicEgg)", function(state)
  121. if state then
  122. waitValue8 = .1
  123. while wait(waitValue8) do
  124. game.ReplicatedStorage.Events.HatchEggs:InvokeServer(game.ReplicatedStorage.Eggs["Basic Egg"], 1)
  125. end
  126. else
  127. waitValue8 = 100000000000000
  128. end
  129. end)
  130. afkGui:AddToggle("AutoHatch(WoodenEgg)", function(state)
  131. if state then
  132. waitValue7 = .1
  133. while wait(waitValue7) do
  134. game.ReplicatedStorage.Events.HatchEggs:InvokeServer(game.ReplicatedStorage.Eggs["Wooden Egg"], 1)
  135. end
  136. else
  137. waitValue7 = 100000000000000
  138. end
  139.  
  140. end)
  141.  
  142. afkGui:AddToggle("AutoHatch(AncientEgg)", function(state)
  143. if state then
  144. waitValue7 = 1
  145. while wait(waitValue7) do
  146. game.ReplicatedStorage.Events.HatchEggs:InvokeServer(game.ReplicatedStorage.Eggs["Ancient"], 1)
  147. end
  148. else
  149. waitValue7 = 100000000000000
  150. end
  151.  
  152. end)
  153.  
  154. afkGui:AddToggle("AutoBuy Swords", function(state)
  155.  
  156. if state then
  157. waitValue7 = .1
  158. while wait(waitValue7) do
  159. game.ReplicatedStorage.Events.BuyAll:FireServer("Swords")
  160. end
  161. else
  162. waitValue7 = 100000000000000
  163. end
  164.  
  165. end)
  166. afkGui:AddToggle("AutoBuy DNA", function(state)
  167.  
  168. if state then
  169. waitValue7 = .1
  170. while wait(waitValue7) do
  171. game.ReplicatedStorage.Events.BuyAll:FireServer("Backpacks")
  172. end
  173. else
  174. waitValue7 = 100000000000000
  175. end
  176.  
  177.  
  178. end)
  179. teleport:AddButton("Teleport To All Players", function()
  180. local players = game.Players:GetChildren()
  181. for i, player in ipairs(players) do
  182. wait(.5)
  183. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players[player.Name].Character.HumanoidRootPart.CFrame
  184. end
  185. end)
  186. teleport:AddButton("Sell", function()
  187. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.Locations.Sell.CFrame
  188. end)
  189. teleport:AddButton("Shop", function()
  190. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.Locations.Shop.CFrame
  191. end)
  192. teleport:AddButton("Spawn", function()
  193. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.Locations.FirstSpawns.FirstSpawn.CFrame
  194. end)
  195. teleport:AddButton("Crown Shop", function()
  196. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.Locations.CrownShop.CFrame
  197. end)
  198. teleport:AddButton("King of The Hill", function()
  199. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.Locations.KingArea.CFrame
  200. end)
  201. teleport:AddButton("Arena", function()
  202. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.Locations.ArenaBase.CFrame
  203. end)
  204. teleport:AddBox("Goto Player:", function(object, focus)
  205. if focus then
  206. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players[object.Text].Character.HumanoidRootPart.CFrame
  207. end
  208. end)
  209. credits:AddLabel("GUI made by wally")
  210. credits:AddLabel("Script made by DeanGo31")
  211. print("Saber GUI loaded")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement