Advertisement
LegendOfAwesomeness2

Soul Ball

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