Advertisement
firasj082

Uno script

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