Script_Master132

Snowman Simulator Script GUI

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