Advertisement
Guest User

snowman simulator script

a guest
Dec 30th, 2020
3,836
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.64 KB | None | 0 0
  1. local gamePlayer = game:GetService("Players").LocalPlayer
  2. local ballSize = game:GetService("Players").LocalPlayer.info.snowmanBallSize
  3. local ballCount = game:GetService("Players").LocalPlayer.localData.snowballs
  4. local sackStorage = game:GetService("Players").LocalPlayer.localData.sackStorage
  5. local children = game:GetService("Workspace").snowmanBases:GetChildren()
  6. local bossStep = game:GetService("Workspace").steps
  7. local getMinions = game:GetService("Workspace"):GetDescendants()
  8. local pvpList = game:GetService("Players"):GetPlayers()
  9. local gameVector = Vector3.new(math.random(5000), y, math.random(5000))
  10.  
  11. local autoSnow
  12. local rebirthAuto
  13. local autoCandy
  14. local noOptions
  15. local autoYetiMoney
  16. local autoYeti
  17. local autoSell
  18. local sBoss
  19. local customWait
  20. local doKill
  21. local murderKid
  22.  
  23. local candyCount = {}
  24.  
  25. local waitCount = 0
  26. local killPlayer = "pvpHit"
  27. local eventKill = game:GetService("ReplicatedStorage").ThisGame.Calls.snowballProjectile
  28.  
  29.  
  30. loadstring(game:HttpGet("https://raw.githubusercontent.com/DohmBoyOG/Snow-Simulator-GUI/main/updateFrame.lua"))() -- KINDA USELESS NGL
  31.  
  32.  
  33. local config = {
  34. ["HeaderWidth"] = 240,
  35. ["AccentColor"] = Color3.new(0.6,0,0)
  36. }
  37. local gui = loadstring(game:HttpGet("https://gitlab.com/0x45.xyz/droplib/-/raw/master/drop-minified.lua"))():Init(config,game.CoreGui)
  38. --gui:CreateCategory("Clean Up"):CreateButton("Click",function() gui:CleanUp() end)
  39. local main = gui:CreateCategory("Snowman Simulator GUI")
  40. local autofarms = main:CreateSection('Auto Farms')
  41.  
  42. autofarms:CreateButton('Snowbase', function()
  43. local snowbase = gui:CreateCategory('Automatic Snowbase Farm')
  44. local start_base = snowbase:CreateSwitch('Start', function(bool) autoSnow = bool end)
  45. local options = snowbase:CreateSection('Options')
  46. local rebirth = options:CreateSwitch('Rebirth', function(bool) rebirthAuto = bool end)
  47. --local maxBalls = options:CreateSwitch('No Max Size', function(bool) maxBall = bool end)
  48. options:Collapse()
  49. end)
  50.  
  51.  
  52. autofarms:CreateButton("Boss", function()
  53. local bossfarms = gui:CreateCategory("Automatic Boss Farm")
  54. local yeti = bossfarms:CreateSection('Yeti Giant')
  55. local start_yeti = yeti:CreateSwitch('Start', function(bool) autoYeti = bool sBoss = 'Yeti Giant' end)
  56. local yeti_options = yeti:CreateSection('Options')
  57. local yeti_teleport = yeti_options:CreateButton('Teleport', function() teleportBoss('Yeti Giant') end)
  58. local yeti_money = yeti_options:CreateButton('Manual Boss Reward', function() end)
  59. local yeti_moneyauto = yeti_options:CreateSwitch('Auto Boss Reward', function(bool) autoYetiMoney = bool sBoss = 'Yeti Giant' end)
  60. local yeti_slider = yeti_options:CreateSlider("Custom Kill Wait", function(value) customWait = value end,0,100,0.1,false,1)
  61. local ginger = bossfarms:CreateSection('Bad Batch Gingey')
  62. local start_ginger = ginger:CreateSwitch('Start', function(bool) autoYeti = bool sBoss = 'Bad Batch Gingey' end)
  63. local ginger_options = ginger:CreateSection('Options')
  64. local ginger_teleport = ginger_options:CreateButton('Teleport', function() teleportBoss('Bad Batch Gingey') end)
  65. local ginger_money = ginger_options:CreateButton('Manual Boss Reward', function() end)
  66. local ginger_moneyauto = ginger_options:CreateSwitch('Auto Boss Reward', function(bool) autoYetiMoney = bool sBoss = 'Bad Batch Gingey' end)
  67. local ginger_slider = ginger_options:CreateSlider("Custom Kill Wait", function(value) customWait = value end,0,100,0.1,false,1)
  68. local teddy = bossfarms:CreateSection('Terrible Teddy Bear')
  69. local start_teddy = teddy:CreateSwitch('Start', function(bool) autoYeti = bool sBoss = 'Terrible Teddy Bear' end)
  70. local teddy_options = teddy:CreateSection('Options')
  71. local teddy_teleport = teddy_options:CreateButton('Teleport', function() teleportBoss('Terrible Teddy Bear') end)
  72. local teddy_money = teddy_options:CreateButton('Manual Boss Reward', function() end)
  73. local teddy_moneyauto = teddy_options:CreateSwitch('Auto Boss Reward', function(bool) autoYetiMoney = bool sBoss = 'Terrible Teddy Bear' end)
  74. local teddy_slider = teddy_options:CreateSlider("Custom Kill Wait", function(value) customWait = value end,0,100,0.1,false,1)
  75. local gumdrop = bossfarms:CreateSection('Gumdrop King')
  76. local start_gumdrop = gumdrop:CreateSwitch('Start', function(bool) autoYeti = bool sBoss = 'Gumdrop King' end)
  77. local gumdrop_options = gumdrop:CreateSection('Options')
  78. local gumdrop_teleport = gumdrop_options:CreateButton('Teleport', function() teleportBoss('Gumdrop King') end)
  79. local gumdrop_money = gumdrop_options:CreateButton('Manual Boss Reward', function() end)
  80. local gumdrop_moneyauto = gumdrop_options:CreateSwitch('Auto Boss Reward', function(bool) autoYetiMoney = bool sBoss = 'Gumdrop King' end)
  81. local gumdrop_slider = gumdrop_options:CreateSlider("Custom Kill Wait", function(value) customWait = value end,0,100,0.1,false,1)
  82. yeti:Collapse()
  83. ginger:Collapse()
  84. teddy:Collapse()
  85. gumdrop:Collapse()
  86. yeti_options:Collapse()
  87. teddy_options:Collapse()
  88. ginger_options:Collapse()
  89. gumdrop_options:Collapse()
  90. end)
  91.  
  92.  
  93.  
  94.  
  95. autofarms:CreateButton("Candy", function()
  96. local candies = gui:CreateCategory("Automatic Candy Farm")
  97. local start = candies:CreateSwitch('Start', function(bool) autoCandy = bool end)
  98. local options = candies:CreateSection('Options')
  99. local slider = options:CreateSlider("Amount to Wait", function(value) if waitCheck() == true then noOptions = false end waitCount = value end,0,25,1)
  100. local sell = options:CreateSwitch('AutoSell', function(value) autoSell = value end)
  101. options:Collapse()
  102. end)
  103.  
  104.  
  105. autofarms:CreateButton("Minions", function()
  106. local minions_start = gui:CreateCategory("Minion Farm")
  107. local start = minions_start:CreateSwitch('Start', function(bool) doKill = bool end)
  108. local options_min = minions_start:CreateSection('Options')
  109. local god = options_min:CreateButton('Minion God Mode', function() loadstring(game:HttpGet("https://raw.githubusercontent.com/DohmBoyOG/Snow-Simulator-GUI/main/mGod.lua"))() end)
  110. end)
  111.  
  112. autofarms:CreateButton('Players', function()
  113. local player_cat = gui:CreateCategory('Player Fun')
  114. local selector = player_cat:CreateSelector('Player: ', function() return; end, function() local pvpEnabled = {}
  115.  
  116. for i, player in pairs(pvpList) do
  117. if player == game.Players.LocalPlayer then
  118. table.remove(pvpList, i)
  119. end
  120. end
  121.  
  122. for _, v in pairs(pvpList) do
  123. if v.localData.playerSettings.pvp.value == true then
  124. table.insert(pvpEnabled,v)
  125. end
  126. end
  127.  
  128. return pvpEnabled end, 'none')
  129. local Manual = player_cat:CreateButton('Teleport Kill', function()
  130. Players = game:GetService("Players")
  131. for i, player in pairs(Players:GetPlayers()) do
  132. if player == selector:GetValue() then
  133. --attackPlayer = player.name
  134. --playerHealth = player.localData.health.value
  135. gamePlayer.Character.HumanoidRootPart.CFrame = player.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,8)
  136. repeat
  137. for i = 1, 2 do
  138. eventKill:FireServer(killPlayer, player, gameVector)
  139. wait(0.30)
  140. end
  141. until player.Character.Humanoid.Health == 0
  142.  
  143. end
  144. end
  145. end)
  146. local pvpKillAll = player_cat:CreateButton('PVP-Enabled Kill All', function() loadstring(game:HttpGet("https://raw.githubusercontent.com/DohmBoyOG/Snow-Simulator-GUI/main/SilentKillALLV1.lua"))() end)
  147.  
  148. end)
  149.  
  150. autofarms:Collapse()
  151.  
  152. main:CreateButton("Exit GUI",function() gui:CleanUp() end)
  153.  
  154. main:CreateTextLabel('Created by DohmBoyOG#0313 \n Version: 1.0')
  155.  
  156.  
  157. ------- END GUI STUFF -------
  158.  
  159. function waitCheck()
  160. if waitCount > 0 then
  161. return true;
  162. else
  163. return false;
  164. end
  165. end
  166.  
  167.  
  168. function maxSize()
  169. return 8 + 12 * math.clamp(game:GetService("Players").LocalPlayer.localData.collecting.Value / 200, 0, 1)
  170. end
  171.  
  172. function auto_snowbase()
  173. --if maxBall == true then
  174. -- op = ballSize.Value <= maxSize()
  175. --else
  176. -- op = ballSize.Value >= maxSize()
  177.  
  178. -- end
  179. game:GetService("ReplicatedStorage").ThisGame.Calls.snowballControllerFunc:InvokeServer("startRoll")
  180. repeat
  181. for i = 1, 100 do
  182. game:GetService("ReplicatedStorage").ThisGame.Calls.collectSnow:FireServer()
  183. game:GetService("RunService").Heartbeat:wait()
  184. end
  185. until ballSize.Value >= maxSize()
  186.  
  187. warn('[Snowball Size]: '..ballSize.Value..'/'..maxSize())
  188. game:GetService("ReplicatedStorage").ThisGame.Calls.snowballControllerFunc:InvokeServer("stopRoll")
  189. if ballCount.Value == sackStorage.Value then
  190. print("Stop Collecting")
  191. game:GetService("ReplicatedStorage").ThisGame.Calls.snowballController:FireServer("addToSnowman")
  192. print("Adding Collection to snowman")
  193. end
  194. while rebirthAuto == true and getBool() == true do
  195. wait()
  196. print("Congrats, its a boy!")
  197. provideRebirth()
  198. wait()
  199. end
  200. end
  201.  
  202. function getBool()
  203. for _, gamePlots in pairs(children) do
  204. if gamePlots.player.Value == gamePlayer then
  205. return gamePlots.rebirthActive.Value
  206. end
  207. end
  208. end
  209.  
  210. function provideRebirth() ---[ Code block Taken and put into a function from user 'umbtw' on v3rmillion forums]---
  211. for _, value in pairs(children) do
  212. if value.player.value == gamePlayer then
  213. if value.player.value == gamePlayer then
  214. LandPlot = value
  215. end
  216. end
  217. end
  218.  
  219. local A_1 = "acceptRebirth"
  220. local A_2 = LandPlot
  221. local A_3 = true
  222.  
  223. local Event = game:GetService("ReplicatedStorage").ThisGame.Calls.snowmanEvent
  224.  
  225. Event:FireServer(A_1, A_2, A_3)
  226. end ---[ End of taken code, i CBA to do it myself even though i know how] ---
  227.  
  228. function countCandy()
  229. local candyCanes = game:GetService("Workspace").gameCandyCanes:GetChildren()
  230. local count = #candyCanes
  231. return count
  232. end
  233.  
  234. function startCollection()
  235. for _ , candyCanes in next, game:GetService("Workspace").gameCandyCanes:GetChildren() do
  236. local cane = candyCanes:FindFirstChild("cane")
  237. if cane then
  238. gamePlayer.Character.HumanoidRootPart.CFrame = candyCanes.cane.CFrame * CFrame.new(0,4,0)
  239. wait(0.40)
  240. end
  241. end
  242. end
  243.  
  244. function sellCandy()
  245. print(autoSell)
  246. if autoSell == true then
  247. for count = 1, 3 do
  248. local A_1 = "sellCandycanes"
  249. local A_2 = count
  250. local Event = game:GetService("ReplicatedStorage").ThisGame.Calls.candycaneSell
  251. Event:FireServer(A_1, A_2)
  252. end
  253. end
  254. end
  255.  
  256.  
  257.  
  258.  
  259. function forceReward()
  260. local bossPosition = searchBoss(sBoss)
  261. if bossPosition:FindFirstChild('Boss') and bossPosition.Boss:FindFirstChild('HumanoidRootPart') then
  262. local A_1 = "hit"
  263. local A_2 = sBoss
  264. local A_3 = game:GetService("Workspace").steps.bossLedge.Boss.Boss.Humanoid
  265. local Event = game:GetService("ReplicatedStorage").ThisGame.Calls.bossReward
  266. for i= 1, 80 do
  267. Event:FireServer(A_1, A_2, A_3)
  268. game:GetService("RunService").Heartbeat:wait()
  269. end
  270. print('doing')
  271. end
  272. end
  273.  
  274.  
  275.  
  276. function searchBoss(b)
  277. for _, findLedge in next, bossStep:GetChildren() do
  278. if findLedge.Name == 'bossLedge' then
  279. for _, findBoss in next, findLedge:GetChildren() do
  280. if findBoss:IsA('Folder') and findBoss.Name == 'Boss' then
  281. if findBoss.bossName.Value == b then
  282. return findBoss
  283. end
  284. end
  285. end
  286. end
  287. end
  288. end
  289.  
  290. function autoKill()
  291. local bossPosition = searchBoss(sBoss)
  292. if bossPosition:FindFirstChild('Boss') and bossPosition.Boss:FindFirstChild('HumanoidRootPart') then
  293. local A_1 = "explodeLauncher"
  294. local A_2 = bossPosition.Boss.HumanoidRootPart.CFrame.p;
  295. local Event = game:GetService("ReplicatedStorage").ThisGame.Calls.snowballProjectile
  296. wait(customWait)
  297. for i=1, 20 do
  298. Event:FireServer(A_1, A_2)
  299. game:GetService("RunService").Heartbeat:wait()
  300. end
  301. end
  302. end
  303.  
  304. function notImplemented()
  305. wait(0.2)
  306. game.StarterGui:SetCore("SendNotification", {
  307. Title = "Not Implemented"; -- the title
  308. Text = "This Function is not implemented yet, please be patient this is a WIP"; -- what the text says
  309. Duration = 5; -- how long the notification should in secounds
  310. })
  311. end
  312.  
  313. function killMinions()
  314. for _, value in pairs(getMinions) do
  315. if value:IsA('Folder') and value.name == 'minionHolder' then
  316. for _, m in pairs(value:GetChildren()) do
  317. for i = 1, 20 do
  318. game:GetService("ReplicatedStorage").ThisGame.Calls.minionHelper:FireServer("minionHit", m)
  319. game:GetService("RunService").Heartbeat:wait()
  320. end
  321. end
  322. end
  323. end
  324. end
  325.  
  326. function teleportBoss(boss)
  327. for _, bossLedge in pairs(bossStep:GetChildren()) do
  328. if bossLedge.name == 'bossLedge' then
  329. local whatBoss = bossLedge.bossName.value
  330. local isBoss = boss
  331. if whatBoss == isBoss then
  332. gamePlayer.Character.HumanoidRootPart.CFrame = bossLedge.portal.teleportSpot.CFrame
  333. else
  334. print('No boss named '..isBoss..' Found!')
  335. end
  336. end
  337. end
  338. end
  339.  
  340. function murderChild()
  341.  
  342. local pvpEnabled = {}
  343.  
  344. for i, player in pairs(pvpList) do
  345. if player == game.Players.LocalPlayer then
  346. table.remove(pvpList, i)
  347. end
  348. end
  349.  
  350. for _, v in pairs(pvpList) do
  351. if v.localData.playerSettings.pvp.value == true then
  352. table.insert(pvpEnabled,v)
  353. end
  354. end
  355.  
  356. return pvpEnabled
  357. end
  358.  
  359.  
  360. while wait() do
  361. if autoSnow == true then
  362. auto_snowbase()
  363. end
  364. if autoCandy == true and noOptions == true then
  365. startCollection()
  366. elseif autoCandy == true and waitCheck() == true then
  367. --print('[Waiting for] '..'['..waitCount..']'..' Candy Canes')
  368. if countCandy() >= waitCount then
  369. --print('Found Candy!')
  370. startCollection()
  371. sellCandy()
  372. end
  373. end
  374.  
  375.  
  376.  
  377. if autoYetiMoney == true then
  378. print('enabled')
  379. forceReward()
  380. end
  381. if autoYeti == true then
  382. autoKill()
  383. end
  384.  
  385. if doKill == true then
  386. killMinions()
  387. end
  388.  
  389.  
  390.  
  391. end
  392.  
  393.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement