Advertisement
jjhoweisuber22

SoulBALL roblox

Feb 20th, 2015
400
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.72 KB | None | 0 0
  1. SnowC = {"Institutional white", "White", "Transparent", "Phosph. White", "Light stone grey"}
  2. me = game.Players.LocalPlayer
  3. char = me.Character
  4. Modelname = "SoulBall"
  5. dmg = 15
  6. Dist = 2.5
  7. Surfaces = {"FrontSurface", "BackSurface", "TopSurface", "BottomSurface", "LeftSurface", "RightSurface"}
  8. snowname = "Snow"
  9. ball = nil
  10. necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  11. able = true
  12. Modes = {"Throw", "Collect"}
  13. MaxBallzies = 10
  14. Ballzies = 1
  15. Order = 1
  16. Mode = Modes[Order]
  17.  
  18. Add = {
  19. Sphere = function(P)
  20. local m = Instance.new("SpecialMesh",P)
  21. m.MeshType = "Sphere"
  22. return m
  23. end,
  24. BF = function(P)
  25. local bf = Instance.new("BodyForce",P)
  26. bf.force = Vector3.new(0, P:GetMass()*187, 0)
  27. return bf
  28. end,
  29. BP = function(P)
  30. local bp = Instance.new("BodyPosition",P)
  31. bp.maxForce = Vector3.new(math.huge, 0, math.huge)
  32. bp.P = 14000
  33. return bp
  34. end,
  35. BG = function(P)
  36. local bg = Instance.new("BodyGyro",P)
  37. bg.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  38. bg.P = 8000
  39. return bg
  40. end
  41. }
  42.  
  43. function GetNoobs(Pos, Mag)
  44. local obs = {}
  45. for i,v in pairs(workspace:children()) do
  46. if v:IsA("Model") and v ~= char then
  47. local t, h = v:findFirstChild("Torso"), v:findFirstChild("Humanoid")
  48. if t ~= nil and h ~= nil then
  49. local p = nil
  50. local d = Mag
  51. for a,k in pairs(v:children()) do
  52. if k:IsA("BasePart") then
  53. if (k.Position - Pos).magnitude < d then
  54. p = k
  55. d = (k.Position - Pos).magnitude
  56. end
  57. end
  58. end
  59. if p ~= nil then
  60. table.insert(obs, {t, h})
  61. end
  62. end
  63. end
  64. end
  65. return obs
  66. end
  67.  
  68. function Part(Parent, Anchor, Collide, Tran, Ref, Color, X, Y, Z, Break)
  69. local p = Instance.new("Part")
  70. p.formFactor = "Custom"
  71. p.Anchored = Anchor
  72. p.CanCollide = Collide
  73. p.Transparency = Tran
  74. p.Reflectance = Ref
  75. p.BrickColor = BrickColor.new(Color)
  76. for _, Surf in pairs(Surfaces) do
  77. p[Surf] = "Smooth"
  78. end
  79. p.Size = Vector3.new(X, Y, Z)
  80. if Break then
  81. p:BreakJoints()
  82. else p:MakeJoints() end
  83. p.Parent = Parent
  84. return p
  85. end
  86.  
  87. function Weld(p0, p1, x, y, z, a, b, c)
  88. local w = Instance.new("Weld")
  89. w.Parent = p0
  90. w.Part0 = p0
  91. w.Part1 = p1
  92. w.C1 = CFrame.new(x,y,z) * CFrame.Angles(a,b,c)
  93. return w
  94. end
  95.  
  96. function ComputePos(pos1, pos2)
  97. local pos3 = Vector3.new(pos2.x, pos1.y, pos2.z)
  98. return CFrame.new(pos1, pos3)
  99. end
  100.  
  101. for i,v in pairs(char:children()) do
  102. if v.Name == Modelname then
  103. v:remove()
  104. end
  105. end
  106.  
  107. gui = me.PlayerGui
  108.  
  109. for i,v in pairs(gui:children()) do
  110. if v.Name == "SnowGui" then
  111. v:remove()
  112. end
  113. end
  114.  
  115. sc = Instance.new("ScreenGui")
  116. sc.Name = "SnowGui"
  117.  
  118. mainframe = Instance.new("Frame",sc)
  119. mainframe.Size = UDim2.new(0,300,0,40)
  120. mainframe.Position = UDim2.new(0.5, -150, 0, 2)
  121. mainframe.BackgroundTransparency = 0.3
  122. mainframe.BackgroundColor3 = Color3.new(0.6, 0.6, 0.85)
  123.  
  124. mo = Instance.new("TextLabel",mainframe)
  125. mo.Text = Mode
  126. mo.FontSize = "Size14"
  127. mo.BackgroundColor3 = Color3.new(0.8, 0.8, 1)
  128. mo.TextColor3 = Color3.new(0.2, 0.2, 0.5)
  129. mo.Size = UDim2.new(0, 180, 0, 32)
  130. mo.Position = UDim2.new(0, 4, 0, 4)
  131. mo.BackgroundTransparency = 0.3
  132.  
  133. ma = Instance.new("TextLabel",mainframe)
  134. ma.Text = Ballzies.."/"..MaxBallzies
  135. ma.FontSize = "Size14"
  136. ma.BackgroundColor3 = Color3.new(0.8, 0.8, 1)
  137. ma.TextColor3 = Color3.new(0.2, 0.2, 0.5)
  138. ma.Size = UDim2.new(0, 108, 0, 32)
  139. ma.Position = UDim2.new(0, 188, 0, 4)
  140. ma.BackgroundTransparency = 0.3
  141.  
  142. function CheckBallzies()
  143. if Ballzies > MaxBallzies then
  144. Ballzies = MaxBallzies
  145. elseif Ballzies < 0 then
  146. Ballzies = 0
  147. end
  148. ma.Text = Ballzies.."/"..MaxBallzies
  149. end
  150.  
  151. sc.Parent = gui
  152.  
  153. torso = char.Torso
  154. neck = torso.Neck
  155. hum = char.Humanoid
  156. Rarm = char["Right Arm"]
  157. Larm = char["Left Arm"]
  158. Rleg = char["Right Leg"]
  159. Lleg = char["Left Leg"]
  160.  
  161. throwsound = Instance.new("Sound")
  162. throwsound.SoundId = "rbxasset://sounds//swordslash.wav"
  163. throwsound.Volume = 0.8
  164. throwsound.Pitch = 1.2
  165. throwsound.Parent = Rarm
  166. hitsound = Instance.new("Sound")
  167. hitsound.SoundId = "http://www.roblox.com/asset/?id=2801263"
  168. hitsound.Volume = 0.55
  169. hitsound.Pitch = 1.8
  170.  
  171. Mo = Instance.new("Model")
  172. Mo.Name = Modelname
  173.  
  174. main = Part(Mo, false, false, 0, 0, "Brown", 2, 2, 0.2, true)
  175. Weld(torso, main, 0, 0, -0.6, 0, 0, 0)
  176. Floor = Part(Mo, false, false, 0, 0, "Reddish brown", 1.95, 0.2, 1, true)
  177. Weld(main, Floor, 0, 0.93, -0.4, 0, 0, 0)
  178.  
  179. for i=-0.9, 1, 1.8 do
  180. local side = Part(Mo, false, false, 0, 0, "Brown", 0.2, 2, 0.8, true)
  181. Weld(main, side, i, 0, -0.36, 0, 0, 0)
  182. end
  183.  
  184. for i = -60, 55, 15 do
  185. local ba = Part(Mo, false, false, 0, 0, "Brown", 2, 0.44, 0.2, true)
  186. local wa = Weld(main, ba, 0, 0, 0, 0, 0, 0)
  187. wa.C0 = CFrame.new(0,-0.1,0.1) * CFrame.Angles(math.rad(i),0,0)
  188. wa.C1 = CFrame.new(0,0,-1.1)
  189. for x=-0.9, 1, 1.8 do
  190. local si = Part(Mo, false, false, 0, 0, "Brown", 0.2, 0.5, 0.7, true)
  191. Weld(ba, si, x, 0, 0.34, 0, 0, 0)
  192. end
  193. end
  194.  
  195. for i = -0.8, 0.85, 1.6 do
  196. for x = -1, 1.1, 2 do
  197. local bah = Part(Mo, false, false, 0, 0, "Reddish brown", 0.45, 0.2, 1.1, true)
  198. Weld(main, bah, i, x, 0.5, 0, 0, 0)
  199. end
  200. for x = -20, 20, 5 do
  201. local p = Part(Mo, false, false, 0, 0, "Reddish brown", 0.45, 0.4, 0.2, true)
  202. local wa = Weld(main, p, 0, 0, 0, 0, 0, 0)
  203. wa.C0 = CFrame.new(i,0,1.2) * CFrame.Angles(math.rad(x),0,0)
  204. wa.C1 = CFrame.new(0,0,2.4)
  205. end
  206. end
  207.  
  208. for i = 90, -91, -180 do
  209. local pock = Part(Mo, false, false, 0, 0, "Reddish brown", 0.7, 0.8, 0.3, true)
  210. local wa = Weld(main, pock, 0, 0, 0, 0, 0, 0)
  211. wa.C0 = CFrame.new(0, -0.1, 0.5) * CFrame.Angles(0, math.rad(i), 0)
  212. wa.C1 = CFrame.new(0, 0, 1)
  213. local pock2 = Part(Mo, false, false, 0, 0, "Reddish brown", 0.8, 0.4, 0.4, true)
  214. Weld(pock, pock2, 0, -0.25, 0, 0, 0, 0)
  215. local shin = Part(Mo, false, false, 0, 0.05, "Bright yellow", 0.4, 0.2, 0.2, true)
  216. Weld(pock2, shin, 0, -0.06, 0.15, 0, 0, 0)
  217. Add.Sphere(shin)
  218. end
  219. local lastpart = nil
  220.  
  221. for i = -120, 0, 20 do
  222. local p = Part(Mo, false, false, 0, 0, "Reddish brown", 2, 0.47, 0.2, true)
  223. local wa = Weld(main, p, 0, 0, 0, 0, 0, 0)
  224. wa.C0 = CFrame.new(0,0.23,0.5) * CFrame.Angles(math.rad(i),0,0)
  225. wa.C1 = CFrame.new(0,0,-0.9)
  226. lastpart = p
  227. end
  228.  
  229. shiny = Part(Mo, false, false, 0, 0.05, "Bright yellow", 0.5, 0.3, 0.2, true)
  230. Weld(lastpart, shiny, 0, 0, -0.07, 0, 0, 0)
  231.  
  232.  
  233. RABrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  234. LABrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  235. RLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  236. LLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  237.  
  238. RABW = Weld(torso, RABrick, -1.5, -0.5, 0, 0, 0, 0)
  239. LABW = Weld(torso, LABrick, 1.5, -0.5, 0, 0, 0, 0)
  240. RLBW = Weld(torso, RLBrick, -0.5, 1, 0, 0, 0, 0)
  241. LLBW = Weld(torso, LLBrick, 0.5, 1, 0, 0, 0, 0)
  242.  
  243. RAW = Weld(RABrick, nil, 0, 0.5, 0, 0, 0, 0)
  244. LAW = Weld(LABrick, nil, 0, 0.5, 0, 0, 0, 0)
  245. RLW = Weld(RLBrick, nil, 0, 1, 0, 0, 0, 0)
  246. LLW = Weld(LLBrick, nil, 0, 1, 0, 0, 0, 0)
  247.  
  248. Mo.Parent = char
  249.  
  250. RAWBattle = nil
  251. LAWBattle = nil
  252.  
  253. function SelectAnim()
  254. RAW.Part1 = Rarm
  255. LAW.Part1 = Larm
  256. for i=0,16,2 do
  257. RAW.C0 = CFrame.Angles(0,0,math.rad(i))
  258. LAW.C0 = CFrame.Angles(0,0,math.rad(-i))
  259. wait()
  260. end
  261. if RAWBattle == nil then
  262. RAWBattle = RAW.C0
  263. LAWBattle = LAW.C0
  264. end
  265. end
  266.  
  267. function DeselectAnim()
  268. for i=16,0,-2 do
  269. RAW.C0 = CFrame.Angles(0,0,math.rad(i))
  270. LAW.C0 = CFrame.Angles(0,0,math.rad(-i))
  271. wait()
  272. end
  273. RAW.Part1 = nil
  274. LAW.Part1 = nil
  275. end
  276.  
  277. function makeball()
  278. local b = Part(Mo, false, false, 0, 0, SnowC[math.random(1,#SnowC)],1,1,1,true)
  279. local bw = Weld(Rarm, b, 0, 1.2, 0, 0, 0, 0)
  280. local m = Add.Sphere(b)
  281. m.Scale = Vector3.new(0.1,0.1,0.1)
  282. b.Material = "Concrete"
  283. ball = {b, bw}
  284. for i=0.1,1.25,0.1 do
  285. wait()
  286. m.Scale = Vector3.new(i,i,i)
  287. end
  288. wait(0.04)
  289. end
  290.  
  291. function throw(Mousepos)
  292. if able and Ballzies > 0 then
  293. able = false
  294. coroutine.resume(coroutine.create(function()
  295. makeball()
  296. end))
  297. Ballzies = Ballzies - 1
  298. CheckBallzies()
  299. local torsopos = torso.CFrame
  300. local bgcf = ComputePos(torsopos.p, Mousepos)
  301. local bg = Add.BG(torso)
  302.  
  303. local bp = Add.BP(torso)
  304. bp.position = torsopos.p
  305.  
  306. RLW.Part1 = Rleg
  307. LLW.Part1 = Lleg
  308. for i=0,-90,-90/4 do
  309. bg.cframe = bgcf * CFrame.Angles(0,math.rad(i),0)
  310. RAW.C0 = RAWBattle * CFrame.Angles(0,0,math.rad(-i/1.7))
  311. LAW.C0 = LAWBattle * CFrame.Angles(0,0,math.rad(i/1.9))
  312. neck.C0 = necko * CFrame.Angles(0,0,math.rad(-i))
  313. RLW.C0 = CFrame.Angles(0,0,math.rad(-i/4.5))
  314. LLW.C0 = CFrame.Angles(0,0,math.rad(i/4.5))
  315. wait()
  316. end
  317. wait(0.08)
  318. for i = 0, 90, 90/3 do
  319. bg.cframe = bgcf * CFrame.Angles(0,math.rad(i-90),0)
  320. RAW.C0 = RAWBattle * CFrame.Angles(0,0,math.rad(i-(-90/1.7)))
  321. neck.C0 = necko * CFrame.Angles(0,0,math.rad(-i+90))
  322. RLW.C0 = CFrame.Angles(0,0,math.rad(-(i/4.5)-(-90/4.5)))
  323. LLW.C0 = CFrame.Angles(0,0,math.rad((i/4.5)-(90/4.5)))
  324. wait()
  325. end
  326. throwsound:play()
  327. coroutine.resume(coroutine.create(function()
  328. local ta = ball
  329. ta[1].Parent = workspace
  330. ta[2]:remove()
  331. local c = CFrame.new(ball[1].Position, Mousepos) * CFrame.Angles(math.pi/8.5,0,0)
  332. local mag = (torsopos.p - Mousepos).magnitude
  333. mag = mag-(mag/5)
  334. if mag > 70 then mag = 70 end
  335. local kert = (40+(mag*2))
  336. wait()
  337. ta[1].Velocity = c.lookVector * kert
  338. local abletohit = true
  339. ta[1].Touched:connect(function(hit)
  340. if hit.Parent ~= char and hit.Parent.Parent ~= char and abletohit then
  341. abletohit = false
  342. local pz = ta[1].Position
  343. local siz = ta[1].Size.x
  344. local bla = Part(workspace, true, false, 0, 0, "White", 0.1, 0.1, 0.1, true)
  345. bla.CFrame = CFrame.new(pz)
  346. local saa = hitsound:clone()
  347. saa.Parent = bla
  348. saa:play()
  349. coroutine.resume(coroutine.create(function()
  350. local toz = GetNoobs(pz, Dist)
  351. for i,v in pairs(toz) do
  352. v[2].PlatformStand = true
  353. v[2].Health = v[2].Health - dmg
  354. local caa = CFrame.new(pz, v[1].Position)
  355. v[1].Velocity = caa.lookVector * (dmg*2)
  356. coroutine.resume(coroutine.create(function()
  357. wait(0.07)
  358. v[2].PlatformStand = false
  359. end))
  360. end
  361. wait(0.5)
  362. bla:remove()
  363. end))
  364. ta[1]:remove()
  365. for i=1,math.random(2,7) do
  366. siz = math.random(40, 120)/100
  367. local sho = Part(workspace, false, false, 0, 0, SnowC[math.random(1,#SnowC)], siz, siz, siz, true)
  368. sho.CFrame = CFrame.new(pz)
  369. sho.Velocity = Vector3.new(math.random(-40,40),math.random(-20,40),math.random(-40,40))
  370. sho.Material = "Concrete"
  371. Add.Sphere(sho)
  372. coroutine.resume(coroutine.create(function()
  373. wait(1)
  374. sho:remove()
  375. end))
  376. end
  377. end
  378. end)
  379. wait(4)
  380. ta[1]:remove()
  381. end))
  382. for i = 90, 180, 90/3 do
  383. bg.cframe = bgcf * CFrame.Angles(0,math.rad(i-90),0)
  384. RAW.C0 = RAWBattle * CFrame.Angles(0,0,math.rad(-i-(180/1.7)))
  385. neck.C0 = necko * CFrame.Angles(0,0,math.rad(-i+90))
  386. RLW.C0 = CFrame.Angles(0,0,math.rad((i/4.5)+(-90/4.5)))
  387. LLW.C0 = CFrame.Angles(0,0,math.rad(-(i/4.5)+(90/4.5)))
  388. wait()
  389. end
  390. wait(0.16)
  391. for i = 180, 90, -90/6 do
  392. bg.cframe = bgcf * CFrame.Angles(0,math.rad(i-90),0)
  393. RAW.C0 = RAWBattle * CFrame.Angles(0,0,math.rad(i-90))
  394. neck.C0 = necko * CFrame.Angles(0,0,math.rad(-i+90))
  395. LAW.C0 = LAWBattle * CFrame.Angles(0,0,math.rad(-i/1.9+(90/1.9)))
  396. RLW.C0 = CFrame.Angles(0,0,math.rad((i/4.5)+(-90/4.5)))
  397. LLW.C0 = CFrame.Angles(0,0,math.rad(-(i/4.5)+(90/4.5)))
  398. wait()
  399. end
  400. wait(0.06)
  401. bg:remove()
  402. bp:remove()
  403. RLW.Part1 = nil
  404. LLW.Part1 = nil
  405. RAW.C0 = RAWBattle
  406. LAW.C0 = LAWBattle
  407. neck.C0 = necko
  408. ball = nil
  409. able = true
  410. end
  411. end
  412.  
  413. function GrabSnow(Snow, mouse)
  414. if able == true then
  415. able = false
  416. if Snow.Name == snowname and (Snow.Position - torso.Position).magnitude < 50 then
  417. local pos = CFrame.new(torso.Position, Snow.Position)
  418. pos = pos * CFrame.new(0,0,-(torso.Position - Snow.Position).magnitude + Snow.Size.X/2.2).p
  419. local blah = true
  420. mouse.Button1Down:connect(function()
  421. if blah == true then
  422. blah = false
  423. end
  424. end)
  425. repeat
  426. wait()
  427. if Snow.Parent ~= nil then
  428. hum:MoveTo(pos, Snow)
  429. else break end
  430. if blah == false then break end
  431. until (torso.Position - pos).magnitude < 4.4
  432. if blah then
  433. local bp = Add.BP(torso)
  434. bp.position = Vector3.new(pos.x, torso.Position.Y, pos.z)
  435. local bg = Add.BG(torso)
  436. bg.cframe = CFrame.new(torso.Position, Vector3.new(Snow.Position.x, torso.Position.y - 0.4, Snow.Position.z))
  437. RLW.Part1 = Rleg
  438. LLW.Part1 = Lleg
  439. for i=0,80,10 do
  440. wait()
  441. RAW.C0 = RAWBattle * CFrame.Angles(math.rad(i),0,math.rad(-i/2)) * CFrame.new(0,-i/130,0)
  442. LAW.C0 = LAWBattle * CFrame.Angles(math.rad(i),0,math.rad(i/2)) * CFrame.new(0,-i/130,0)
  443. RLW.C0 = CFrame.Angles(0,0,math.rad(i/6.5))
  444. LLW.C0 = CFrame.Angles(0,0,math.rad(-i/6.5))
  445. end
  446. local c1, c2 = RAW.C0, LAW.C0
  447. local makingball = true
  448. coroutine.resume(coroutine.create(function()
  449. while makingball == true do
  450. RAW.C0 = c1 * CFrame.Angles(math.random(-30,30)/100, math.random(-20,20)/100, math.random(-30,30)/100)
  451. LAW.C0 = c2 * CFrame.Angles(math.random(-30,30)/100, math.random(-20,20)/100, math.random(-30,30)/100)
  452. wait()
  453. end
  454. end))
  455. makeball()
  456. makingball = false
  457. ball[1]:remove()
  458. wait(0.1)
  459. bp:remove()
  460. bg:remove()
  461. for i=80,0,-10 do
  462. wait()
  463. RAW.C0 = RAWBattle * CFrame.Angles(math.rad(i),0,math.rad(-i/2)) * CFrame.new(0,-i/130,0)
  464. LAW.C0 = LAWBattle * CFrame.Angles(math.rad(i),0,math.rad(i/2)) * CFrame.new(0,-i/130,0)
  465. RLW.C0 = CFrame.Angles(0,0,math.rad(i/6.5))
  466. LLW.C0 = CFrame.Angles(0,0,math.rad(-i/6.5))
  467. end
  468. Ballzies = Ballzies + 1
  469. CheckBallzies()
  470. RLW.Part1 = nil
  471. LLW.Part1 = nil
  472. else
  473. hum:MoveTo(torso.Position, torso)
  474. end
  475. end
  476. able = true end
  477. end
  478.  
  479. function KD(key)
  480. key = key:lower()
  481. if key == "q" then
  482. Order = Order - 1
  483. elseif key == "e" then
  484. Order = Order + 1
  485. end
  486. if Order > #Modes then
  487. Order = 1
  488. elseif Order < 1 then
  489. Order = #Modes
  490. end
  491. Mode = Modes[Order]
  492. mo.Text = Modes[Order]
  493. end
  494.  
  495. function Select(mouse)
  496. SelectAnim()
  497. mouse.KeyDown:connect(function(key) KD(key) end)
  498. mouse.Button1Down:connect(function()
  499. if Mode == Modes[2] then
  500. GrabSnow(mouse.Target, mouse)
  501. elseif Mode == Modes[1] then
  502. throw(mouse.Hit.p)
  503. end
  504. end)
  505. end
  506.  
  507. function Deselect(mouse)
  508. DeselectAnim()
  509. end
  510.  
  511. if not script.Parent:IsA("HopperBin") then
  512. H = Instance.new("HopperBin",me.Backpack)
  513. H.Name = Modelname
  514. script.Parent = H
  515. end
  516.  
  517. bin = script.Parent
  518.  
  519. bin.Selected:connect(Select)
  520. bin.Deselected:connect(Deselect)
  521.  
  522.  
  523. coroutine.resume(coroutine.create(function()
  524. while true do
  525. local touchy = false
  526. for i = 1, math.random(26,40) do
  527. local siz = math.random(120,280)/100
  528. local RandX, RandY, RandZ = math.random(-150,150), math.random(90,110), math.random(-150,150)
  529. local s = Part(Mo, false, false, 0, 0, SnowC[math.random(1,#SnowC)],siz,siz,siz,true)
  530. Add.Sphere(s)
  531. local b = Add.BF(s)
  532. b.force = Vector3.new(0, s:GetMass() * 164, 0)
  533. s.CFrame = CFrame.new(RandX, RandY, RandZ)
  534. coroutine.resume(coroutine.create(function()
  535. repeat wait() until s.Position.Y < 0
  536. local po = s.Position
  537. touchy = true
  538. s:remove()
  539. end))
  540. wait(0.04)
  541. end
  542. repeat wait(0.1) until touchy
  543. wait(1)
  544. for i = 1, math.random(12, 26) do
  545. wait()
  546. local siz = math.random(180,260)/100
  547. local RandX, RandZ = math.random(-150,150), math.random(-150,150)
  548. local pile = Part(workspace:findFirstChild("Base"), true, false, 1, 0, SnowC[math.random(1,#SnowC)],siz*6.5,siz*2.7,siz*6.5,true)
  549. pile.CFrame = CFrame.new(RandX, 1.05, RandZ)
  550. pile.Name = snowname
  551. Add.Sphere(pile)
  552. coroutine.resume(coroutine.create(function()
  553. for i=1,-0.05,-0.05 do
  554. pile.Transparency = i
  555. wait()
  556. end
  557. wait(30)
  558. for i=0,1,0.03 do
  559. pile.Transparency = i
  560. wait()
  561. end
  562. pile:remove()
  563. end))
  564. end
  565. wait(20)
  566. end
  567. end))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement