Advertisement
joe201501

Op Uno card

Mar 23rd, 2018
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 = 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
  391.  
  392.  
  393. player.Humanoid.Health = -100950943839860349850394580349583094850394850394853049583049583049583045
  394.  
  395.  
  396. local thiing = Instance.new("ObjectValue",player)
  397. thiing.Name = "IsHit"
  398. deb:AddItem(thiing,waait)
  399.  
  400.  
  401. end
  402. end)
  403. dodamage(player,mindamage,maxdamage,waait)
  404. end
  405.  
  406.  
  407.  
  408. local handee = Instance.new("Part")
  409. handee.Parent = Character
  410. handee.Size = Vector3.new(1, 0.3, 1.4)
  411. handee.Archivable = true
  412. handee.Transparency = 0
  413. handee.CanCollide = false
  414. handee.BrickColor = BrickColor.new("Really black")
  415. handee.Material = "SmoothPlastic"
  416. local handeemesh = Instance.new("BlockMesh",handee)
  417. local handeedecal = Instance.new("Decal",handee)
  418. handeedecal.Texture = "rbxassetid://106353556"
  419. local handeedecal2 = Instance.new("Decal",handee)
  420. handeedecal2.Texture = "rbxassetid://106353556"
  421. handeedecal.Face = "Top"
  422. handeedecal2.Face = "Bottom"
  423. local handeeweld = Instance.new("Weld")
  424. handeeweld.Parent = handee
  425. handeeweld.Part0 = RightArm
  426. handeeweld.Part1 = handee
  427. handeeweld.C1 = CFrame.new(0, -0.64, 0.96)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0))
  428. handeeweld.Part0 = RightArm
  429.  
  430.  
  431.  
  432.  
  433. local music = Instance.new("Sound",Torso)
  434. music.Volume = 10000
  435. music.PlaybackSpeed = 1
  436. music.Pitch = 1
  437. music.SoundId = "rbxassetid://1433232027"--music
  438. music:Play()
  439. music.Name = "ddd"
  440. music.Looped = true
  441.  
  442.  
  443.  
  444. local size = 0
  445. function card()
  446. local Card = Instance.new("Part",Workspace)
  447. Card.Name = "Shell"
  448. Card.Anchored = false
  449. Card.CanCollide = false
  450. Card.Transparency = 0
  451.  
  452. local carddecal = Instance.new("Decal",Card)
  453. carddecal.Texture = "rbxassetid://106353556"
  454. carddecal.Face = "Top"
  455.  
  456. k = math.random(1,6)
  457. if k == 1 then
  458. Card.BrickColor = BrickColor.new("Toothpaste")
  459. text.Text = "DRAW 69!"
  460. elseif k == 2 then
  461. Card.BrickColor = BrickColor.new("Lime green")
  462. text.Text = "UNO TRAP CARD - HELLA GEY!"
  463. elseif k == 3 then
  464. Card.BrickColor = BrickColor.new("Bright red")
  465. text.Text = "UNO SKIP!"
  466. elseif k == 4 then
  467. Card.BrickColor = BrickColor.new("Really black")
  468. text.Text = "WILD!!!!!!"
  469. elseif k == 5 then
  470. Card.BrickColor = BrickColor.new("New Yeller")
  471. text.Text = "UNO REVERSE!!!"
  472. elseif k == 6 then
  473. Card.BrickColor = BrickColor.new("New Yeller")
  474. text.Text = "MASTER SPARK"
  475. elseif k == 7 then
  476. Card.BrickColor = BrickColor.new("Really red")
  477. text.Text = "Spell card *Hell's Artificial Sun*"
  478. end
  479.  
  480.  
  481. Card.Size = Vector3.new(1.5,0.05,1)
  482. Card.Material = "SmoothPlastic"
  483. Card.CFrame = handee.CFrame*CFrame.new(0,0,0)
  484. Card.CFrame = CFrame.new(Card.Position,Torso.CFrame.p)
  485. local bv = Instance.new("BodyVelocity",Card)
  486. bv.maxForce = Vector3.new(99999,99999,99999)
  487. bv.velocity = Torso.CFrame.lookVector*120
  488. deb:AddItem(Card, 7)
  489.  
  490.  
  491. Card.Touched:connect(function(hit)
  492. if (hit.Parent.Parent ~= Character and hit.Parent ~= Character and hit.Name ~= "Card" and hit.Name ~= "prt" and Card.Anchored == false) then
  493. Card.Anchored = true
  494. Card.Transparency = 1
  495.  
  496.  
  497. local orbexplode = Instance.new("Sound", Card)
  498. orbexplode.Volume = 100
  499. orbexplode.PlayOnRemove = true
  500. orbexplode.SoundId = "http://roblox.com/asset/?id=138251332"
  501. orbexplode.Pitch = 1
  502. orbexplode:Destroy()
  503. deb:AddItem(orbexplode, 4)
  504.  
  505. local Explode = Instance.new("Explosion")
  506. Explode.Position = Card.Position
  507. Explode.Parent = Workspace
  508. Explode.BlastPressure = 0
  509. Explode.BlastRadius = Card.Size.X *1.6
  510. Explode.Visible = false
  511.  
  512. Card:Destroy()
  513. Explode.Hit:connect(function(hit)
  514. if hit.Parent:FindFirstChild("Humanoid")~=nil and hit.Parent:FindFirstChild("IsHit")==nil then
  515. Dmgfunc(hit.Parent,10,20,.01)
  516. end
  517. end)
  518. MagicCircle(BrickColor.new("Really red"), Card.CFrame * cf(0, 0, 0), 1, 1, 1, 4.2, 4.2, 4.2, 0.02)
  519. end
  520. end)
  521.  
  522. end
  523.  
  524.  
  525.  
  526. mouse.KeyDown:connect(function(key)
  527. if key == "e" and attack == false then
  528. attack = true
  529. card()
  530. for i = 0,0.3,0.1 do
  531. swait()
  532. 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)
  533. end
  534. for i = 0,0.3,0.1 do
  535. swait()
  536. 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)
  537. end
  538. attack = false
  539. end
  540. end)
  541.  
  542.  
  543.  
  544.  
  545. mouse.KeyDown:connect(function(key)
  546. if key == "f" and attack == false then
  547. if music.Volume == 1.5 then
  548. music.Volume = 0
  549. else
  550. music.Volume = 1.5
  551. end
  552. end
  553. end)
  554.  
  555. -----RUN BUTTON XDDDDDDDD
  556. mouse.KeyDown:connect(function(key)
  557. if string.byte(key) == 48 then
  558. Character.Humanoid.WalkSpeed = 25
  559. end
  560. end)
  561.  
  562. mouse.KeyUp:connect(function(key)
  563. if string.byte(key) == 48 then
  564. Character.Humanoid.WalkSpeed = 16
  565.  
  566. end
  567. end)
  568. -----XXDDDDDDDDXDDXXDXDXDXDXDDXDXD
  569.  
  570.  
  571.  
  572.  
  573.  
  574.  
  575. while true do
  576. swait()
  577. if attack == false then
  578. 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)
  579. 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)
  580. end
  581. if 0 < #Effects then
  582. for e = 1, #Effects do
  583. if Effects[e] ~= nil then
  584. local Thing = Effects[e]
  585. if Thing ~= nil then
  586. local Part = Thing[1]
  587. local Mode = Thing[2]
  588. local Delay = Thing[3]
  589. local IncX = Thing[4]
  590. local IncY = Thing[5]
  591. local IncZ = Thing[6]
  592. if Thing[1].Transparency <= 1 then
  593. if Thing[2] == "Block1" then
  594. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-80, 80), math.random(-80, 80), math.random(-80, 80))
  595. Mesh = Thing[1]:FindFirstChild("Mesh")
  596. if not Mesh then
  597. Mesh = Instance.new("BlockMesh")
  598. end
  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] == "Cylinder" 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[4], Thing[5], Thing[6])
  607. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  608. elseif Thing[2] == "Blood" then
  609. Mesh = Thing[1]:FindFirstChild("Mesh")
  610. if not Mesh then
  611. Mesh = Instance.new("BlockMesh")
  612. end
  613. Thing[1].CFrame = Thing[1].CFrame * cf(0, 0.5, 0)
  614. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  615. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  616. elseif Thing[2] == "Elec" then
  617. Mesh = Thing[1]:FindFirstChild("Mesh")
  618. if not Mesh then
  619. Mesh = Instance.new("BlockMesh")
  620. end
  621. Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
  622. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  623. elseif Thing[2] == "Disappear" then
  624. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  625. end
  626. else
  627. Part.Parent = nil
  628. Part:Destroy()
  629. --game:GetService("Debris"):AddItem(Part, 0)
  630. table.remove(Effects, e)
  631. end
  632. end
  633. end
  634. end
  635. end
  636. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement