Advertisement
Guest User

snowwxD

a guest
Dec 16th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.45 KB | None | 0 0
  1. pls read text and make sure you use true scipt
  2. Auto Farm:
  3. _G.turnedOn = true
  4. _G.autofarm = true
  5. _G.waitTime = 0.5
  6.  
  7. local Player = game.Players.LocalPlayer --get the local player
  8. game:GetService("RunService").RenderStepped:connect(function()
  9. game:GetService("ReplicatedStorage").ThisGame.Calls.collectSnow:FireServer()
  10. end)
  11.  
  12. function collectSnow()
  13. while Player.localData.snowballs.Value < Player.localData.sackStorage.Value do
  14. game.ReplicatedStorage.ThisGame.Calls['snowballController']:FireServer("startRoll")
  15. wait(_G.waitTime)
  16. game.ReplicatedStorage.ThisGame.Calls['snowballControllerFunc']:InvokeServer("stopRoll")
  17. print("Rolling Snow:" .. Player.localData.snowballs.Value .. "/" .. Player.localData.sackStorage.Value)
  18. end
  19. end
  20.  
  21. function addSnowToSnowman()
  22. if Player.localData.snowballs.Value == Player.localData.sackStorage.Value then
  23. game.ReplicatedStorage.ThisGame.Calls['snowballControllerFunc']:InvokeServer("stopRoll")
  24. game.ReplicatedStorage.ThisGame.Calls['snowballController']:FireServer("addToSnowman")
  25. wait(2)
  26. end
  27. end
  28.  
  29. function killSnowMen()
  30. for i, snowman in ipairs(Workspace.minionsHolder:GetChildren()) do
  31. while snowman.hitCount.Value > 0 and (snowman.hitBox.Position - Player.Character.HumanoidRootPart.Position).magnitude < 20 do
  32. game.ReplicatedStorage.ThisGame.Calls['minionHelper']:FireServer("minionHit",snowman)
  33. wait()
  34. end
  35. end
  36. end
  37.  
  38. function pickUpCanes()
  39. for i, cane in ipairs(Workspace.gameCandyCanes:GetChildren()) do
  40. if (cane:FindFirstChild("cane").Position - Player.Character.HumanoidRootPart.Position).magnitude < 20 then
  41. Player.Character.HumanoidRootPart.CFrame = cane:FindFirstChild("cane").CFrame
  42. wait(0.3)
  43. end
  44. end
  45. end
  46.  
  47.  
  48. function Main()
  49. while _G.turnedOn do
  50. if _G.autofarm then
  51. collectSnow()
  52. addSnowToSnowman()
  53. else
  54. killSnowMen()
  55. pickUpCanes()
  56. end
  57. wait()
  58. end
  59. end
  60. print("Loaded")
  61. Main()
  62.  
  63. and Gui:
  64.  
  65. local ScreenGui = Instance.new("ScreenGui")
  66. local TextButton = Instance.new("TextButton")
  67. local Frame = Instance.new("Frame")
  68. local ScrollingFrame = Instance.new("ScrollingFrame")
  69. local autofill = Instance.new("TextButton")
  70. local sell = Instance.new("TextButton")
  71. local tp = Instance.new("TextButton")
  72. local label = Instance.new("TextButton")
  73. local autofillEnabled = false
  74.  
  75. ScreenGui.Parent = game.CoreGui
  76.  
  77. TextButton.Parent = ScreenGui
  78. TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
  79. TextButton.BorderSizePixel = 0
  80. TextButton.Position = UDim2.new(0, 10, 0, 10)
  81. TextButton.Size = UDim2.new(0, 50, 0, 50)
  82. TextButton.Font = Enum.Font.SourceSans
  83. TextButton.Text = "Open"
  84. TextButton.TextColor3 = Color3.new(0, 0, 0)
  85. TextButton.TextSize = 14
  86.  
  87. Frame.Parent = ScreenGui
  88. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  89. Frame.BorderSizePixel = 0
  90. Frame.Position = UDim2.new(0, 68, 0, 10)
  91. Frame.Size = UDim2.new(0, 145, 0, 169)
  92. Frame.Visible = false
  93.  
  94. ScrollingFrame.Parent = Frame
  95. ScrollingFrame.BackgroundColor3 = Color3.new(1, 1, 1)
  96. ScrollingFrame.BorderSizePixel = 0
  97. ScrollingFrame.Position = UDim2.new(0, 2, 0, 2)
  98. ScrollingFrame.Size = UDim2.new(1, -4, 1, -4)
  99. ScrollingFrame.BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
  100. ScrollingFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
  101. ScrollingFrame.ScrollBarThickness = 10
  102. ScrollingFrame.TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
  103.  
  104. autofill.Name = "autofill"
  105. autofill.Parent = ScrollingFrame
  106. autofill.BackgroundColor3 = Color3.new(1, 1, 1)
  107. autofill.BorderSizePixel = 0
  108. autofill.Size = UDim2.new(1, -10, 0, 18)
  109. autofill.Font = Enum.Font.SourceSans
  110. autofill.Text = "AutoFill: false"
  111. autofill.TextColor3 = Color3.new(0, 0, 0)
  112. autofill.TextSize = 14
  113.  
  114. sell.Name = "sell"
  115. sell.Parent = ScrollingFrame
  116. sell.BackgroundColor3 = Color3.new(1, 1, 1)
  117. sell.BorderSizePixel = 0
  118. sell.Position = UDim2.new(0, 0, 0, 20)
  119. sell.Size = UDim2.new(1, -10, 0, 18)
  120. sell.Font = Enum.Font.SourceSans
  121. sell.Text = "Sell everything"
  122. sell.TextColor3 = Color3.new(0, 0, 0)
  123. sell.TextSize = 14
  124.  
  125. tp.Name = "tp"
  126. tp.Parent = ScrollingFrame
  127. tp.BackgroundColor3 = Color3.new(1, 1, 1)
  128. tp.BorderSizePixel = 0
  129. tp.Position = UDim2.new(0, 0, 0, 40)
  130. tp.Size = UDim2.new(1, -10, 0, 18)
  131. tp.Font = Enum.Font.SourceSans
  132. tp.Text = "tp to your base"
  133. tp.TextColor3 = Color3.new(0, 0, 0)
  134. tp.TextSize = 14
  135.  
  136. label.Name = "label"
  137. label.Parent = ScrollingFrame
  138. label.BackgroundColor3 = Color3.new(1, 1, 1)
  139. label.BorderSizePixel = 0
  140. label.Position = UDim2.new(0, 0, 0, 60)
  141. label.Size = UDim2.new(1, -10, 0, 18)
  142. label.Font = Enum.Font.SourceSans
  143. label.Text = "TP To rebirth sign"
  144. label.TextColor3 = Color3.new(0, 0, 0)
  145. label.TextSize = 14
  146.  
  147. TextButton.MouseButton1Down:Connect(function()
  148. if Frame.Visible == true then
  149. Frame.Visible = false
  150. TextButton.Text = "Open"
  151. else
  152. Frame.Visible = true
  153. TextButton.Text = "Close"
  154. end
  155. end)
  156.  
  157. autofill.MouseButton1Down:Connect(function()
  158. if autofillEnabled == true then
  159. autofillEnabled = false
  160. autofill.Text = "AutoFill: false"
  161. else
  162. autofillEnabled = true
  163. autofill.Text = "AutoFill: true"
  164. end
  165. end)
  166.  
  167. label.MouseButton1Down:Connect(function()
  168. local snowmanBases = game.Workspace.snowmanBases:GetChildren()
  169. for i=1,#snowmanBases do
  170. print(snowmanBases[i].player.Value)
  171. if snowmanBases[i].player.Value == game.Players.LocalPlayer then
  172. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(snowmanBases[i].rebirthControl.sign.Position.X-5, snowmanBases[i].rebirthControl.sign.Position.Y, snowmanBases[i].rebirthControl.sign.Position.Z))
  173. end
  174. end
  175. end)
  176.  
  177. tp.MouseButton1Down:Connect(function()
  178. local snowmanBases = game.Workspace.snowmanBases:GetChildren()
  179. for i=1,#snowmanBases do
  180. print(snowmanBases[i].player.Value)
  181. if snowmanBases[i].player.Value == game.Players.LocalPlayer then
  182. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(snowmanBases[i].sign.sign.Position.X, snowmanBases[i].sign.sign.Position.Y-20, snowmanBases[i].sign.sign.Position.Z))
  183. end
  184. end
  185. end)
  186.  
  187. sell.MouseButton1Down:Connect(function()
  188. game.ReplicatedStorage.ThisGame.Calls.snowballControllerFunc:InvokeServer("stopRoll")
  189. game.ReplicatedStorage.ThisGame.Calls.snowballController:FireServer("addToSnowman")
  190. end)
  191.  
  192.  
  193. local shop = Instance.new("TextButton")
  194. shop.Name = "label"
  195. shop.Parent = ScrollingFrame
  196. shop.BackgroundColor3 = Color3.new(1, 1, 1)
  197. shop.BorderSizePixel = 0
  198. shop.Position = UDim2.new(0, 0, 0, 80)
  199. shop.Size = UDim2.new(1, -10, 0, 18)
  200. shop.Font = Enum.Font.SourceSans
  201. shop.Text = "To shop"
  202. shop.TextColor3 = Color3.new(0, 0, 0)
  203. shop.TextSize = 14
  204. shop.MouseButton1Down:Connect(function()
  205. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(1700, 21, 53)
  206. end)
  207. local item = Instance.new("TextButton")
  208. item.Name = "g5445g5454"
  209. item.Parent = ScrollingFrame
  210. item.BackgroundColor3 = Color3.new(1, 1, 1)
  211. item.BorderSizePixel = 0
  212. item.Position = UDim2.new(0, 0, 0, 100)
  213. item.Size = UDim2.new(1, -10, 0, 18)
  214. item.Font = Enum.Font.SourceSans
  215. item.Text = "TP To green candy canes"
  216. item.TextColor3 = Color3.new(0, 0, 0)
  217. item.TextSize = 14
  218. item.MouseButton1Down:Connect(function()
  219. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(2082, 32, -14)
  220. end)
  221.  
  222. -- do not add anything under here
  223. while wait() do
  224. if autofillEnabled == true then
  225. game:GetService("ReplicatedStorage").ThisGame.Calls.collectSnow:FireServer()
  226. end
  227. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement