Dark_EccentricYT

Untitled

May 22nd, 2018
3,833
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.02 KB | None | 0 0
  1. --[[ Made by KillerDarkness0105/Codex#6685, Because uno is a good meme and you should all play it. ]]--
  2.  
  3.  
  4.  
  5.  
  6.  
  7. Player=game:GetService("Players").LocalPlayer
  8. Character=Player.Character
  9. LeftArm=Character["Left Arm"]
  10. LeftLeg=Character["Left Leg"]
  11. RightArm=Character["Right Arm"]
  12. RightLeg=Character["Right Leg"]
  13. Torso=Character.Torso
  14. Head=Character.Head
  15. Humanoid=Character.Humanoid
  16. local mouse = Player:GetMouse()
  17. angles=CFrame.Angles
  18. it=Instance.new
  19. attacktype=1
  20. vt=Vector3.new
  21. cf=CFrame.new
  22. euler=CFrame.fromEulerAnglesXYZ
  23. angles=CFrame.Angles
  24. RootPart=Character.HumanoidRootPart
  25. RootJoint=RootPart.RootJoint
  26. local attack = false
  27. local Effects = {}
  28. m = game.Players.LocalPlayer
  29. char = m.Character
  30. local txt = Instance.new("BillboardGui", char)
  31. txt.Adornee = char .Head
  32. txt.Name = "_status"
  33. txt.Size = UDim2.new(2, 0, 1.2, 0)
  34. txt.StudsOffset = Vector3.new(-9, 8, 0)
  35. local text = Instance.new("TextLabel", txt)
  36. text.Size = UDim2.new(10, 0, 7, 0)
  37. text.FontSize = "Size24"
  38. text.TextScaled = true
  39. text.TextTransparency = 0
  40. text.BackgroundTransparency = 1
  41. text.TextTransparency = 0
  42. text.TextStrokeTransparency = 0
  43. text.Font = "Bodoni"
  44. text.TextStrokeColor3 = Color3.new(0,0,0)
  45.  
  46. v=Instance.new("Part")
  47. v.Name = "ColorBrick"
  48. v.Parent=m.Character
  49. v.FormFactor="Symmetric"
  50. v.Anchored=true
  51. v.CanCollide=false
  52. v.BottomSurface="Smooth"
  53. v.TopSurface="Smooth"
  54. v.Size=Vector3.new(10,5,3)
  55. v.Transparency=1
  56. v.CFrame=char.Torso.CFrame
  57. v.BrickColor=BrickColor.new("Really black")
  58. v.Transparency=1
  59. text.TextColor3 = Color3.new(0,255,255)
  60. v.Shape="Block"
  61. text.Text = ""
  62.  
  63. deb = game:GetService("Debris")
  64.  
  65. function clerp(a,b,t)
  66. local qa = {QuaternionFromCFrame(a)}
  67. local qb = {QuaternionFromCFrame(b)}
  68. local ax, ay, az = a.x, a.y, a.z
  69. local bx, by, bz = b.x, b.y, b.z
  70. local _t = 1-t
  71. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  72. end
  73.  
  74. function QuaternionFromCFrame(cf)
  75. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  76. local trace = m00 + m11 + m22
  77. if trace > 0 then
  78. local s = math.sqrt(1 + trace)
  79. local recip = 0.5/s
  80. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  81. else
  82. local i = 0
  83. if m11 > m00 then
  84. i = 1
  85. end
  86. if m22 > (i == 0 and m00 or m11) then
  87. i = 2
  88. end
  89. if i == 0 then
  90. local s = math.sqrt(m00-m11-m22+1)
  91. local recip = 0.5/s
  92. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  93. elseif i == 1 then
  94. local s = math.sqrt(m11-m22-m00+1)
  95. local recip = 0.5/s
  96. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  97. elseif i == 2 then
  98. local s = math.sqrt(m22-m00-m11+1)
  99. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  100. end
  101. end
  102. end
  103.  
  104. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  105. local xs, ys, zs = x + x, y + y, z + z
  106. local wx, wy, wz = w*xs, w*ys, w*zs
  107. local xx = x*xs
  108. local xy = x*ys
  109. local xz = x*zs
  110. local yy = y*ys
  111. local yz = y*zs
  112. local zz = z*zs
  113. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  114. end
  115. function QuaternionSlerp(a, b, t)
  116. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  117. local startInterp, finishInterp;
  118. if cosTheta >= 0.0001 then
  119. if (1 - cosTheta) > 0.0001 then
  120. local theta = math.acos(cosTheta)
  121. local invSinTheta = 1/math.sin(theta)
  122. startInterp = math.sin((1-t)*theta)*invSinTheta
  123. finishInterp = math.sin(t*theta)*invSinTheta
  124. else
  125. startInterp = 1-t
  126. finishInterp = t
  127. end
  128. else
  129. if (1+cosTheta) > 0.0001 then
  130. local theta = math.acos(-cosTheta)
  131. local invSinTheta = 1/math.sin(theta)
  132. startInterp = math.sin((t-1)*theta)*invSinTheta
  133. finishInterp = math.sin(t*theta)*invSinTheta
  134. else
  135. startInterp = t-1
  136. finishInterp = t
  137. end
  138. end
  139. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  140. end
  141.  
  142. --Example: Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  143.  
  144. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  145. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  146. end
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153. --save shoulders
  154. RSH, LSH=nil, nil
  155. --welds
  156. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  157. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  158. LH=Torso["Left Hip"]
  159. RH=Torso["Right Hip"]
  160. TorsoColor=Torso.BrickColor
  161. function NoOutline(Part)
  162. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  163. end
  164. player=Player
  165. ch=Character
  166. RSH=ch.Torso["Right Shoulder"]
  167. LSH=ch.Torso["Left Shoulder"]
  168. --
  169. RSH.Parent=nil
  170. LSH.Parent=nil
  171. --
  172. RW.Name="Right Shoulder"
  173. RW.Part0=ch.Torso
  174. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  175. RW.C1=cf(0, 0.5, 0)
  176. RW.Part1=ch["Right Arm"]
  177. RW.Parent=ch.Torso
  178. --
  179. LW.Name="Left Shoulder"
  180. LW.Part0=ch.Torso
  181. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  182. LW.C1=cf(0, 0.5, 0)
  183. LW.Part1=ch["Left Arm"]
  184. LW.Parent=ch.Torso
  185.  
  186. Player=game:GetService('Players').LocalPlayer
  187. Character=Player.Character
  188. Mouse=Player:GetMouse()
  189. m=Instance.new('Model',Character)
  190.  
  191.  
  192. local function weldBetween(a, b)
  193. local weldd = Instance.new("ManualWeld")
  194. weldd.Part0 = a
  195. weldd.Part1 = b
  196. weldd.C0 = CFrame.new()
  197. weldd.C1 = b.CFrame:inverse() * a.CFrame
  198. weldd.Parent = a
  199. return weldd
  200. end
  201.  
  202.  
  203.  
  204. function RemoveOutlines(part)
  205. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  206. end
  207.  
  208.  
  209. part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size)
  210. local fp = it("Part")
  211. fp.formFactor = formfactor
  212. fp.Parent = parent
  213. fp.Reflectance = reflectance
  214. fp.Transparency = transparency
  215. fp.CanCollide = false
  216. fp.Locked = true
  217. fp.BrickColor = brickcolor
  218. fp.Name = name
  219. fp.Size = size
  220. fp.Position = Torso.Position
  221. NoOutline(fp)
  222. if fp.BrickColor == BrickColor.new("Dark indigo") then
  223. fp.Material = "Neon"
  224. else
  225. if fp.BrickColor == BrickColor.new("Fossil") then
  226. fp.BrickColor = BrickColor.new("Dark indigo")
  227. fp.Material = "Neon"
  228. else
  229. fp.Material = "Neon"
  230. end
  231. end
  232. fp:BreakJoints()
  233. return fp
  234. end
  235.  
  236. mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  237. local mesh = it(Mesh)
  238. mesh.Parent = part
  239. if Mesh == "SpecialMesh" then
  240. mesh.MeshType = meshtype
  241. mesh.MeshId = meshid
  242. end
  243. mesh.Offset = offset
  244. mesh.Scale = scale
  245. return mesh
  246. end
  247.  
  248. weld = function(parent, part0, part1, c0)
  249. local weld = it("Weld")
  250. weld.Parent = parent
  251. weld.Part0 = part0
  252. weld.Part1 = part1
  253. weld.C0 = c0
  254. return weld
  255. end
  256.  
  257. F1 = Instance.new("Folder", Character)
  258. F1.Name = "Effects Folder"
  259. F2 = Instance.new("Folder", F1)
  260. F2.Name = "Effects"
  261. Triangle = function(a, b, c)
  262. end
  263.  
  264. MagicBlock = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  265. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
  266. prt.Anchored = true
  267. prt.CanCollide = false
  268. prt.CFrame = cframe
  269. prt.Name = "prt"
  270. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  271. game:GetService("Debris"):AddItem(prt, 5)
  272. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3})
  273. end
  274.  
  275.  
  276.  
  277. MagicCircle = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  278. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
  279. prt.Anchored = true
  280. prt.CanCollide = false
  281. prt.CFrame = cframe
  282. prt.Name = "prt"
  283. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  284. game:GetService("Debris"):AddItem(prt, 5)
  285. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3})
  286. end
  287.  
  288. MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  289. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
  290. prt.Anchored = true
  291. prt.CFrame = cframe
  292. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  293. game:GetService("Debris"):AddItem(prt, 5)
  294. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3})
  295. end
  296.  
  297. MagicCylinder = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  298. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt(0.2, 0.2, 0.2))
  299. prt.Anchored = true
  300. prt.CFrame = cframe
  301. msh = mesh("SpecialMesh", prt, "Head", "", vt(0, 0, 0), vt(x1, y1, z1))
  302. game:GetService("Debris"):AddItem(prt, 5)
  303. Effects[#Effects + 1] = {prt, "Cylinder", delay, x3, y3, z3}
  304. end
  305.  
  306. MagicCylinder2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  307. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt(0.2, 0.2, 0.2))
  308. prt.Anchored = true
  309. prt.CFrame = cframe
  310. msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  311. game:GetService("Debris"):AddItem(prt, 5)
  312. Effects[#Effects + 1] = {prt, "Cylinder", delay, x3, y3, z3}
  313. end
  314.  
  315. MagicBlood = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  316. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
  317. prt.Anchored = true
  318. prt.CFrame = cframe
  319. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  320. game:GetService("Debris"):AddItem(prt, 5)
  321. table.insert(Effects, {prt, "Blood", delay, x3, y3, z3})
  322. end
  323.  
  324. ElecEffect = function(cff, x, y, z)
  325. local prt = part(3, F2, 0, 0, BrickColor.new("Dark indigo"), "Part", vt(1, 1, 1))
  326. prt.Anchored = true
  327. prt.CFrame = cff * cf(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  328. prt.CFrame = cf(prt.Position)
  329. game:GetService("Debris"):AddItem(prt, 2)
  330. xval = math.random() / 2
  331. yval = math.random() / 2
  332. zval = math.random() / 2
  333. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(xval, yval, zval))
  334. Effects[#Effects + 1] = {prt, "Elec", 0.1, x, y, z, xval, yval, zval}
  335. end
  336.  
  337.  
  338.  
  339.  
  340. ArtificialHB = Instance.new("BindableEvent", script)
  341. ArtificialHB.Name = "Heartbeat"
  342.  
  343. script:WaitForChild("Heartbeat")
  344.  
  345. frame = 1 / 60
  346. tf = 0
  347. allowframeloss = false
  348. tossremainder = false
  349. lastframe = tick()
  350. script.Heartbeat:Fire()
  351.  
  352. game:GetService("RunService").Heartbeat:connect(function(s, p)
  353. tf = tf + s
  354. if tf >= frame then
  355. if allowframeloss then
  356. script.Heartbeat:Fire()
  357. lastframe = tick()
  358. else
  359. for i = 1, math.floor(tf / frame) do
  360. script.Heartbeat:Fire()
  361. end
  362. lastframe = tick()
  363. end
  364. if tossremainder then
  365. tf = 0
  366. else
  367. tf = tf - frame * math.floor(tf / frame)
  368. end
  369. end
  370. end)
  371.  
  372. function swait(num)
  373. if num == 0 or num == nil then
  374. ArtificialHB.Event:wait()
  375. else
  376. for i = 0, num do
  377. ArtificialHB.Event:wait()
  378. end
  379. end
  380. end
  381.  
  382.  
  383.  
  384. function Dmgfunc(player,mindamage,maxdamage,waait)
  385.  
  386. dodamage = coroutine.wrap(function()
  387.  
  388. if player ~= Character and player:FindFirstChild("IsHit") == nil then
  389.  
  390. Max = mindamage + math.random(-mindamage,maxdamage)
  391.  
  392. player.Humanoid.Health = player.Humanoid.Health - Max
  393.  
  394.  
  395. local thiing = Instance.new("ObjectValue",player)
  396. thiing.Name = "IsHit"
  397. deb:AddItem(thiing,waait)
  398.  
  399.  
  400. end
  401. end)
  402. dodamage(player,mindamage,maxdamage,waait)
  403. end
  404.  
  405.  
  406.  
  407. local handee = Instance.new("Part")
  408. handee.Parent = Character
  409. handee.Size = Vector3.new(1, 0.3, 1.4)
  410. handee.Archivable = true
  411. handee.Transparency = 0
  412. handee.CanCollide = false
  413. handee.BrickColor = BrickColor.new("Really black")
  414. handee.Material = "SmoothPlastic"
  415. local handeemesh = Instance.new("BlockMesh",handee)
  416. local handeedecal = Instance.new("Decal",handee)
  417. handeedecal.Texture = "rbxassetid://45214611"
  418. local handeedecal2 = Instance.new("Decal",handee)
  419. handeedecal2.Texture = "rbxassetid://45214611"
  420. handeedecal.Face = "Top"
  421. handeedecal2.Face = "Bottom"
  422. local handeeweld = Instance.new("Weld")
  423. handeeweld.Parent = handee
  424. handeeweld.Part0 = RightArm
  425. handeeweld.Part1 = handee
  426. handeeweld.C1 = CFrame.new(0, -0.64, 0.96)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0))
  427. handeeweld.Part0 = RightArm
  428.  
  429.  
  430.  
  431.  
  432. local music = Instance.new("Sound",Torso)
  433. music.Volume = 1.5
  434. music.PlaybackSpeed = 1
  435. music.Pitch = 1
  436. music.SoundId = "rbxassetid://143994596"--music
  437. music:Play()
  438. music.Name = "The Skid Rekter Music"
  439. music.Looped = true
  440.  
  441.  
  442.  
  443. local size = 0
  444. function card()
  445. local Card = Instance.new("Part",Workspace)
  446. Card.Name = "Shell"
  447. Card.Anchored = false
  448. Card.CanCollide = false
  449. Card.Transparency = 0
  450.  
  451. k = math.random(1,5)
  452. if k == 1 then
  453. Card.BrickColor = BrickColor.new("Toothpaste")
  454. text.Text = "DRAW 69!"
  455. elseif k == 2 then
  456. Card.BrickColor = BrickColor.new("Lime green")
  457. text.Text = "UNO TRAP CARD - HELLA GEY!"
  458. elseif k == 3 then
  459. Card.BrickColor = BrickColor.new("Bright red")
  460. text.Text = "UNO SKIP!"
  461. elseif k == 4 then
  462. Card.BrickColor = BrickColor.new("Really black")
  463. text.Text = "WILD!!!!!!"
  464. elseif k == 5 then
  465. Card.BrickColor = BrickColor.new("New Yeller")
  466. text.Text = "UNO REVERSE!!!"
  467. end
  468.  
  469.  
  470. Card.Size = Vector3.new(1.5,0.05,1)
  471. Card.Material = "SmoothPlastic"
  472. Card.CFrame = handee.CFrame*CFrame.new(0,0,0)
  473. Card.CFrame = CFrame.new(Card.Position,Torso.CFrame.p)
  474. local bv = Instance.new("BodyVelocity",Card)
  475. bv.maxForce = Vector3.new(99999,99999,99999)
  476. bv.velocity = Torso.CFrame.lookVector*120
  477. deb:AddItem(Card, 7)
  478.  
  479.  
  480. Card.Touched:connect(function(hit)
  481. if (hit.Parent.Parent ~= Character and hit.Parent ~= Character and hit.Name ~= "Card" and hit.Name ~= "prt" and Card.Anchored == false) then
  482. Card.Anchored = true
  483. Card.Transparency = 1
  484.  
  485.  
  486. local orbexplode = Instance.new("Sound", Card)
  487. orbexplode.Volume = 0.4
  488. orbexplode.PlayOnRemove = true
  489. orbexplode.SoundId = "http://roblox.com/asset/?id=929619479"
  490. orbexplode.Pitch = 1
  491. orbexplode:Destroy()
  492. deb:AddItem(orbexplode, 4)
  493.  
  494. local Explode = Instance.new("Explosion")
  495. Explode.Position = Card.Position
  496. Explode.Parent = Workspace
  497. Explode.BlastPressure = 0
  498. Explode.BlastRadius = Card.Size.X *1.6
  499. Explode.Visible = false
  500.  
  501. Card:Destroy()
  502. Explode.Hit:connect(function(hit)
  503. if hit.Parent:FindFirstChild("Humanoid")~=nil and hit.Parent:FindFirstChild("IsHit")==nil then
  504. Dmgfunc(hit.Parent,10,20,.01)
  505. end
  506. end)
  507. MagicCircle(BrickColor.new("White"), Card.CFrame * cf(0, 0, 0), 1, 1, 1, 4.2, 4.2, 4.2, 0.02)
  508. end
  509. end)
  510.  
  511. end
  512.  
  513.  
  514.  
  515. mouse.KeyDown:connect(function(key)
  516. if key == "e" and attack == false then
  517. attack = true
  518. card()
  519. for i = 0,0.3,0.1 do
  520. swait()
  521. LW.C0 = clerp(LW.C0, CFrame.new(-1.1, 0.65, -0.5) * angles(math.rad(90), math.rad(0), math.rad(0)), 0.8)
  522. end
  523. for i = 0,0.3,0.1 do
  524. swait()
  525. LW.C0 = clerp(LW.C0, CFrame.new(-1.1, 0.65, -0.5) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.8)
  526. end
  527. attack = false
  528. end
  529. end)
  530.  
  531.  
  532.  
  533.  
  534. mouse.KeyDown:connect(function(key)
  535. if key == "f" and attack == false then
  536. if music.Volume == 1.5 then
  537. music.Volume = 0
  538. else
  539. music.Volume = 1.5
  540. end
  541. end
  542. end)
  543.  
  544. -----RUN BUTTON XDDDDDDDD
  545. mouse.KeyDown:connect(function(key)
  546. if string.byte(key) == 48 then
  547. Character.Humanoid.WalkSpeed = 25
  548. end
  549. end)
  550.  
  551. mouse.KeyUp:connect(function(key)
  552. if string.byte(key) == 48 then
  553. Character.Humanoid.WalkSpeed = 16
  554.  
  555. end
  556. end)
  557. -----XXDDDDDDDDXDDXXDXDXDXDXDDXDXD
  558.  
  559.  
  560.  
  561.  
  562.  
  563.  
  564. while true do
  565. swait()
  566. if attack == false then
  567. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.34, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.1)
  568. LW.C0 = clerp(LW.C0, CFrame.new(-1.1, 0.65, -0.5) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.1)
  569. end
  570. if 0 < #Effects then
  571. for e = 1, #Effects do
  572. if Effects[e] ~= nil then
  573. local Thing = Effects[e]
  574. if Thing ~= nil then
  575. local Part = Thing[1]
  576. local Mode = Thing[2]
  577. local Delay = Thing[3]
  578. local IncX = Thing[4]
  579. local IncY = Thing[5]
  580. local IncZ = Thing[6]
  581. if Thing[1].Transparency <= 1 then
  582. if Thing[2] == "Block1" then
  583. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-80, 80), math.random(-80, 80), math.random(-80, 80))
  584. Mesh = Thing[1]:FindFirstChild("Mesh")
  585. if not Mesh then
  586. Mesh = Instance.new("BlockMesh")
  587. end
  588. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  589. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  590. elseif Thing[2] == "Cylinder" then
  591. Mesh = Thing[1]:FindFirstChild("Mesh")
  592. if not Mesh then
  593. Mesh = Instance.new("BlockMesh")
  594. end
  595. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  596. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  597. elseif Thing[2] == "Blood" then
  598. Mesh = Thing[1]:FindFirstChild("Mesh")
  599. if not Mesh then
  600. Mesh = Instance.new("BlockMesh")
  601. end
  602. Thing[1].CFrame = Thing[1].CFrame * cf(0, 0.5, 0)
  603. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  604. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  605. elseif Thing[2] == "Elec" then
  606. Mesh = Thing[1]:FindFirstChild("Mesh")
  607. if not Mesh then
  608. Mesh = Instance.new("BlockMesh")
  609. end
  610. Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
  611. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  612. elseif Thing[2] == "Disappear" then
  613. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  614. end
  615. else
  616. Part.Parent = nil
  617. Part:Destroy()
  618. --game:GetService("Debris"):AddItem(Part, 0)
  619. table.remove(Effects, e)
  620. end
  621. end
  622. end
  623. end
  624. end
  625. end
Add Comment
Please, Sign In to add comment