jokianeee

snuwman

Dec 30th, 2018
5,483
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.07 KB | None | 0 0
  1. -- Farewell Infortality.
  2. -- Version: 2.82
  3. -- Instances:
  4. local ScreenGui = Instance.new("ScreenGui")
  5. local Frame = Instance.new("Frame")
  6. local BotSnowman = Instance.new("TextButton")
  7. local TextLabel = Instance.new("TextLabel")
  8. local TextBox = Instance.new("TextBox")
  9. local CollectCanes = Instance.new("TextButton")
  10. local SnowmanForcefield = Instance.new("TextButton")
  11. --Properties:
  12. ScreenGui.Parent = game.CoreGui
  13.  
  14. Frame.Parent = ScreenGui
  15. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  16. Frame.BackgroundTransparency = 0.5
  17. Frame.BorderSizePixel = 0
  18. Frame.Position = UDim2.new(0.0372093208, 0, 0.0323159769, 0)
  19. Frame.Size = UDim2.new(0, 210, 0, 88)
  20. Frame.Active = true
  21. Frame.Draggable = true
  22.  
  23. BotSnowman.Name = "BotSnowman"
  24. BotSnowman.Parent = Frame
  25. BotSnowman.BackgroundColor3 = Color3.new(1, 1, 1)
  26. BotSnowman.BackgroundTransparency = 1
  27. BotSnowman.BorderSizePixel = 0
  28. BotSnowman.Position = UDim2.new(-0.00332227442, 0, -0.0128090195, 0)
  29. BotSnowman.Size = UDim2.new(0, 211, 0, 21)
  30. BotSnowman.Font = Enum.Font.SourceSans
  31. BotSnowman.Text = "Bot enabled: false"
  32. BotSnowman.TextColor3 = Color3.new(1, 1, 1)
  33. BotSnowman.TextScaled = true
  34. BotSnowman.TextSize = 14
  35. BotSnowman.TextWrapped = true
  36.  
  37. TextLabel.Parent = Frame
  38. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  39. TextLabel.BackgroundTransparency = 1
  40. TextLabel.BorderSizePixel = 0
  41. TextLabel.Position = UDim2.new(-0.00808414817, 0, 0.189999998, 0)
  42. TextLabel.Size = UDim2.new(0, 107, 0, 18)
  43. TextLabel.Font = Enum.Font.SourceSans
  44. TextLabel.Text = "Delay:"
  45. TextLabel.TextColor3 = Color3.new(0.25098, 0.866667, 0.207843)
  46. TextLabel.TextSize = 14
  47.  
  48. TextBox.Parent = Frame
  49. TextBox.BackgroundColor3 = Color3.new(1, 1, 1)
  50. TextBox.BackgroundTransparency = 1
  51. TextBox.BorderColor3 = Color3.new(0, 0, 0)
  52. TextBox.BorderSizePixel = 2
  53. TextBox.Position = UDim2.new(0.497453004, 0, 0.189999998, 0)
  54. TextBox.Size = UDim2.new(0, 106, 0, 18)
  55. TextBox.Font = Enum.Font.SourceSans
  56. TextBox.Text = "0.5"
  57. TextBox.TextColor3 = Color3.new(1, 1, 1)
  58. TextBox.TextSize = 14
  59.  
  60. CollectCanes.Name = "CollectCanes"
  61. CollectCanes.Parent = Frame
  62. CollectCanes.BackgroundColor3 = Color3.new(1, 1, 1)
  63. CollectCanes.BackgroundTransparency = 1
  64. CollectCanes.BorderColor3 = Color3.new(1, 1, 1)
  65. CollectCanes.Position = UDim2.new(0.153820589, 0, 0.650216877, 0)
  66. CollectCanes.Size = UDim2.new(0, 141, 0, 21)
  67. CollectCanes.Font = Enum.Font.SourceSans
  68. CollectCanes.Text = "Collect Yellow"
  69. CollectCanes.TextColor3 = Color3.new(1, 1, 1)
  70. CollectCanes.TextScaled = true
  71. CollectCanes.TextWrapped = true
  72.  
  73. SnowmanForcefield.Name = "SnowmanForcefield"
  74. SnowmanForcefield.Parent = Frame
  75. SnowmanForcefield.BackgroundColor3 = Color3.new(1, 1, 1)
  76. SnowmanForcefield.BackgroundTransparency = 1
  77. SnowmanForcefield.BorderSizePixel = 0
  78. SnowmanForcefield.Position = UDim2.new(-0.0128461123, 0, 0.376477361, 0)
  79. SnowmanForcefield.Size = UDim2.new(0, 211, 0, 21)
  80. SnowmanForcefield.Font = Enum.Font.SourceSans
  81. SnowmanForcefield.Text = "SnowmanKiller: false"
  82. SnowmanForcefield.TextColor3 = Color3.new(1, 1, 1)
  83. SnowmanForcefield.TextScaled = true
  84. SnowmanForcefield.TextSize = 14
  85. SnowmanForcefield.TextWrapped = true
  86. -- Scripts:
  87.  
  88. _G.autofarm = false
  89. _G.snowKiller = false
  90. _G.waitTime = 0.5
  91.  
  92. local Player = game.Players.LocalPlayer --get the local player
  93. game:GetService("RunService").RenderStepped:connect(
  94. function()
  95. game:GetService("ReplicatedStorage").ThisGame.Calls.collectSnow:FireServer()
  96. end
  97. )
  98.  
  99. function collectSnow()
  100. while Player.localData.snowballs.Value < Player.localData.sackStorage.Value do
  101. game.ReplicatedStorage.ThisGame.Calls["snowballController"]:FireServer("startRoll")
  102. wait(_G.waitTime)
  103. game.ReplicatedStorage.ThisGame.Calls["snowballControllerFunc"]:InvokeServer("stopRoll")
  104. print("Rolling Snow:" .. Player.localData.snowballs.Value .. "/" .. Player.localData.sackStorage.Value)
  105. end
  106. end
  107.  
  108. function addSnowToSnowman()
  109. if Player.localData.snowballs.Value == Player.localData.sackStorage.Value then
  110. game.ReplicatedStorage.ThisGame.Calls["snowballControllerFunc"]:InvokeServer("stopRoll")
  111. game.ReplicatedStorage.ThisGame.Calls["snowballController"]:FireServer("addToSnowman")
  112. wait(2)
  113. end
  114. end
  115.  
  116. function killSnowMen()
  117. for i, snowman in ipairs(Workspace.minionsHolder:GetChildren()) do
  118. if snowman:FindFirstChild("hitCount") then
  119. while snowman.hitCount.Value > 0 and
  120. (snowman.hitBox.Position - Player.Character.HumanoidRootPart.Position).magnitude < 20 do
  121. game.ReplicatedStorage.ThisGame.Calls["minionHelper"]:FireServer("minionHit", snowman)
  122. wait()
  123. end
  124. end
  125. end
  126. end
  127.  
  128. function pickUpCanes()
  129. local currPos = Player.Character.HumanoidRootPart.CFrame
  130. for i, map in ipairs(Workspace["snowmanBases"]:GetChildren()) do
  131. for i, step in ipairs(map.steps:GetChildren()) do
  132. if step.Name == "goldStepSpot" and step:FindFirstChild("goldCane") then
  133. Player.Character.HumanoidRootPart.CFrame = step:FindFirstChild("goldCane").CFrame
  134. wait(0.3)
  135. end
  136. end
  137. end
  138. Player.Character.HumanoidRootPart.CFrame = currPos
  139. end
  140.  
  141. function MainBot()
  142. while _G.autofarm do
  143. _G.waitTime = tonumber(TextBox.Text)
  144. collectSnow()
  145. addSnowToSnowman()
  146. pickUpCanes()
  147. wait()
  148. end
  149. end
  150.  
  151. function MainKiller()
  152. while _G.snowKiller do
  153. killSnowMen()
  154. wait()
  155. end
  156. end
  157.  
  158. CollectCanes.MouseButton1Click:connect(
  159. function()
  160. pickUpCanes()
  161. end
  162. )
  163.  
  164. SnowmanForcefield.MouseButton1Click:connect(
  165. function()
  166. _G.snowKiller = not _G.snowKiller
  167. if _G.snowKiller then
  168. SnowmanForcefield.Text = "SnowmanKiller: true"
  169. MainKiller()
  170. else
  171. SnowmanForcefield.Text = "SnowmanKiller: false"
  172. end
  173. end
  174. )
  175.  
  176. BotSnowman.MouseButton1Click:connect(
  177. function()
  178. _G.autofarm = not _G.autofarm
  179. if _G.autofarm then
  180. BotSnowman.Text = "Bot enabled: true"
  181. MainBot()
  182. else
  183. BotSnowman.Text = "Bot enabled: false"
  184. end
  185. end
  186. )
Add Comment
Please, Sign In to add comment