ColorblindRBLX

UNO

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