Advertisement
Guest User

Untitled

a guest
Dec 18th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.16 KB | None | 0 0
  1. --[[
  2. Desc:
  3. Made this because I was told to and because I was bored
  4. ------
  5. Game:
  6. https://www.roblox.com/games/2533391464/Update-Snowman-Simulator
  7. ]]
  8. print('loading')
  9. plr = game:GetService('Players').LocalPlayer
  10. Root = plr.Character.HumanoidRootPart
  11. local ScreenGui = Instance.new("ScreenGui")
  12. local MainFrame = Instance.new("Frame")
  13. local TopFrame = Instance.new("Frame")
  14. local Close = Instance.new("TextButton")
  15. local Minimize = Instance.new("TextButton")
  16. local Game = Instance.new("TextLabel")
  17. local B1 = Instance.new("TextButton")
  18. local L1 = Instance.new("TextLabel")
  19. local B5 = Instance.new("TextButton")
  20. local L5 = Instance.new("TextLabel")
  21. local B3 = Instance.new("TextButton")
  22. local L3 = Instance.new("TextLabel")
  23. local B6 = Instance.new("TextButton")
  24. local L6 = Instance.new("TextLabel")
  25. local B2 = Instance.new("TextButton")
  26. local L2 = Instance.new("TextLabel")
  27. local B4 = Instance.new("TextButton")
  28. local L4 = Instance.new("TextLabel")
  29. local GuiCred = Instance.new("TextLabel")
  30. local ScriptCred = Instance.new("TextLabel")
  31. ScreenGui.Parent = game.CoreGui
  32. B1.TextWrapped = true
  33. B2.TextWrapped = true
  34. B3.TextWrapped = true
  35. B4.TextWrapped = true
  36. B5.TextWrapped = true
  37. B6.TextWrapped = true
  38. ScriptCred.TextWrapped = true
  39. GuiCred.TextWrapped = true
  40. Game.TextWrapped = true
  41. _G.on1 = 0
  42. _G.on2 = 0
  43. _G.on3 = 0
  44. _G.on4 = 0
  45. _G.on5 = 0
  46. _G.on6 = 0
  47. MainFrame.Name = "MainFrame"
  48. MainFrame.Parent = ScreenGui
  49. MainFrame.BackgroundColor3 = Color3.new(0.364706, 0.360784, 0.380392)
  50. MainFrame.BackgroundTransparency = 0.40000000596046
  51. MainFrame.BorderColor3 = Color3.new(0.501961, 0.533333, 0.529412)
  52. MainFrame.Position = UDim2.new(0.229385316, 0, 0.28605482, 0)
  53. MainFrame.Size = UDim2.new(0, 360, 0, 239)
  54. MainFrame.Draggable = true
  55. MainFrame.Active = true
  56. MainFrame.Selectable = true
  57. TopFrame.Name = "TopFrame"
  58. TopFrame.Parent = MainFrame
  59. TopFrame.BackgroundColor3 = Color3.new(0.364706, 0.360784, 0.380392)
  60. TopFrame.BackgroundTransparency = 0.89999997615814
  61. TopFrame.BorderSizePixel = 0
  62. TopFrame.Size = UDim2.new(0, 360, 0, 24)
  63. Close.Name = "Close"
  64. Close.Parent = TopFrame
  65. Close.BackgroundColor3 = Color3.new(0.364706, 0.360784, 0.380392)
  66. Close.BackgroundTransparency = 0.80000001192093
  67. Close.BorderSizePixel = 0
  68. Close.Position = UDim2.new(0.916666627, 0, 0, 0)
  69. Close.Size = UDim2.new(0, 24, 0, 24)
  70. Close.Font = Enum.Font.SourceSans
  71. Close.Text = "x"
  72. Close.TextColor3 = Color3.new(0, 0, 0)
  73. Close.TextSize = 16
  74. Minimize.Name = "Minimize"
  75. Minimize.Parent = TopFrame
  76. Minimize.BackgroundColor3 = Color3.new(0.364706, 0.360784, 0.380392)
  77. Minimize.BackgroundTransparency = 0.80000001192093
  78. Minimize.BorderSizePixel = 0
  79. Minimize.Position = UDim2.new(0.827777803, 0, 0, 0)
  80. Minimize.Size = UDim2.new(0, 24, 0, 24)
  81. Minimize.Font = Enum.Font.SourceSans
  82. Minimize.Text = "^"
  83. Minimize.TextColor3 = Color3.new(0, 0, 0)
  84. Minimize.TextSize = 18
  85. Game.Name = "Game"
  86. Game.Parent = TopFrame
  87. Game.BackgroundColor3 = Color3.new(0.364706, 0.360784, 0.380392)
  88. Game.BackgroundTransparency = 0.80000001192093
  89. Game.BorderSizePixel = 0
  90. Game.Position = UDim2.new(0.0222222228, 0, 0, 0)
  91. Game.Size = UDim2.new(0, 281, 0, 24)
  92. Game.Font = Enum.Font.SourceSans
  93. Game.Text = "[Game name here]"
  94. Game.TextColor3 = Color3.new(0, 0, 0)
  95. Game.TextSize = 14
  96. B1.Name = "B1"
  97. B1.Parent = MainFrame
  98. B1.BackgroundColor3 = Color3.new(0.333333, 0.478431, 0.584314)
  99. B1.BackgroundTransparency = 0.20000000298023
  100. B1.Position = UDim2.new(0.0583333373, 0, 0.146443501, 0)
  101. B1.Size = UDim2.new(0, 132, 0, 44)
  102. B1.Font = Enum.Font.SourceSans
  103. B1.Text = "B1 N/A"
  104. B1.TextColor3 = Color3.new(0, 0, 0)
  105. B1.TextSize = 14
  106. L1.Name = "L1"
  107. L1.Parent = B1
  108. L1.BackgroundColor3 = Color3.new(0.313726, 0.360784, 0.403922)
  109. L1.Position = UDim2.new(0.871212125, 0, 0, 0)
  110. L1.Size = UDim2.new(0, 17, 0, 17)
  111. L1.Font = Enum.Font.SourceSans
  112. L1.Text = ""
  113. L1.TextColor3 = Color3.new(0, 0, 0)
  114. L1.TextSize = 14
  115. B2.Name = "B2"
  116. B2.Parent = MainFrame
  117. B2.BackgroundColor3 = Color3.new(0.333333, 0.478431, 0.584314)
  118. B2.BackgroundTransparency = 0.20000000298023
  119. B2.Position = UDim2.new(0.0583333373, 0, 0.405857742, 0)
  120. B2.Size = UDim2.new(0, 132, 0, 44)
  121. B2.Font = Enum.Font.SourceSans
  122. B2.Text = "B2 N/A"
  123. B2.TextColor3 = Color3.new(0, 0, 0)
  124. B2.TextSize = 14
  125. L2.Name = "L2"
  126. L2.Parent = B2
  127. L2.BackgroundColor3 = Color3.new(0.313726, 0.360784, 0.403922)
  128. L2.Position = UDim2.new(0.871212125, 0, 0, 0)
  129. L2.Size = UDim2.new(0, 17, 0, 17)
  130. L2.Font = Enum.Font.SourceSans
  131. L2.Text = ""
  132. L2.TextColor3 = Color3.new(0, 0, 0)
  133. L2.TextSize = 14
  134. B3.Name = "B3"
  135. B3.Parent = MainFrame
  136. B3.BackgroundColor3 = Color3.new(0.333333, 0.478431, 0.584314)
  137. B3.BackgroundTransparency = 0.20000000298023
  138. B3.Position = UDim2.new(0.0583333373, 0, 0.656903744, 0)
  139. B3.Size = UDim2.new(0, 132, 0, 44)
  140. B3.Font = Enum.Font.SourceSans
  141. B3.Text = "B3 N/A"
  142. B3.TextColor3 = Color3.new(0, 0, 0)
  143. B3.TextSize = 14
  144. L3.Name = "L3"
  145. L3.Parent = B3
  146. L3.BackgroundColor3 = Color3.new(0.313726, 0.360784, 0.403922)
  147. L3.Position = UDim2.new(0.871212125, 0, 0, 0)
  148. L3.Size = UDim2.new(0, 17, 0, 17)
  149. L3.Font = Enum.Font.SourceSans
  150. L3.Text = ""
  151. L3.TextColor3 = Color3.new(0, 0, 0)
  152. L3.TextSize = 14
  153. B4.Name = "B4"
  154. B4.Parent = MainFrame
  155. B4.BackgroundColor3 = Color3.new(0.333333, 0.478431, 0.584314)
  156. B4.BackgroundTransparency = 0.20000000298023
  157. B4.Position = UDim2.new(0.577777743, 0, 0.146443516, 0)
  158. B4.Size = UDim2.new(0, 132, 0, 44)
  159. B4.Font = Enum.Font.SourceSans
  160. B4.Text = "B4 N/A"
  161. B4.TextColor3 = Color3.new(0, 0, 0)
  162. B4.TextSize = 14
  163. L4.Name = "L4"
  164. L4.Parent = B4
  165. L4.BackgroundColor3 = Color3.new(0.313726, 0.360784, 0.403922)
  166. L4.Position = UDim2.new(0.871212125, 0, 0, 0)
  167. L4.Size = UDim2.new(0, 17, 0, 17)
  168. L4.Font = Enum.Font.SourceSans
  169. L4.Text = ""
  170. L4.TextColor3 = Color3.new(0, 0, 0)
  171. L4.TextSize = 14
  172. B5.Name = "B5"
  173. B5.Parent = MainFrame
  174. B5.BackgroundColor3 = Color3.new(0.333333, 0.478431, 0.584314)
  175. B5.BackgroundTransparency = 0.20000000298023
  176. B5.Position = UDim2.new(0.577777743, 0, 0.405857742, 0)
  177. B5.Size = UDim2.new(0, 132, 0, 44)
  178. B5.Font = Enum.Font.SourceSans
  179. B5.Text = "B5 N/A"
  180. B5.TextColor3 = Color3.new(0, 0, 0)
  181. B5.TextSize = 14
  182. L5.Name = "L5"
  183. L5.Parent = B5
  184. L5.BackgroundColor3 = Color3.new(0.313726, 0.360784, 0.403922)
  185. L5.Position = UDim2.new(0.871212125, 0, 0, 0)
  186. L5.Size = UDim2.new(0, 17, 0, 17)
  187. L5.Font = Enum.Font.SourceSans
  188. L5.Text = ""
  189. L5.TextColor3 = Color3.new(0, 0, 0)
  190. L5.TextSize = 14
  191. B6.Name = "B6"
  192. B6.Parent = MainFrame
  193. B6.BackgroundColor3 = Color3.new(0.333333, 0.478431, 0.584314)
  194. B6.BackgroundTransparency = 0.20000000298023
  195. B6.Position = UDim2.new(0.577777743, 0, 0.656903803, 0)
  196. B6.Size = UDim2.new(0, 132, 0, 44)
  197. B6.Font = Enum.Font.SourceSans
  198. B6.Text = "B6 N/A"
  199. B6.TextColor3 = Color3.new(0, 0, 0)
  200. B6.TextSize = 14
  201. L6.Name = "L6"
  202. L6.Parent = B6
  203. L6.BackgroundColor3 = Color3.new(0.313726, 0.360784, 0.403922)
  204. L6.Position = UDim2.new(0.871212125, 0, 0, 0)
  205. L6.Size = UDim2.new(0, 17, 0, 17)
  206. L6.Font = Enum.Font.SourceSans
  207. L6.Text = ""
  208. L6.TextColor3 = Color3.new(0, 0, 0)
  209. L6.TextSize = 14
  210. GuiCred.Name = "GuiCred"
  211. GuiCred.Parent = MainFrame
  212. GuiCred.BackgroundColor3 = Color3.new(0.45098, 0.584314, 0.682353)
  213. GuiCred.BackgroundTransparency = 0.60000002384186
  214. GuiCred.BorderSizePixel = 0
  215. GuiCred.Position = UDim2.new(0, 0, 0.88702929, 0)
  216. GuiCred.Size = UDim2.new(0, 174, 0, 27)
  217. GuiCred.Font = Enum.Font.SourceSans
  218. GuiCred.Text = "Gui Credit: VesilicsHD"
  219. GuiCred.TextColor3 = Color3.new(0, 0, 0)
  220. GuiCred.TextSize = 14
  221. ScriptCred.Name = "ScriptCred"
  222. ScriptCred.Parent = MainFrame
  223. ScriptCred.BackgroundColor3 = Color3.new(0.45098, 0.584314, 0.682353)
  224. ScriptCred.BackgroundTransparency = 0.60000002384186
  225. ScriptCred.BorderSizePixel = 0
  226. ScriptCred.Position = UDim2.new(0.522222221, 0, 0.887000024, 0)
  227. ScriptCred.Size = UDim2.new(0, 172, 0, 27)
  228. ScriptCred.Font = Enum.Font.SourceSans
  229. ScriptCred.Text = "Script(s) credit: "
  230. ScriptCred.TextColor3 = Color3.new(0, 0, 0)
  231. ScriptCred.TextSize = 14
  232. function onL(Light)
  233. Light.BackgroundColor3 = Color3.new(0.364706, 0.694118, 1)
  234. end
  235. function offL(Light)
  236. Light.BackgroundColor3 = Color3.new(0.313726, 0.360784, 0.403922)
  237. end
  238. ------------------------------------------------------
  239.  
  240. Game.Text = "Snowman Simulator" -- Game name here
  241. ScriptCred.Text = ScriptCred.Text .. "VesilicsHD" -- put the script creators name here
  242.  
  243. --Enter the script name corresponding to the button below
  244. B1.Text = "Attack all enemies"
  245. B2.Text = "Autocollect snow"
  246. B3.Text = "AutoCollect canes"
  247. B4.Text = "Autosell snow"
  248. B5.Text = "Autosell Canes"
  249. B6.Text = "Teleport to snow"
  250.  
  251. B1.MouseButton1Click:connect(function()
  252. if _G.on1 == 1 then
  253. _G.on1 = 0
  254. offL(L1)
  255. else
  256. _G.on1 = 1
  257. onL(L1)
  258. while _G.on1 == 1 do
  259. game:GetService('RunService').Stepped:wait()
  260. for i,v in pairs(game:GetService("Workspace").minionsHolder:GetChildren()) do
  261. if v and _G.on1 == 1 then
  262. game:GetService('RunService').Stepped:wait()
  263. local A_1 = "minionHit"
  264. local A_2 = v
  265. local Event = game:GetService("ReplicatedStorage").ThisGame.Calls.minionHelper
  266. Event:FireServer(A_1, A_2)
  267. end
  268. end
  269. end
  270. end
  271. end)
  272. B2.MouseButton1Click:connect(function()
  273. if _G.on2 == 1 then
  274. _G.on2 = 0
  275. offL(L2)
  276. else
  277. _G.on2 = 1
  278. onL(L2)
  279. while _G.on2 == 1 do
  280. game:GetService('RunService').Stepped:wait()
  281. for i = 1,50 do
  282. game:GetService('RunService').Stepped:wait()
  283. local Event = game:GetService("ReplicatedStorage").ThisGame.Calls.collectSnow
  284. Event:FireServer()
  285. end
  286. local A_1 = "stopRoll"
  287. local Event = game:GetService("ReplicatedStorage").ThisGame.Calls.snowballControllerFunc
  288. Event:InvokeServer(A_1)
  289. end
  290. end
  291. end)
  292. B3.MouseButton1Click:connect(function()
  293. if _G.on3 == 1 then
  294. _G.on3 = 0
  295. offL(L3)
  296. else
  297. _G.on3 = 1
  298. onL(L3)
  299. while _G.on3 == 1 do
  300. game:GetService('RunService').Stepped:wait()
  301. for i,v in pairs(game.workspace.gameCandyCanes:GetChildren()) do
  302. if v and _G.on3 == 1 then
  303. local cane = v:FindFirstChild("cane")
  304. if cane then
  305. game:GetService('RunService').Stepped:wait()
  306. orgin = Root.CFrame
  307. Root.CFrame = cane.CFrame * CFrame.new(0,3,0)
  308. wait(.1)
  309. Root.CFrame = orgin
  310. end
  311. end
  312. local C = game.Workspace:FindFirstChild("cane",true)
  313. if C then
  314. game:GetService('RunService').Stepped:wait()
  315. orgin = Root.CFrame
  316. Root.CFrame = C.CFrame * CFrame.new(0,3,0)
  317. wait(.1)
  318. Root.CFrame = orgin
  319. end
  320. end
  321. end
  322. end
  323. end)
  324. B4.MouseButton1Click:connect(function()
  325. if _G.on4 == 1 then
  326. _G.on4 = 0
  327. offL(L4)
  328. else
  329. _G.on4 = 1
  330. onL(L4)
  331. while _G.on4 == 1 do
  332. wait(.5)
  333. local A_1 = "addToSnowman"
  334. local Event = game:GetService("ReplicatedStorage").ThisGame.Calls.snowballController
  335. Event:FireServer(A_1)
  336. end
  337. end
  338. end)
  339. B5.MouseButton1Click:connect(function()
  340. if _G.on5 == 1 then
  341. _G.on5 = 0
  342. offL(L5)
  343. else
  344. _G.on5 = 1
  345. onL(L5)
  346. while _G.on5 == 1 do
  347. wait()
  348. local A_1 = "sellCandycanes"
  349. local A_2 = 2
  350. local Event = game:GetService("ReplicatedStorage").ThisGame.Calls.candycaneSell
  351. Event:FireServer(A_1, A_2)
  352. local A_1 = "sellCandycanes"
  353. local A_2 = 3
  354. local Event = game:GetService("ReplicatedStorage").ThisGame.Calls.candycaneSell
  355. Event:FireServer(A_1, A_2)
  356. local A_1 = "sellCandycanes"
  357. local A_2 = 1
  358. local Event = game:GetService("ReplicatedStorage").ThisGame.Calls.candycaneSell
  359. Event:FireServer(A_1, A_2)
  360. end
  361. end
  362. end)
  363. B6.MouseButton1Click:connect(function()
  364. if _G.on6 == 1 then
  365. _G.on6 = 0
  366. offL(L6)
  367. else
  368. _G.on6 = 1
  369. onL(L6)
  370. while _G.on6 == 1 do
  371. game:GetService('RunService').Stepped:wait()
  372. for i,v in pairs(game.Workspace.SNOWPILES:GetChildren()) do
  373. if v and _G.on6 == 1 then
  374. orgin = Root.CFrame
  375. Root.CFrame = v.CFrame
  376. wait()
  377. Root.CFrame = orgin
  378. end
  379. end
  380. end
  381. end
  382. end)
  383.  
  384. ------------------------------------------------------
  385.  
  386. m = 0
  387. Close.MouseButton1Click:connect(function()
  388. _G.on1 = 0
  389. _G.on2 = 0
  390. _G.on3 = 0
  391. _G.on4 = 0
  392. _G.on5 = 0
  393. _G.on6 = 0
  394. MainFrame:Destroy()
  395. ScreenGui:Destroy()
  396. end)
  397. Minimize.MouseButton1Click:connect(function()
  398. if m == 0 then
  399. m = 1
  400. B1.Visible = false
  401. B2.Visible = false
  402. B3.Visible = false
  403. B4.Visible = false
  404. B5.Visible = false
  405. B6.Visible = false
  406. GuiCred.Visible = false
  407. ScriptCred.Visible = false
  408. MainFrame.Size = TopFrame.Size
  409. Minimize.TextSize = 18
  410. Minimize.Text = "v"
  411. else
  412. m = 0
  413. MainFrame.Size = UDim2.new(0, 360, 0, 239)
  414. B1.Visible = true
  415. B2.Visible = true
  416. B3.Visible = true
  417. B4.Visible = true
  418. B5.Visible = true
  419. B6.Visible = true
  420. GuiCred.Visible = true
  421. ScriptCred.Visible = true
  422. Minimize.TextSize = 20
  423. Minimize.Text = "^"
  424. end
  425. end)
  426. print('loaded')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement