Advertisement
joe201501

Uno Touhou card with backup key

Mar 23rd, 2018
227
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.  
  64. text.Text = "Touhou Uno card"
  65.  
  66. deb = game:GetService("Debris")
  67.  
  68. function clerp(a,b,t)
  69. local qa = {QuaternionFromCFrame(a)}
  70. local qb = {QuaternionFromCFrame(b)}
  71. local ax, ay, az = a.x, a.y, a.z
  72. local bx, by, bz = b.x, b.y, b.z
  73. local _t = 1-t
  74. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  75. end
  76.  
  77. function QuaternionFromCFrame(cf)
  78. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  79. local trace = m00 + m11 + m22
  80. if trace > 0 then
  81. local s = math.sqrt(1 + trace)
  82. local recip = 0.5/s
  83. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  84. else
  85. local i = 0
  86. if m11 > m00 then
  87. i = 1
  88. end
  89. if m22 > (i == 0 and m00 or m11) then
  90. i = 2
  91. end
  92. if i == 0 then
  93. local s = math.sqrt(m00-m11-m22+1)
  94. local recip = 0.5/s
  95. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  96. elseif i == 1 then
  97. local s = math.sqrt(m11-m22-m00+1)
  98. local recip = 0.5/s
  99. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  100. elseif i == 2 then
  101. local s = math.sqrt(m22-m00-m11+1)
  102. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  103. end
  104. end
  105. end
  106.  
  107. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  108. local xs, ys, zs = x + x, y + y, z + z
  109. local wx, wy, wz = w*xs, w*ys, w*zs
  110. local xx = x*xs
  111. local xy = x*ys
  112. local xz = x*zs
  113. local yy = y*ys
  114. local yz = y*zs
  115. local zz = z*zs
  116. 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))
  117. end
  118. function QuaternionSlerp(a, b, t)
  119. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  120. local startInterp, finishInterp;
  121. if cosTheta >= 0.0001 then
  122. if (1 - cosTheta) > 0.0001 then
  123. local theta = math.acos(cosTheta)
  124. local invSinTheta = 1/math.sin(theta)
  125. startInterp = math.sin((1-t)*theta)*invSinTheta
  126. finishInterp = math.sin(t*theta)*invSinTheta
  127. else
  128. startInterp = 1-t
  129. finishInterp = t
  130. end
  131. else
  132. if (1+cosTheta) > 0.0001 then
  133. local theta = math.acos(-cosTheta)
  134. local invSinTheta = 1/math.sin(theta)
  135. startInterp = math.sin((t-1)*theta)*invSinTheta
  136. finishInterp = math.sin(t*theta)*invSinTheta
  137. else
  138. startInterp = t-1
  139. finishInterp = t
  140. end
  141. end
  142. 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
  143. end
  144.  
  145. --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)
  146.  
  147. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  148. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  149. end
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156. --save shoulders
  157. RSH, LSH=nil, nil
  158. --welds
  159. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  160. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  161. LH=Torso["Left Hip"]
  162. RH=Torso["Right Hip"]
  163. TorsoColor=Torso.BrickColor
  164. function NoOutline(Part)
  165. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  166. end
  167. player=Player
  168. ch=Character
  169. RSH=ch.Torso["Right Shoulder"]
  170. LSH=ch.Torso["Left Shoulder"]
  171. --
  172. RSH.Parent=nil
  173. LSH.Parent=nil
  174. --
  175. RW.Name="Right Shoulder"
  176. RW.Part0=ch.Torso
  177. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  178. RW.C1=cf(0, 0.5, 0)
  179. RW.Part1=ch["Right Arm"]
  180. RW.Parent=ch.Torso
  181. --
  182. LW.Name="Left Shoulder"
  183. LW.Part0=ch.Torso
  184. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  185. LW.C1=cf(0, 0.5, 0)
  186. LW.Part1=ch["Left Arm"]
  187. LW.Parent=ch.Torso
  188.  
  189. Player=game:GetService('Players').LocalPlayer
  190. Character=Player.Character
  191. Mouse=Player:GetMouse()
  192. m=Instance.new('Model',Character)
  193.  
  194.  
  195. local function weldBetween(a, b)
  196. local weldd = Instance.new("ManualWeld")
  197. weldd.Part0 = a
  198. weldd.Part1 = b
  199. weldd.C0 = CFrame.new()
  200. weldd.C1 = b.CFrame:inverse() * a.CFrame
  201. weldd.Parent = a
  202. return weldd
  203. end
  204.  
  205.  
  206.  
  207. function RemoveOutlines(part)
  208. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  209. end
  210.  
  211.  
  212. part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size)
  213. local fp = it("Part")
  214. fp.formFactor = formfactor
  215. fp.Parent = parent
  216. fp.Reflectance = reflectance
  217. fp.Transparency = transparency
  218. fp.CanCollide = false
  219. fp.Locked = true
  220. fp.BrickColor = brickcolor
  221. fp.Name = name
  222. fp.Size = size
  223. fp.Position = Torso.Position
  224. NoOutline(fp)
  225. if fp.BrickColor == BrickColor.new("Dark indigo") then
  226. fp.Material = "Neon"
  227. else
  228. if fp.BrickColor == BrickColor.new("Fossil") then
  229. fp.BrickColor = BrickColor.new("Dark indigo")
  230. fp.Material = "Neon"
  231. else
  232. fp.Material = "Neon"
  233. end
  234. end
  235. fp:BreakJoints()
  236. return fp
  237. end
  238.  
  239. mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  240. local mesh = it(Mesh)
  241. mesh.Parent = part
  242. if Mesh == "SpecialMesh" then
  243. mesh.MeshType = meshtype
  244. mesh.MeshId = meshid
  245. end
  246. mesh.Offset = offset
  247. mesh.Scale = scale
  248. return mesh
  249. end
  250.  
  251. weld = function(parent, part0, part1, c0)
  252. local weld = it("Weld")
  253. weld.Parent = parent
  254. weld.Part0 = part0
  255. weld.Part1 = part1
  256. weld.C0 = c0
  257. return weld
  258. end
  259.  
  260. F1 = Instance.new("Folder", Character)
  261. F1.Name = "Effects Folder"
  262. F2 = Instance.new("Folder", F1)
  263. F2.Name = "Effects"
  264. Triangle = function(a, b, c)
  265. end
  266.  
  267. MagicBlock = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  268. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
  269. prt.Anchored = true
  270. prt.CanCollide = false
  271. prt.CFrame = cframe
  272. prt.Name = "prt"
  273. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  274. game:GetService("Debris"):AddItem(prt, 5)
  275. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3})
  276. end
  277.  
  278.  
  279.  
  280. MagicCircle = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  281. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
  282. prt.Anchored = true
  283. prt.CanCollide = false
  284. prt.CFrame = cframe
  285. prt.Name = "prt"
  286. local msh = mesh("SpecialMesh", prt, "Sphere", "", 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. MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  292. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
  293. prt.Anchored = true
  294. prt.CFrame = cframe
  295. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  296. game:GetService("Debris"):AddItem(prt, 5)
  297. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3})
  298. end
  299.  
  300. MagicCylinder = 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("SpecialMesh", prt, "Head", "", 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. MagicCylinder2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  310. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt(0.2, 0.2, 0.2))
  311. prt.Anchored = true
  312. prt.CFrame = cframe
  313. msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  314. game:GetService("Debris"):AddItem(prt, 5)
  315. Effects[#Effects + 1] = {prt, "Cylinder", delay, x3, y3, z3}
  316. end
  317.  
  318. MagicBlood = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  319. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
  320. prt.Anchored = true
  321. prt.CFrame = cframe
  322. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  323. game:GetService("Debris"):AddItem(prt, 5)
  324. table.insert(Effects, {prt, "Blood", delay, x3, y3, z3})
  325. end
  326.  
  327. ElecEffect = function(cff, x, y, z)
  328. local prt = part(3, F2, 0, 0, BrickColor.new("Dark indigo"), "Part", vt(1, 1, 1))
  329. prt.Anchored = true
  330. prt.CFrame = cff * cf(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  331. prt.CFrame = cf(prt.Position)
  332. game:GetService("Debris"):AddItem(prt, 2)
  333. xval = math.random() / 2
  334. yval = math.random() / 2
  335. zval = math.random() / 2
  336. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(xval, yval, zval))
  337. Effects[#Effects + 1] = {prt, "Elec", 0.1, x, y, z, xval, yval, zval}
  338. end
  339.  
  340.  
  341.  
  342.  
  343. ArtificialHB = Instance.new("BindableEvent", script)
  344. ArtificialHB.Name = "Heartbeat"
  345.  
  346. script:WaitForChild("Heartbeat")
  347.  
  348. frame = 1 / 60
  349. tf = 0
  350. allowframeloss = false
  351. tossremainder = false
  352. lastframe = tick()
  353. script.Heartbeat:Fire()
  354.  
  355. game:GetService("RunService").Heartbeat:connect(function(s, p)
  356. tf = tf + s
  357. if tf >= frame then
  358. if allowframeloss then
  359. script.Heartbeat:Fire()
  360. lastframe = tick()
  361. else
  362. for i = 1, math.floor(tf / frame) do
  363. script.Heartbeat:Fire()
  364. end
  365. lastframe = tick()
  366. end
  367. if tossremainder then
  368. tf = 0
  369. else
  370. tf = tf - frame * math.floor(tf / frame)
  371. end
  372. end
  373. end)
  374.  
  375. function swait(num)
  376. if num == 0 or num == nil then
  377. ArtificialHB.Event:wait()
  378. else
  379. for i = 0, num do
  380. ArtificialHB.Event:wait()
  381. end
  382. end
  383. end
  384.  
  385.  
  386.  
  387. function Dmgfunc(player,mindamage,maxdamage,waait)
  388.  
  389. dodamage = coroutine.wrap(function()
  390.  
  391. if player ~= Character and player:FindFirstChild("IsHit") == nil then
  392.  
  393. Max = 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
  394.  
  395. player.Humanoid.Health = player.Humanoid.Health - Max
  396.  
  397.  
  398. local thiing = Instance.new("ObjectValue",player)
  399. thiing.Name = "IsHit"
  400. deb:AddItem(thiing,waait)
  401.  
  402.  
  403. end
  404. end)
  405. dodamage(player,mindamage,maxdamage,waait)
  406. end
  407.  
  408.  
  409.  
  410. local handee = Instance.new("Part")
  411. handee.Parent = Character
  412. handee.Size = Vector3.new(1, 0.3, 1.4)
  413. handee.Archivable = true
  414. handee.Transparency = 0
  415. handee.CanCollide = false
  416. handee.BrickColor = BrickColor.new("Really black")
  417. handee.Material = "SmoothPlastic"
  418. local handeemesh = Instance.new("BlockMesh",handee)
  419. local handeedecal = Instance.new("Decal",handee)
  420. handeedecal.Texture = "rbxassetid://106353556"
  421. local handeedecal2 = Instance.new("Decal",handee)
  422. handeedecal2.Texture = "rbxassetid://106353556"
  423. handeedecal.Face = "Top"
  424. handeedecal2.Face = "Bottom"
  425. local handeeweld = Instance.new("Weld")
  426. handeeweld.Parent = handee
  427. handeeweld.Part0 = RightArm
  428. handeeweld.Part1 = handee
  429. handeeweld.C1 = CFrame.new(0, -0.64, 0.96)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0))
  430. handeeweld.Part0 = RightArm
  431.  
  432.  
  433.  
  434.  
  435. local music = Instance.new("Sound",Torso)
  436. music.Volume = 1.5
  437. music.PlaybackSpeed = 1
  438. music.Pitch = 1
  439. music.SoundId = "rbxassetid://1433232027"--music
  440. music:Play()
  441. music.Name = "music"
  442. music.Looped = true
  443.  
  444.  
  445.  
  446. local size = 0
  447. function card()
  448. local Card = Instance.new("Part",Workspace)
  449. Card.Name = "Shell"
  450. Card.Anchored = false
  451. Card.CanCollide = false
  452. Card.Transparency = 0
  453.  
  454. k = math.random(1,6)
  455. if k == 1 then
  456. Card.BrickColor = BrickColor.new("Toothpaste")
  457. text.Text = "Cyan Bullet"
  458. elseif k == 2 then
  459. Card.BrickColor = BrickColor.new("Lime green")
  460. text.Text = "Green Bullet"
  461. elseif k == 3 then
  462. Card.BrickColor = BrickColor.new("Bright red")
  463. text.Text = "Red Bullet"
  464. elseif k == 4 then
  465. Card.BrickColor = BrickColor.new("Really black")
  466. text.Text = "Black Bullet"
  467. elseif k == 5 then
  468. Card.BrickColor = BrickColor.new("New Yeller")
  469. text.Text = "Yellow Bullet"
  470. end
  471.  
  472.  
  473. Card.Size = Vector3.new(2,2,2)
  474. Card.Material = "Neon"
  475. Card.CFrame = handee.CFrame*CFrame.new(0,0,0)
  476. Card.CFrame = CFrame.new(Card.Position,Torso.CFrame.p)
  477. mesh("SpecialMesh", Card, "Sphere", "", vt(0,0,0), vt(1,1,1))
  478. Card.Size = Vector3.new(1,1,1)
  479. local bv = Instance.new("BodyVelocity",Card)
  480. bv.maxForce = Vector3.new(99999,99999,99999)
  481. bv.velocity = Torso.CFrame.lookVector*120
  482. deb:AddItem(Card, 7)
  483.  
  484. local throw = Instance.new("Sound", Card)
  485. throw.Volume = 100
  486. throw.PlayOnRemove = true
  487. throw.SoundId = "http://roblox.com/asset/?id=929619479"
  488. throw.Pitch = 1
  489. throw:Destroy()
  490. deb:AddItem(throw, 4)
  491.  
  492.  
  493. Card.Touched:connect(function(hit)
  494. if (hit.Parent.Parent ~= Character and hit.Parent ~= Character and hit.Name ~= "Card" and hit.Name ~= "prt" and Card.Anchored == false) then
  495. Card.Anchored = true
  496. Card.Transparency = 1
  497.  
  498.  
  499. local orbexplode = Instance.new("Sound", Card)
  500. orbexplode.Volume = 100
  501. orbexplode.PlayOnRemove = true
  502. orbexplode.SoundId = "http://roblox.com/asset/?id=138251332"
  503. orbexplode.Pitch = 1
  504. orbexplode:Destroy()
  505. deb:AddItem(orbexplode, 4)
  506.  
  507. local Explode = Instance.new("Explosion")
  508. Explode.Position = Card.Position
  509. Explode.Parent = Workspace
  510. Explode.BlastPressure = 0
  511. Explode.BlastRadius = Card.Size.X *1.6
  512. Explode.Visible = false
  513.  
  514. Card:Destroy()
  515. Explode.Hit:connect(function(hit)
  516. if hit.Parent:FindFirstChild("Humanoid")~=nil and hit.Parent:FindFirstChild("IsHit")==nil then
  517. Dmgfunc(hit.Parent,10,20,.01)
  518. end
  519. end)
  520. MagicCircle(Card.BrickColor, Card.CFrame * cf(0, 0, 0), 1, 1, 1, 4.2, 4.2, 4.2, 0.02)
  521. end
  522. end)
  523.  
  524. end
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532. mouse.KeyDown:connect(function(key)
  533. if key == "e" and attack == false then
  534. attack = false
  535. card()
  536. for i = 0,0.3,0.1 do
  537. swait()
  538. 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)
  539. end
  540. for i = 0,0.3,0.1 do
  541. swait()
  542. 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)
  543. end
  544. attack = false
  545. end
  546. end)
  547.  
  548.  
  549.  
  550.  
  551. mouse.KeyDown:connect(function(key)
  552. if key == "q" and attack == false then
  553. attack = true
  554. card()
  555. for i = 0,0.3,0.1 do
  556. swait()
  557. 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)
  558. end
  559. for i = 0,0.3,0.1 do
  560. swait()
  561. 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)
  562. end
  563. card()
  564. for i = 0,0.3,0.1 do
  565. swait()
  566. 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)
  567. end
  568. for i = 0,0.3,0.1 do
  569. swait()
  570. 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)
  571. end
  572. card()
  573. for i = 0,0.3,0.1 do
  574. swait()
  575. 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)
  576. end
  577. for i = 0,0.3,0.1 do
  578. swait()
  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.8)
  580. end
  581. card()
  582. for i = 0,0.3,0.1 do
  583. swait()
  584. 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)
  585. end
  586. for i = 0,0.3,0.1 do
  587. swait()
  588. 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)
  589. end
  590. card()
  591. for i = 0,0.3,0.1 do
  592. swait()
  593. 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)
  594. end
  595. for i = 0,0.3,0.1 do
  596. swait()
  597. 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)
  598. end
  599. card()
  600. for i = 0,0.3,0.1 do
  601. swait()
  602. 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)
  603. end
  604. for i = 0,0.3,0.1 do
  605. swait()
  606. 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)
  607. end
  608. card()
  609. for i = 0,0.3,0.1 do
  610. swait()
  611. 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)
  612. end
  613. for i = 0,0.3,0.1 do
  614. swait()
  615. 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)
  616. end
  617. card()
  618. for i = 0,0.3,0.1 do
  619. swait()
  620. 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)
  621. end
  622. for i = 0,0.3,0.1 do
  623. swait()
  624. 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)
  625. end
  626. card()
  627. for i = 0,0.3,0.1 do
  628. swait()
  629. 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)
  630. end
  631. for i = 0,0.3,0.1 do
  632. swait()
  633. 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)
  634. end
  635. card()
  636. for i = 0,0.3,0.1 do
  637. swait()
  638. 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)
  639. end
  640. for i = 0,0.3,0.1 do
  641. swait()
  642. 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)
  643. end
  644. attack = false
  645.  
  646. end
  647. end)
  648.  
  649.  
  650.  
  651.  
  652. mouse.KeyDown:connect(function(key)
  653. if key == "f" and attack == false then
  654. if music.Volume == 1.5 then
  655. music.Volume = 0
  656. else
  657. music.Volume = 1.5
  658.  
  659. end
  660. if workspace:FindFirstChild("music") then else
  661. local backup = Instance.new("Sound",workspace)
  662. backup.SoundId = "rbxassetid://1433232027"
  663. backup.Looped =true
  664. music = backup
  665. music.Volume = 10000
  666. end
  667. end
  668. end)
  669.  
  670. -----RUN BUTTON XDDDDDDDD
  671. mouse.KeyDown:connect(function(key)
  672. if string.byte(key) == 48 then
  673. Character.Humanoid.WalkSpeed = 25
  674. end
  675. end)
  676.  
  677. mouse.KeyUp:connect(function(key)
  678. if string.byte(key) == 48 then
  679. Character.Humanoid.WalkSpeed = 16
  680.  
  681. end
  682. end)
  683. -----XXDDDDDDDDXDDXXDXDXDXDXDDXDXD
  684.  
  685.  
  686.  
  687.  
  688.  
  689.  
  690. while true do
  691. swait()
  692. if attack == false then
  693. 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)
  694. 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)
  695. end
  696. if 0 < #Effects then
  697. for e = 1, #Effects do
  698. if Effects[e] ~= nil then
  699. local Thing = Effects[e]
  700. if Thing ~= nil then
  701. local Part = Thing[1]
  702. local Mode = Thing[2]
  703. local Delay = Thing[3]
  704. local IncX = Thing[4]
  705. local IncY = Thing[5]
  706. local IncZ = Thing[6]
  707. if Thing[1].Transparency <= 1 then
  708. if Thing[2] == "Block1" then
  709. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-80, 80), math.random(-80, 80), math.random(-80, 80))
  710. Mesh = Thing[1]:FindFirstChild("Mesh")
  711. if not Mesh then
  712. Mesh = Instance.new("BlockMesh")
  713. end
  714. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  715. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  716. elseif Thing[2] == "Cylinder" then
  717. Mesh = Thing[1]:FindFirstChild("Mesh")
  718. if not Mesh then
  719. Mesh = Instance.new("BlockMesh")
  720. end
  721. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  722. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  723. elseif Thing[2] == "Blood" then
  724. Mesh = Thing[1]:FindFirstChild("Mesh")
  725. if not Mesh then
  726. Mesh = Instance.new("BlockMesh")
  727. end
  728. Thing[1].CFrame = Thing[1].CFrame * cf(0, 0.5, 0)
  729. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  730. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  731. elseif Thing[2] == "Elec" then
  732. Mesh = Thing[1]:FindFirstChild("Mesh")
  733. if not Mesh then
  734. Mesh = Instance.new("BlockMesh")
  735. end
  736. Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
  737. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  738. elseif Thing[2] == "Disappear" then
  739. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  740. end
  741. else
  742. Part.Parent = nil
  743. Part:Destroy()
  744. --game:GetService("Debris"):AddItem(Part, 0)
  745. table.remove(Effects, e)
  746. end
  747. end
  748. end
  749. end
  750. end
  751. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement