Advertisement
ItzPartapika

Big Smoke

Mar 25th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 63.69 KB | None | 0 0
  1. plr = game.Players.LocalPlayer
  2. local s = Instance.new("Sound",plr.Character)
  3. Player = game.Players.LocalPlayer
  4. Character = Player.Character
  5. Head = Character.Head
  6. s.Name = "Sound"
  7. s.SoundId = "http://www.roblox.com/asset/?id=1468547405"
  8. s.Volume = 10000000000000000000
  9. s.Pitch = 1.2
  10. s.Looped = true
  11. s.archivable = false
  12.  
  13. s.Parent = game.Workspace
  14.  
  15. pants = Instance.new("Pants", Character)
  16. shirt = Instance.new("Shirt", Character)
  17. pants.PantsTemplate = "http://www.roblox.com/asset/?id=95425972"
  18. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=586567751"
  19. Head.face.Texture = "http://www.roblox.com/asset/?id=30233519"
  20. DHandle = Instance.new("Part")
  21. DMesh = Instance.new("SpecialMesh")
  22. DWeld = Instance.new("Weld")
  23. DHandle.Parent = Character
  24. DHandle.Name = "Handle"
  25. DHandle.CanCollide = false
  26. DHandle.Locked = true
  27. DHandle.Size = Vector3.new(1.93, 1.77, 1.6)
  28. DMesh.Parent = DHandle
  29. DMesh.Scale = DMesh.Scale
  30. DWeld.Parent = DHandle
  31. DWeld.Name = "no"
  32. DWeld.Part0 = Head
  33. DWeld.Part1 = DHandle
  34. DWeld.C0 = CFrame.new(0,.4,0) * CFrame.fromEulerAnglesXYZ(math.rad(-1),0,0)VertexColor = Vector3.new(1,1,1)
  35. DHandle.Transparency = 0
  36. DMesh.MeshId = "http://www.roblox.com/asset/?id=91673856"
  37. DMesh.TextureId = "http://www.roblox.com/asset/?id=91673893"
  38. HHandle = Instance.new("Part")
  39. HMesh = Instance.new("SpecialMesh")
  40. HWeld = Instance.new("Weld")
  41. HHandle.Parent = Character
  42. HHandle.Name = "Handle"
  43. HHandle.CanCollide = false
  44. HHandle.Locked = true
  45. HHandle.Size = Vector3.new(1.93, 1.77, 1.6)
  46. HMesh.Parent = HHandle
  47. HMesh.Scale = HMesh.Scale
  48. HWeld.Parent = HHandle
  49. HWeld.Name = "no"
  50. HWeld.Part0 = Head
  51. HWeld.Part1 = HHandle
  52. HWeld.C0 = CFrame.new(0,.4,0) * CFrame.fromEulerAnglesXYZ(math.rad(-1),0,0)VertexColor = Vector3.new(1,1,1)
  53. HHandle.Transparency = 0
  54. HMesh.MeshId = "http://www.roblox.com/asset/?id=11419729"
  55. function chatfunc(text)
  56. local chat = coroutine.wrap(function()
  57. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  58. Character:FindFirstChild("TalkingBillBoard"):destroy()
  59. end
  60. local naeeym2 = Instance.new("BillboardGui",Character)
  61. naeeym2.Size = UDim2.new(0,100,0,40)
  62. naeeym2.StudsOffset = Vector3.new(0,3,0)
  63. naeeym2.Adornee = Character.Head
  64. naeeym2.Name = "TalkingBillBoard"
  65. local tecks2 = Instance.new("TextLabel",naeeym2)
  66. tecks2.BackgroundTransparency = 1
  67. tecks2.BorderSizePixel = 0
  68. tecks2.Text = ""
  69. tecks2.Font = "Fantasy"
  70. tecks2.TextSize = 30
  71. tecks2.TextStrokeTransparency = 0
  72. tecks2.TextColor3 = Color3.new(.6,0,0)
  73. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  74. tecks2.Size = UDim2.new(1,0,0.5,0)
  75. local tecks3 = Instance.new("TextLabel",naeeym2)
  76. tecks3.BackgroundTransparency = 1
  77. tecks3.BorderSizePixel = 0
  78. tecks3.Text = ""
  79. tecks3.Font = "Fantasy"
  80. tecks3.TextSize = 30
  81. tecks3.TextStrokeTransparency = 0
  82. tecks3.TextColor3 = Color3.new(.6,0,0)
  83. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  84. tecks3.Size = UDim2.new(1,0,0.5,0)
  85. for i = 1,string.len(text),1 do
  86. tecks2.Text = string.sub(text,1,i)
  87. tecks3.Text = string.sub(text,1,i)
  88. wait(0.01)
  89. end
  90. wait(2)
  91. for i = 1, 50 do
  92. wait()
  93. tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  94. tecks2.Rotation = tecks2.Rotation - .8
  95. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  96. tecks2.TextTransparency = tecks2.TextTransparency + .04
  97. tecks3.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  98. tecks3.Rotation = tecks2.Rotation + .8
  99. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  100. tecks3.TextTransparency = tecks2.TextTransparency + .04
  101. end
  102. naeeym2:Destroy()
  103. end)
  104. chat()
  105. end
  106. function onChatted(msg)
  107. chatfunc(msg)
  108. end
  109. Player.Chatted:connect(onChatted)
  110. local txt = Instance.new("BillboardGui", Character)
  111. local Character = Player.Character
  112. Face = Head.face
  113. txt.Adornee = Character .Head
  114. txt.Name = "_status"
  115. txt.Size = UDim2.new(2, 0, 1.2, 0)
  116. txt.StudsOffset = Vector3.new(-9, 8, 0)
  117. local text = Instance.new("TextLabel", txt)
  118. text.Size = UDim2.new(10, 0, 7, 0)
  119. text.FontSize = "Size24"
  120. text.TextScaled = true
  121. text.TextTransparency = 0
  122. text.BackgroundTransparency = 1
  123. text.TextTransparency = 0
  124. text.TextStrokeTransparency = 0
  125. text.Font = "Bodoni"
  126. text.TextStrokeColor3 = Color3.new(70,0,0)
  127. text.Text = "You picked the wrong house."
  128. wait(1)
  129. text.Text = "-Chara- -Dreemur-"
  130. wait(1)
  131.  
  132. s:play()
  133.  
  134. wait(0.016666666666667)
  135. Anim = nil
  136. cf = CFrame.new
  137. function c3(cz, cx, cc)
  138. return Color3.new(cz / 255, cx / 255, cc / 255)
  139. end
  140. angles = CFrame.Angles
  141. Player = game.Players.LocalPlayer
  142. Character = Player.Character
  143. Humanoid = Character.Humanoid
  144. mouse = Player:GetMouse()
  145. local LeftArm = Character["Left Arm"]
  146. RightArm = Character["Right Arm"]
  147. LeftLeg = Character["Left Leg"]
  148. RightLeg = Character["Right Leg"]
  149. Head = Character.Head
  150. Torso = Character.Torso
  151. RootPart = Character.HumanoidRootPart
  152. RootJoint = RootPart.RootJoint
  153. Humanoid.Animator:Destroy()
  154. Character:WaitForChild("Animate"):Destroy()
  155. NeckCF = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  156. RootCF = angles(-1.57, 0, 3.14)
  157. LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  158. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  159. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  160. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  161. RW = Instance.new("Weld")
  162. LW = Instance.new("Weld")
  163. RH = Torso["Right Hip"]
  164. LH = Torso["Left Hip"]
  165. Neck = Torso.Neck
  166. RSH = Torso["Right Shoulder"]
  167. LSH = Torso["Left Shoulder"]
  168. RSH.Parent = nil
  169. LSH.Parent = nil
  170. RW.Name = "Right Shoulder"
  171. RW.Part0 = Torso
  172. RW.C0 = cf(1.5, 0.5, 0)
  173. RW.C1 = cf(0, 0.5, 0)
  174. RW.Part1 = RightArm
  175. RW.Parent = Torso
  176. LW.Name = "Left Shoulder"
  177. LW.Part0 = Torso
  178. LW.C0 = cf(-1.5, 0.5, 0)
  179. LW.C1 = cf(0, 0.5, 0)
  180. LW.Part1 = LeftArm
  181. LW.Parent = Torso
  182. Effects = Instance.new("Folder", Character)
  183. Effects.Name = "Effects"
  184. Humanoid.WalkSpeed = 35 ----------------------------------------------------------------------------------------------Walk Speed
  185. partEffects, AttackHas, AttackNeeded, AttackCan = {}, {}, {}, {}
  186. AttackHas[1], AttackHas[2], AttackHas[3], AttackHas[4] = 1, 1, 1, 1
  187. AttackNeeded[1], AttackNeeded[2], AttackNeeded[3], AttackNeeded[4] = 1, 1, 1, 1
  188. AttackCan[1], AttackCan[2], AttackCan[3], AttackCan[4] = true, true, true, true
  189. sine = 0
  190. attackcounter = 1
  191. energyslashcounter = 1
  192. torvel = nil
  193. attacking = false
  194. hitfloor, posfloor = nil, nil
  195. tool = nil
  196. if script.Parent.ClassName == "HopperBin" then
  197. tool = script.Parent
  198. tool.Parent = Player.Backpack
  199. else
  200. tool = Instance.new("HopperBin", Player.Backpack)
  201. tool.Name = "Chara Knife"
  202. end
  203. hitbox = Instance.new("Part")
  204. hitbox.BrickColor = BrickColor.Black()
  205. hitbox.Transparency = 1
  206. hitbox.CanCollide = false
  207. hitbox.Anchored = false
  208. hitbox.Size = Vector3.new(3, 3, 4)
  209. meshes = {
  210. 3270017,
  211. 20329976,
  212. 448386996,
  213. 1095708,
  214. 1033714,
  215. 9756362
  216. }
  217. sounds = {
  218. {
  219. 320557413,
  220. 320557453,
  221. 320557487,
  222. 320557518,
  223. 320557537,
  224. 320557563,
  225. 233856146,
  226. 233856140
  227. },
  228. {
  229. 234365549,
  230. 234365573,
  231. 231917961,
  232. 231917950,
  233. 231917856,
  234. 231917863,
  235. 231917871
  236. },
  237. {
  238. 262562442,
  239. 231917806,
  240. 231917784
  241. },
  242. {
  243. 262562442,
  244. 233856048,
  245. 306247739
  246. }
  247. }
  248. ArtificialHB = Instance.new("BindableEvent", script)
  249. ArtificialHB.Name = "Heartbeat"
  250. script:WaitForChild("Heartbeat")
  251. frame = 0.025
  252. tf = 0
  253. allowframeloss = true
  254. tossremainder = false
  255. lastframe = tick()
  256. script.Heartbeat:Fire()
  257. game:GetService("RunService").Heartbeat:connect(function(s, p)
  258. tf = tf + s
  259. if tf >= frame then
  260. if allowframeloss then
  261. script.Heartbeat:Fire()
  262. lastframe = tick()
  263. else
  264. for i = 1, math.floor(tf / frame) do
  265. script.Heartbeat:Fire()
  266. end
  267. lastframe = tick()
  268. end
  269. if tossremainder then
  270. tf = 0
  271. else
  272. tf = tf - frame * math.floor(tf / frame)
  273. end
  274. end
  275. end)
  276. function swait(num)
  277. if num == 0 or num == nil then
  278. ArtificialHB.Event:wait()
  279. else
  280. for i = 0, num do
  281. ArtificialHB.Event:wait()
  282. end
  283. end
  284. end
  285. function thread(f)
  286. coroutine.resume(coroutine.create(f))
  287. end
  288. function clerp(a, b, t)
  289. local qa = {
  290. QuaternionFromCFrame(a)
  291. }
  292. local qb = {
  293. QuaternionFromCFrame(b)
  294. }
  295. local ax, ay, az = a.x, a.y, a.z
  296. local bx, by, bz = b.x, b.y, b.z
  297. local _t = 1 - t
  298. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  299. end
  300. function QuaternionFromCFrame(cf)
  301. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  302. local trace = m00 + m11 + m22
  303. if trace > 0 then
  304. local s = math.sqrt(1 + trace)
  305. local recip = 0.5 / s
  306. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  307. else
  308. local i = 0
  309. if m00 < m11 then
  310. i = 1
  311. end
  312. if m22 > (i == 0 and m00 or m11) then
  313. i = 2
  314. end
  315. if i == 0 then
  316. local s = math.sqrt(m00 - m11 - m22 + 1)
  317. local recip = 0.5 / s
  318. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  319. elseif i == 1 then
  320. local s = math.sqrt(m11 - m22 - m00 + 1)
  321. local recip = 0.5 / s
  322. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  323. elseif i == 2 then
  324. local s = math.sqrt(m22 - m00 - m11 + 1)
  325. local recip = 0.5 / s
  326. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  327. end
  328. end
  329. end
  330. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  331. local xs, ys, zs = x + x, y + y, z + z
  332. local wx, wy, wz = w * xs, w * ys, w * zs
  333. local xx = x * xs
  334. local xy = x * ys
  335. local xz = x * zs
  336. local yy = y * ys
  337. local yz = y * zs
  338. local zz = z * zs
  339. 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))
  340. end
  341. function QuaternionSlerp(a, b, t)
  342. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  343. local startInterp, finishInterp
  344. if cosTheta >= 1.0E-4 then
  345. if 1 - cosTheta > 1.0E-4 then
  346. local theta = math.acos(cosTheta)
  347. local invSinTheta = 1 / math.sin(theta)
  348. startInterp = math.sin((1 - t) * theta) * invSinTheta
  349. finishInterp = math.sin(t * theta) * invSinTheta
  350. else
  351. startInterp = 1 - t
  352. finishInterp = t
  353. end
  354. elseif 1 + cosTheta > 1.0E-4 then
  355. local theta = math.acos(-cosTheta)
  356. local invSinTheta = 1 / math.sin(theta)
  357. startInterp = math.sin((t - 1) * theta) * invSinTheta
  358. finishInterp = math.sin(t * theta) * invSinTheta
  359. else
  360. startInterp = t - 1
  361. finishInterp = t
  362. end
  363. 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
  364. end
  365. function rayCast(Pos, Dir, Max, Ignore)
  366. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  367. end
  368. function newPart(par, brick, transp, anch, canc, size, name, mat, ref)
  369. local p = Instance.new("Part")
  370. p.BrickColor = brick
  371. p.Transparency = transp
  372. p.Material = mat and mat or "SmoothPlastic"
  373. p.Reflectance = ref and ref or 0
  374. p.Anchored = anch
  375. p.CanCollide = canc
  376. p.Size = size
  377. p.TopSurface, p.BottomSurface, p.LeftSurface, p.RightSurface, p.FrontSurface, p.BackSurface = 10, 10, 10, 10, 10, 10
  378. p.Name = name
  379. p.CFrame = RootPart.CFrame
  380. p.Parent = par
  381. return p
  382. end
  383. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  384. local mesh = Instance.new(Mesh)
  385. mesh.Parent = part
  386. if Mesh == "SpecialMesh" then
  387. mesh.MeshType = meshtype
  388. if meshid then
  389. mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
  390. end
  391. end
  392. if offset then
  393. mesh.Offset = offset
  394. end
  395. mesh.Scale = scale
  396. return mesh
  397. end
  398. function weld(parent, part0, part1, c0, c1)
  399. local weld = Instance.new("Weld")
  400. weld.Parent = parent
  401. weld.Part0 = part0
  402. weld.Part1 = part1
  403. weld.C0 = c0
  404. if c1 then
  405. weld.C1 = c1
  406. end
  407. return weld
  408. end
  409. function randomangles(r)
  410. local random = math.rad((math.random() - 0.5) * 180)
  411. local randomangles = CFrame.Angles(random, random, random)
  412. if r and r == 0 then
  413. return angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  414. elseif r and r == 1 then
  415. return math.rad((math.random() - 0.5) * 180)
  416. elseif r and r == 2 then
  417. return math.random(-50, 50)
  418. else
  419. return randomangles
  420. end
  421. end
  422. function round(num)
  423. local a, b = math.modf(num)
  424. if num % 1 ~= 0 then
  425. return math.floor(num) + math.floor(b * 10 + 0.5) / 10
  426. else
  427. return math.floor(num)
  428. end
  429. end
  430. function sound(id, par, vol, dur, pit)
  431. coroutine.resume(coroutine.create(function()
  432. local sou = Instance.new("Sound", par or workspace)
  433. sou.Volume = vol
  434. sou.Pitch = pit or 1
  435. sou.SoundId = "http://www.roblox.com/asset/?id=" .. id
  436. swait()
  437. sou:play()
  438. wait(dur)
  439. sou:Destroy()
  440. end))
  441. end
  442. function findCloseHumanoid(centre, distance)
  443. local tab = {}
  444. for _, child in pairs(game.Workspace:GetChildren()) do
  445. if child:findFirstChild("Humanoid") and child:findFirstChild("Humanoid") ~= Humanoid and child:findFirstChild("Torso") then
  446. local vtors = child.Torso
  447. local mag = math.abs((vtors.Position - centre).magnitude)
  448. if distance >= mag then
  449. table.insert(tab, child.Humanoid)
  450. end
  451. end
  452. end
  453. return tab
  454. end
  455. function basicDamage(vhum, damage, colour)
  456. if not vhum or not vhum.Parent:findFirstChild("Humanoid") or vhum.Health <= 0 then
  457. return
  458. end
  459. vhum.Health = vhum.Health - damage
  460. local damagepart = Instance.new("Part", Effects)
  461. damagepart.Transparency = 1
  462. damagepart.Anchored = true
  463. damagepart.CanCollide = false
  464. damagepart.Size = Vector3.new(1, 1, 1)
  465. damagepart.Name = "DamagePart"
  466. damagepart.CFrame = vhum.Parent.Head.CFrame * CFrame.new(0, 1, 0)
  467. local g = Instance.new("BillboardGui", damagepart)
  468. g.Enabled = true
  469. g.Adornee = damagepart
  470. g.Size = UDim2.new(5, 0, 5, 0)
  471. g.ExtentsOffset = Vector3.new(0, 0, 0)
  472. g.StudsOffset = Vector3.new(0, 0, 0)
  473. local t = Instance.new("TextLabel", g)
  474. t.BackgroundTransparency = 1
  475. t.Font = "ArialBold"
  476. t.TextSize = 24
  477. t.Text = "-" .. round(damage)
  478. if round(damage) % 1 == 0 then
  479. t.Text = "-" .. round(damage) .. ".0"
  480. end
  481. t.Size = UDim2.new(1, 0, 1, 0)
  482. t.TextStrokeTransparency = 0
  483. t.TextTransparency = 0
  484. t.TextScaled = true
  485. t.TextWrapped = true
  486. t.TextXAlignment = "Center"
  487. t.TextYAlignment = "Center"
  488. t.TextColor3 = colour
  489. coroutine.resume(coroutine.create(function()
  490. for i = 1, 50 do
  491. game:GetService("RunService").Heartbeat:wait()
  492. local sinewave = math.sin(i / 500) * 4
  493. damagepart.CFrame = damagepart.CFrame * CFrame.new(Vector3.new(0, 0.3 - sinewave, 0))
  494. t.TextTransparency = t.TextTransparency + 0.02
  495. t.TextStrokeTransparency = t.TextTransparency + 0.02
  496. end
  497. damagepart:Destroy()
  498. end), t)
  499. end
  500. function magic(type, thing)
  501. local magicBlock = function(par, brick, cframe, x1, y1, z1, x3, y3, z3, delay, t)
  502. local prt = newPart(par, brick, 0, true, false, Vector3.new(), "Part", "SmoothPlastic", cframe)
  503. prt.CFrame = cframe
  504. local msh = mesh("BlockMesh", prt, nil, nil, Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  505. game:GetService("Debris"):AddItem(prt, 8)
  506. if t == 1 or t == nil then
  507. table.insert(partEffects, {
  508. prt,
  509. "Block1",
  510. delay,
  511. x3,
  512. y3,
  513. z3,
  514. msh
  515. })
  516. elseif t == 2 then
  517. table.insert(partEffects, {
  518. prt,
  519. "Block2",
  520. delay,
  521. x3,
  522. y3,
  523. z3,
  524. msh
  525. })
  526. end
  527. end
  528. local magicCylinder = function(par, brick, cframe, x1, y1, z1, x3, y3, z3, delay)
  529. local prt = newPart(par, brick, 0, true, false, Vector3.new(), "Part", "SmoothPlastic", cframe)
  530. local msh = mesh("CylinderMesh", prt, nil, nil, Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  531. game:GetService("Debris"):AddItem(prt, 8)
  532. table.insert(partEffects, {
  533. prt,
  534. "Cylinder",
  535. delay,
  536. x3,
  537. y3,
  538. z3,
  539. msh
  540. })
  541. end
  542. local magicSphere = function(par, brick, cframe, x1, y1, z1, x3, y3, z3, delay)
  543. local prt = newPart(par, brick, 0, true, false, Vector3.new(), "Part", "SmoothPlastic", cframe)
  544. local msh = mesh("SpecialMesh", prt, "Sphere", nil, Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  545. game:GetService("Debris"):AddItem(prt, 8)
  546. table.insert(partEffects, {
  547. prt,
  548. "Cylinder",
  549. delay,
  550. x3,
  551. y3,
  552. z3,
  553. msh
  554. })
  555. end
  556. local magicRing = function(par, brick, cframe, x1, y1, z1, x3, y3, z3, delay)
  557. local prt = newPart(par, brick, 0, true, false, Vector3.new(), "Part", "SmoothPlastic", cframe)
  558. prt.Anchored = true
  559. prt.CFrame = cframe
  560. local msh = mesh("SpecialMesh", prt, "FileMesh", 3270017, Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  561. game:GetService("Debris"):AddItem(prt, 2)
  562. coroutine.resume(coroutine.create(function(Part, Mesh, num)
  563. for i = 0, 1, delay do
  564. swait()
  565. Part.Transparency = i
  566. Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
  567. end
  568. Part:Destroy()
  569. end), prt, msh, (math.random(0, 1) + math.random()) / 5)
  570. end
  571. local magicSlash = function(par, brick, cframe, x1, y1, z1, x3, y3, z3, delay)
  572. local prt = newPart(par, brick, 0, true, false, Vector3.new(), "Part", cframe)
  573. prt.Anchored = true
  574. prt.CFrame = cframe
  575. local msh = mesh("SpecialMesh", prt, "FileMesh", 20329976, Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  576. game:GetService("Debris"):AddItem(prt, 2)
  577. coroutine.resume(coroutine.create(function(Part, Mesh, num)
  578. for i = 0, 1, delay do
  579. swait()
  580. Part.Transparency = i
  581. Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
  582. end
  583. Part:Destroy()
  584. end), prt, msh, (math.random(0, 1) + math.random()) / 5)
  585. end
  586. local par = thing[1]
  587. local brick = thing[2]
  588. local cframe = thing[3]
  589. local x1 = thing[4]
  590. local y1 = thing[5]
  591. local z1 = thing[6]
  592. local x3 = thing[7]
  593. local y3 = thing[8]
  594. local z3 = thing[9]
  595. local delay = thing[10]
  596. local t = thing[11]
  597. if type == "Block" or type == 1 then
  598. magicBlock(thing[1], thing[2], thing[3], thing[4], thing[5], thing[6], thing[7], thing[8], thing[9], thing[10], thing[11])
  599. elseif type == "Cylinder" or type == 2 then
  600. magicCylinder(thing[1], thing[2], thing[3], thing[4], thing[5], thing[6], thing[7], thing[8], thing[9], thing[10], thing[11])
  601. elseif type == "Sphere" or type == 3 then
  602. magicSphere(thing[1], thing[2], thing[3], thing[4], thing[5], thing[6], thing[7], thing[8], thing[9], thing[10], thing[11])
  603. elseif type == "Ring" or type == 4 then
  604. magicRing(thing[1], thing[2], thing[3], thing[4], thing[5], thing[6], thing[7], thing[8], thing[9], thing[10], thing[11])
  605. elseif type == "Slash" or type == 5 then
  606. magicSlash(thing[1], thing[2], thing[3], thing[4], thing[5], thing[6], thing[7], thing[8], thing[9], thing[10], thing[11])
  607. end
  608. end
  609. function newFrame(par, bg, transp, size, pos, name)
  610. local f = Instance.new("Frame", nil)
  611. f.BackgroundColor3 = bg
  612. f.BackgroundTransparency = transp
  613. f.BorderSizePixel = 0
  614. f.Position = pos
  615. f.Size = size
  616. f.Name = name
  617. f.Parent = par
  618. return f
  619. end
  620. function newLabel(par, size, pos, text, textsize, text3, textstroke3, scaled, name)
  621. local l = Instance.new("TextLabel", nil)
  622. l.BackgroundTransparency = 1
  623. l.Size = size
  624. l.Position = pos
  625. l.Text = text
  626. l.TextSize = textsize
  627. l.TextColor3 = text3
  628. l.TextStrokeColor3 = textstroke3
  629. if scaled then
  630. l.TextScaled = scaled
  631. else
  632. l.TextScaled = true
  633. end
  634. l.TextStrokeTransparency = 0
  635. l.Name = name
  636. l.Parent = par
  637. return l
  638. end
  639. a1t = "Chara Anger"
  640. a2t = "Chara Power"
  641. a3t = "Chara Hate"
  642. a4t = "Frisk Determination"
  643. backc3 = c3(107, 107, 107)
  644. reloc3 = c3(62, 62, 62)
  645. g = Instance.new("ScreenGui")
  646. f1 = newFrame(g, backc3, 0.5, UDim2.new(0.18, 0, 0.08, 0), UDim2.new(0.8, 0, 0.85, 0), "")
  647. f2 = newFrame(g, backc3, 0.5, UDim2.new(0.18, 0, 0.08, 0), UDim2.new(0.8, 0, 0.76, 0), "")
  648. f3 = newFrame(g, backc3, 0.5, UDim2.new(0.18, 0, 0.08, 0), UDim2.new(0.8, 0, 0.67, 0), "")
  649. f4 = newFrame(g, backc3, 0.5, UDim2.new(0.18, 0, 0.08, 0), UDim2.new(0.8, 0, 0.58, 0), "")
  650. newFrame(f1, reloc3, 0, UDim2.new(1.002, 0, 1.002, 0), UDim2.new(0, 0, 0, 0), "Reload")
  651. newFrame(f2, reloc3, 0, UDim2.new(1.002, 0, 1.002, 0), UDim2.new(0, 0, 0, 0), "Reload")
  652. newFrame(f3, reloc3, 0, UDim2.new(1.002, 0, 1.002, 0), UDim2.new(0, 0, 0, 0), "Reload")
  653. newFrame(f4, reloc3, 0, UDim2.new(1.002, 0, 1.002, 0), UDim2.new(0, 0, 0, 0), "Reload")
  654. newLabel(f1, UDim2.new(1, 0, 0.4, 0), UDim2.new(0, 0, 0, 0), "(Z)", 18, c3(243, 242, 242), c3(0, 0, 0), true, "Key")
  655. newLabel(f2, UDim2.new(1, 0, 0.4, 0), UDim2.new(0, 0, 0, 0), "(X)", 18, c3(243, 242, 242), c3(0, 0, 0), true, "Key")
  656. newLabel(f3, UDim2.new(1, 0, 0.4, 0), UDim2.new(0, 0, 0, 0), "(C)", 18, c3(243, 242, 242), c3(0, 0, 0), true, "Key")
  657. newLabel(f4, UDim2.new(1, 0, 0.4, 0), UDim2.new(0, 0, 0, 0), "(V)", 18, c3(243, 242, 242), c3(0, 0, 0), true, "Key")
  658. newLabel(f1, UDim2.new(1, 0, 0.6, 0), UDim2.new(0, 0, 0.4, 0), a1t, 18, c3(243, 242, 242), c3(0, 0, 0), true, "Label")
  659. newLabel(f2, UDim2.new(1, 0, 0.6, 0), UDim2.new(0, 0, 0.4, 0), a2t, 18, c3(243, 242, 242), c3(0, 0, 0), true, "Label")
  660. newLabel(f3, UDim2.new(1, 0, 0.6, 0), UDim2.new(0, 0, 0.4, 0), a3t, 18, c3(243, 242, 242), c3(0, 0, 0), true, "Label")
  661. newLabel(f4, UDim2.new(1, 0, 0.6, 0), UDim2.new(0, 0, 0.4, 0), a4t, 18, c3(243, 242, 242), c3(0, 0, 0), true, "Label")
  662. g.Parent = Player.PlayerGui
  663. Reload = {}
  664. Reload[1] = f1.Reload
  665. Reload[2] = f2.Reload
  666. Reload[3] = f3.Reload
  667. Reload[4] = f4.Reload
  668. weapon = Instance.new("Model", Character)
  669. weapon.Name = "Chara Knife"
  670. local bmod = Instance.new("Model")
  671. bmod.Name = "bmodel"
  672. bmod.Parent = chr
  673. local hnd = makepart("Really black", "hnd", 0, 1, "Neon", bmod, rarm.CFrame)
  674. local hmes = makemesh("1", Vector3.new(2, 9, 2), nil, hnd)
  675. local hwel = makeweld(hnd, hnd, rarm, ang(rd(90), rd(0), rd(0)) * cf(0, 1, 0), nil)
  676. local pt1 = makepart("Really black", "pt1", 0, 1, "Neon", bmod, rarm.CFrame)
  677. local p1m = makemesh("Sphere", Vector3.new(3,3,3), nil, pt1)
  678. local p1w = makeweld(pt1, pt1, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, 1, 0), nil)
  679. local pt3 = makepart("Really black", "pt3", 0, 1, "Neon", bmod, rarm.CFrame)
  680. local p3m = makemesh("1", Vector3.new(1, 6, 1), nil, pt3)
  681. local p3w = makeweld(pt3, pt3, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, -1, 0), nil)
  682. local pt4 = makepart("Really black", "pt4", 0, math.rad(0,1), "Neon", bmod, rarm.CFrame)
  683. local p4m = makemesh("FileMesh", Vector3.new(2,2,2), "http://www.roblox.com/asset/?id=54983181", pt4)
  684. p4m.TextureId = "http://www.roblox.com/asset/?id=54983107"
  685. p4m.Scale = Vector3.new(2,2,2)
  686. local p4w = makeweld(pt4, pt4, hnd, ang(rd(90), rd(0), rd(0)) * cf(0, -1.5, 0), nil)
  687. local pt5 = makepart("Forest green", "pt5", 0, 1, "Neon", bmod, rarm.CFrame)
  688. local p5m = makemesh("Cylinder", Vector3.new(25, 1.5, 1.5), nil, pt5)
  689. local p5w = makeweld(pt5, pt5, hnd, ang(rd(0), rd(0), rd(90)) * cf(0, -4.025, 0), nil)
  690. function attackone()
  691. attacking = true
  692. for i = 0, 1, 0.1 do
  693. swait()
  694. Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(0), 0, math.rad(60)), 0.4)
  695. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(0, 0, math.rad(-60)), 0.4)
  696. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.9, 0) * CFrame.Angles(math.rad(180), 0, math.rad(10)), 0.4)
  697. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.4)
  698. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
  699. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
  700. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(90), 0), 0.4)
  701. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(12), -math.rad(90), 0), 0.4)
  702. end
  703. local smp = newPart(Effects, BrickColor.new("Really red"), 0, true, false, Vector3.new(), "Slash")
  704. mesh("SpecialMesh", smp, "FileMesh", meshes[3], Vector3.new(0, 0, 0), Vector3.new(0.002, 0.06, 0.06))
  705. smp.CFrame = RootPart.CFrame * CFrame.new(0, 0, -3.5) * CFrame.Angles(math.rad(90), math.rad(120), math.rad(0))
  706. delay(0.1, function()
  707. table.insert(partEffects, {
  708. smp,
  709. "Disappear",
  710. 0.05
  711. })
  712. end)
  713. sound(sounds[1][1], Character.Head, 1, 4, 1.5)
  714. local hitb = hitbox.Touched:connect(function(hit)
  715. if hit.Parent ~= Character and hit.Parent:findFirstChild("Humanoid") then
  716. if hit.Parent:findFirstChild("Hit" .. Player.Name) then
  717. return
  718. end
  719. local str = Instance.new("StringValue", hit.Parent)
  720. str.Name = "Hit" .. Player.Name
  721. game.Debris:AddItem(str, 0.3)
  722. basicDamage(hit.Parent.Humanoid, math.random(9999999, 9999999), Color3.fromRGB(243, 242, 242))
  723. end
  724. end)
  725. for i = 0, 1, 0.1 do
  726. swait()
  727. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(80)), 0.4)
  728. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-70)), 0.4)
  729. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, 0) * angles(math.rad(45), math.rad(-65), math.rad(5)), 0.4)
  730. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.4)
  731. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
  732. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
  733. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)), 0.4)
  734. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)), 0.4)
  735. hitbox.Parent = weapon
  736. hitbox.Size = Vector3.new(2, 5, 8)
  737. if smp then
  738. hitbox.CFrame = smp.CFrame
  739. else
  740. hitbox.Parent = nil
  741. end
  742. end
  743. hitb:disconnect()
  744. hitbox.Parent = nil
  745. attacking = false
  746. end
  747. function attacktwo()
  748. attacking = true
  749. for i = 0, 1, 0.1 do
  750. swait()
  751. Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(0), 0, math.rad(-80)), 0.4)
  752. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(math.rad(15), 0, math.rad(80)), 0.4)
  753. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.4) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)) * CFrame.Angles(math.rad(25), 0, 0), 0.4)
  754. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.4)
  755. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
  756. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
  757. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(90), 0), 0.4)
  758. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(12), -math.rad(90), 0), 0.4)
  759. end
  760. local smp = newPart(Effects, BrickColor.new("Really red"), 0, true, false, Vector3.new(), "Slash")
  761. mesh("SpecialMesh", smp, "FileMesh", meshes[3], Vector3.new(0, 0, 0), Vector3.new(0.002, 0.06, 0.06))
  762. smp.CFrame = RootPart.CFrame * CFrame.new(0, 0, -3.5) * CFrame.Angles(math.rad(90), math.rad(80), math.rad(0))
  763. delay(0.1, function()
  764. table.insert(partEffects, {
  765. smp,
  766. "Disappear",
  767. 0.05
  768. })
  769. end)
  770. sound(sounds[1][2], Character.Head, 1, 4, 1.5)
  771. local hitb = hitbox.Touched:connect(function(hit)
  772. if hit.Parent ~= Character and hit.Parent:findFirstChild("Humanoid") then
  773. if hit.Parent:findFirstChild("Hit" .. Player.Name) then
  774. return
  775. end
  776. local str = Instance.new("StringValue", hit.Parent)
  777. str.Name = "Hit" .. Player.Name
  778. game.Debris:AddItem(str, 0.3)
  779. basicDamage(hit.Parent.Humanoid, math.random(9999999, 9999999), Color3.fromRGB(243, 242, 242))
  780. end
  781. end)
  782. for i = 0, 1, 0.1 do
  783. swait()
  784. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  785. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), 0.4)
  786. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, 0) * angles(math.rad(0), math.rad(-40), math.rad(60)), 0.4)
  787. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(45), 0, math.rad(-25)), 0.4)
  788. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
  789. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
  790. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)), 0.4)
  791. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)), 0.4)
  792. hitbox.Parent = weapon
  793. hitbox.Size = Vector3.new(2, 5, 8)
  794. if smp then
  795. hitbox.CFrame = smp.CFrame
  796. else
  797. hitbox.Parent = nil
  798. end
  799. end
  800. hitb:disconnect()
  801. hitbox.Parent = nil
  802. attacking = false
  803. end
  804. function attackthree()
  805. attacking = true
  806. for i = 0, 1, 0.1 do
  807. swait()
  808. Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(0), 0, math.rad(-80)), 0.4)
  809. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(math.rad(20), 0, math.rad(80)), 0.4)
  810. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.4) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(-45)) * CFrame.Angles(math.rad(-25), 0, 0), 0.4)
  811. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.4)
  812. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
  813. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
  814. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(90), 0), 0.4)
  815. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(12), -math.rad(90), 0), 0.4)
  816. end
  817. local smp = newPart(Effects, BrickColor.new("Really red"), 0, true, false, Vector3.new(), "Slash")
  818. mesh("SpecialMesh", smp, "FileMesh", meshes[3], Vector3.new(0, 0, 0), Vector3.new(0.002, 0.06, 0.06))
  819. smp.CFrame = RootPart.CFrame * CFrame.new(0, 0, -3.5) * CFrame.Angles(math.rad(90), math.rad(-70), math.rad(0))
  820. delay(0.1, function()
  821. table.insert(partEffects, {
  822. smp,
  823. "Disappear",
  824. 0.05
  825. })
  826. end)
  827. sound(sounds[1][3], Character.Head, 1, 4, 1.5)
  828. local hitb = hitbox.Touched:connect(function(hit)
  829. if hit.Parent ~= Character and hit.Parent:findFirstChild("Humanoid") then
  830. if hit.Parent:findFirstChild("Hit" .. Player.Name) then
  831. return
  832. end
  833. local str = Instance.new("StringValue", hit.Parent)
  834. str.Name = "Hit" .. Player.Name
  835. game.Debris:AddItem(str, 0.3)
  836. basicDamage(hit.Parent.Humanoid, math.random(9999999, 9999999), Color3.fromRGB(243, 242, 242))
  837. end
  838. end)
  839. for i = 0, 1, 0.1 do
  840. swait()
  841. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  842. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), 0.4)
  843. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.8, 0.4) * angles(math.rad(0), math.rad(-40), math.rad(120)), 0.4)
  844. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(45), 0, math.rad(-25)), 0.4)
  845. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
  846. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
  847. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)), 0.4)
  848. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)), 0.4)
  849. hitbox.Parent = weapon
  850. hitbox.Size = Vector3.new(2, 5, 8)
  851. if smp then
  852. hitbox.CFrame = smp.CFrame
  853. else
  854. hitbox.Parent = nil
  855. end
  856. end
  857. hitb:disconnect()
  858. hitbox.Parent = nil
  859. attacking = false
  860. end
  861. function rapidslash()
  862. attacking = true
  863. AttackHas[1] = 0
  864. AttackCan[1] = false
  865. for i = 1, 3 do
  866. swait()
  867. for i = 0, 1, 0.2 do
  868. swait()
  869. Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(0), 0, math.rad(60)), 0.6)
  870. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(0, 0, math.rad(-60)), 0.6)
  871. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.9, 0) * CFrame.Angles(math.rad(180), 0, math.rad(10)), 0.6)
  872. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.6)
  873. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 1)
  874. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 1)
  875. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(90), 0), 0.6)
  876. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(12), -math.rad(90), 0), 0.6)
  877. end
  878. sound(sounds[1][1], Character.Head, 1, 7, 1.5)
  879. do
  880. local smp = newPart(Effects, BrickColor.new("Really red"), 0, true, false, Vector3.new(), "Slash")
  881. mesh("SpecialMesh", smp, "FileMesh", meshes[3], Vector3.new(0, 0, 0), Vector3.new(0.002, 0.06, 0.06))
  882. smp.CFrame = RootPart.CFrame * CFrame.new(0, 0, -3.5) * CFrame.Angles(math.rad(90), math.rad(math.random(-360, 360)), math.rad(0))
  883. delay(0.1, function()
  884. table.insert(partEffects, {
  885. smp,
  886. "Disappear",
  887. 0.05
  888. })
  889. end)
  890. for i, v in pairs(findCloseHumanoid(smp.Position, 5)) do
  891. basicDamage(v, 6, c3(243, 242, 242))
  892. end
  893. for i = 0, 1, 0.2 do
  894. swait()
  895. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(80)), 0.6)
  896. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-70)), 0.6)
  897. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, 0) * angles(math.rad(45), math.rad(-65), math.rad(5)), 0.6)
  898. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.6)
  899. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 1)
  900. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 1)
  901. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)), 0.6)
  902. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)), 0.6)
  903. end
  904. sound(sounds[1][1], Character.Head, 1, 7, 1.5)
  905. local smp = newPart(Effects, BrickColor.new("Really red"), 0, true, false, Vector3.new(), "Slash")
  906. mesh("SpecialMesh", smp, "FileMesh", meshes[3], Vector3.new(0, 0, 0), Vector3.new(0.002, 0.06, 0.06))
  907. smp.CFrame = RootPart.CFrame * CFrame.new(0, 0, -3.5) * CFrame.Angles(math.rad(90), math.rad(math.random(-360, 360)), math.rad(0))
  908. delay(0.1, function()
  909. table.insert(partEffects, {
  910. smp,
  911. "Disappear",
  912. 0.05
  913. })
  914. end)
  915. for i, v in pairs(findCloseHumanoid(smp.Position, 5)) do
  916. basicDamage(v, 6, c3(243, 242, 242))
  917. end
  918. for i = 0, 1, 0.2 do
  919. swait()
  920. Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(0), 0, math.rad(-80)), 0.6)
  921. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(math.rad(20), 0, math.rad(80)), 0.6)
  922. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.4) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(-45)) * CFrame.Angles(math.rad(-25), 0, 0), 1)
  923. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.6)
  924. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 1)
  925. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 1)
  926. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(90), 0), 0.6)
  927. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(12), -math.rad(90), 0), 0.6)
  928. end
  929. sound(sounds[1][1], Character.Head, 1, 7, 1.5)
  930. local smp = newPart(Effects, BrickColor.new("Really red"), 0, true, false, Vector3.new(), "Slash")
  931. mesh("SpecialMesh", smp, "FileMesh", meshes[3], Vector3.new(0, 0, 0), Vector3.new(0.002, 0.06, 0.06))
  932. smp.CFrame = RootPart.CFrame * CFrame.new(0, 0, -3.5) * CFrame.Angles(math.rad(90), math.rad(math.random(-360, 360)), math.rad(0))
  933. delay(0.1, function()
  934. table.insert(partEffects, {
  935. smp,
  936. "Disappear",
  937. 0.05
  938. })
  939. end)
  940. for i, v in pairs(findCloseHumanoid(smp.Position, 5)) do
  941. basicDamage(v, 6, c3(243, 242, 242))
  942. end
  943. for i = 0, 1, 0.2 do
  944. swait()
  945. Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(0), 0, math.rad(-80)), 0.6)
  946. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(math.rad(15), 0, math.rad(80)), 0.6)
  947. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.4) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)) * CFrame.Angles(math.rad(25), 0, 0), 0.6)
  948. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.6)
  949. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.6)
  950. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.6)
  951. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(90), 0), 0.6)
  952. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(12), -math.rad(90), 0), 0.6)
  953. end
  954. sound(sounds[1][1], Character.Head, 1, 7, 1.5)
  955. local smp = newPart(Effects, BrickColor.new("Really red"), 0, true, false, Vector3.new(), "Slash")
  956. mesh("SpecialMesh", smp, "FileMesh", meshes[3], Vector3.new(0, 0, 0), Vector3.new(0.002, 0.06, 0.06))
  957. smp.CFrame = RootPart.CFrame * CFrame.new(0, 0, -3.5) * CFrame.Angles(math.rad(90), math.rad(math.random(-360, 360)), math.rad(0))
  958. delay(0.1, function()
  959. table.insert(partEffects, {
  960. smp,
  961. "Disappear",
  962. 0.05
  963. })
  964. end)
  965. for i, v in pairs(findCloseHumanoid(smp.Position, 5)) do
  966. basicDamage(v, 6, c3(243, 242, 242))
  967. end
  968. for i = 0, 1, 0.2 do
  969. swait()
  970. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.6)
  971. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), 0.6)
  972. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, 0) * angles(math.rad(0), math.rad(-40), math.rad(60)), 0.6)
  973. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(45), 0, math.rad(-25)), 0.6)
  974. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 1)
  975. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 1)
  976. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)), 0.6)
  977. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)), 0.6)
  978. end
  979. sound(sounds[1][1], Character.Head, 1, 7, 1.5)
  980. local smp = newPart(Effects, BrickColor.new("Really red"), 0, true, false, Vector3.new(), "Slash")
  981. mesh("SpecialMesh", smp, "FileMesh", meshes[3], Vector3.new(0, 0, 0), Vector3.new(0.002, 0.06, 0.06))
  982. smp.CFrame = RootPart.CFrame * CFrame.new(0, 0, -3.5) * CFrame.Angles(math.rad(90), math.rad(math.random(-360, 360)), math.rad(0))
  983. delay(0.1, function()
  984. table.insert(partEffects, {
  985. smp,
  986. "Disappear",
  987. 0.05
  988. })
  989. end)
  990. for i, v in pairs(findCloseHumanoid(smp.Position, 5)) do
  991. basicDamage(v, 6, c3(243, 242, 242))
  992. end
  993. end
  994. end
  995. AttackCan[1] = true
  996. attacking = false
  997. end
  998. function powerslash()
  999. attacking = true
  1000. AttackCan[2] = false
  1001. AttackHas[2] = AttackHas[2] - 0.2
  1002. local orbs = {}
  1003. if energyslashcounter == 1 then
  1004. energyslashcounter = 2
  1005. sound(367453005, Character.Head, 1, 4, 1)
  1006. do
  1007. local now = RootPart.CFrame * CFrame.new(0, 0, -10)
  1008. local bo = {
  1009. BrickColor.new("Bright orange"),
  1010. BrickColor.new("Toothpaste")
  1011. }
  1012. local bon = bo[math.random(1, 2)]
  1013. for i = 1, 5 do
  1014. local orb = newPart(Effects, bon, 0, true, false, Vector3.new(), "Orange", "SmoothPlastic", RootPart.CFrame * CFrame.new(0, 0, -15))
  1015. local omesh = mesh("SpecialMesh", orb, "Sphere", nil, Vector3.new(0, 0, 0), Vector3.new(5, 5, 5))
  1016. orb.CFrame = now * CFrame.new((math.random() - 0.5) * 20, 0, (math.random() - 0.5) * 20)
  1017. table.insert(orbs, orb)
  1018. end
  1019. for i = 0, 1, 0.05 do
  1020. swait()
  1021. Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(0), 0, math.rad(-80)), 0.15)
  1022. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(math.rad(5), 0, math.rad(80)), 0.15)
  1023. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.4) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)) * CFrame.Angles(math.rad(25), 0, 0), 0.2)
  1024. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.4)
  1025. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.15)
  1026. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.15)
  1027. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(90), 0), 0.15)
  1028. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(12), -math.rad(90), 0), 0.15)
  1029. end
  1030. for i = 1, #orbs do
  1031. do
  1032. local orb = orbs[i]
  1033. table.insert(partEffects, {
  1034. orb,
  1035. "Block2",
  1036. 0.05,
  1037. 10,
  1038. 10,
  1039. 10,
  1040. orb.Mesh
  1041. })
  1042. thread(function()
  1043. for i = 1, 3 do
  1044. swait(5)
  1045. for i, v in pairs(findCloseHumanoid(orb.Position, 10)) do
  1046. if bon == BrickColor.new("Bright orange") then
  1047. if (v.Parent.Torso.Velocity * Vector3.new(1, 1, 1)).magnitude < 2 then
  1048. basicDamage(v, 6, BrickColor.new("Bright orange").Color)
  1049. end
  1050. elseif bon == BrickColor.new("Toothpaste") and (v.Parent.Torso.Velocity * Vector3.new(1, 1, 1)).magnitude > 2 then
  1051. basicDamage(v, 6, BrickColor.new("Toothpaste").Color)
  1052. end
  1053. end
  1054. end
  1055. end)
  1056. end
  1057. end
  1058. sound(sounds[1][2], Character.Head, 1, 4, 0.8)
  1059. for i = 0, 1, 0.1 do
  1060. swait()
  1061. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1062. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(15), math.rad(0), math.rad(-5)), 0.4)
  1063. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, 0) * angles(math.rad(0), math.rad(-40), math.rad(60)), 0.4)
  1064. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(45), 0, math.rad(-25)), 0.4)
  1065. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
  1066. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
  1067. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)), 0.4)
  1068. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)), 0.4)
  1069. end
  1070. end
  1071. elseif energyslashcounter == 2 then
  1072. energyslashcounter = 3
  1073. sound(306247749, Character.Head, 1, 4, 1)
  1074. local gparts = {}
  1075. for i = 1, 9 do
  1076. local gpart = newPart(Effects, BrickColor.new("Really red"), 0, true, false, Vector3.new(), "Violet", "SmoothPlastic")
  1077. local gmesh = mesh("CylinderMesh", gpart, nil, nil, Vector3.new(0, 0, 0), Vector3.new(50, 10, 50))
  1078. gpart.CFrame = RootPart.CFrame * CFrame.new(math.random(-20, 20), -3, -15 + math.random(-20, 20))
  1079. table.insert(gparts, gpart)
  1080. end
  1081. for i = 0, 1, 0.05 do
  1082. swait()
  1083. Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(0), 0, math.rad(80)), 0.15)
  1084. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(math.rad(5), 0, math.rad(-80)), 0.15)
  1085. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, 0.4) * CFrame.Angles(math.rad(-45), math.rad(0), math.rad(15)) * CFrame.Angles(math.rad(0), 0, 0), 0.2)
  1086. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.4)
  1087. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.15)
  1088. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.15)
  1089. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(90), 0), 0.15)
  1090. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(12), -math.rad(90), 0), 0.15)
  1091. end
  1092. for i = 1, #gparts do
  1093. local gpart = gparts[i]
  1094. table.insert(partEffects, {
  1095. gpart,
  1096. "Block2",
  1097. 0.05,
  1098. -1,
  1099. 50,
  1100. -1,
  1101. gpart.Mesh
  1102. })
  1103. for i, v in pairs(findCloseHumanoid(gpart.Position, 10)) do
  1104. basicDamage(v, 15, BrickColor.new("Dark blue").Color)
  1105. local bv = Instance.new("BodyVelocity", v.Parent.Torso)
  1106. game.Debris:AddItem(bv, 1)
  1107. bv.Velocity = Vector3.new(0, 40, 0)
  1108. bv.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  1109. end
  1110. end
  1111. sound(sounds[1][3], Character.Head, 1, 4, 0.8)
  1112. for i = 0, 1, 0.1 do
  1113. swait()
  1114. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.4)
  1115. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(15), math.rad(0), math.rad(80)), 0.4)
  1116. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, -0.4) * angles(math.rad(125), math.rad(-40), math.rad(60)), 0.4)
  1117. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(45), 0, math.rad(-25)), 0.4)
  1118. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
  1119. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
  1120. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)), 0.4)
  1121. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)), 0.4)
  1122. end
  1123. elseif energyslashcounter == 3 then
  1124. energyslashcounter = 1
  1125. for i = 0, 1, 0.05 do
  1126. swait()
  1127. Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(0), 0, math.rad(80)), 0.15)
  1128. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(math.rad(5), 0, math.rad(-80)), 0.15)
  1129. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.4) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)) * CFrame.Angles(math.rad(25), 0, 0), 0.2)
  1130. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.4)
  1131. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.15)
  1132. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.15)
  1133. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(90), 0), 0.15)
  1134. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(12), -math.rad(90), 0), 0.15)
  1135. end
  1136. sound(sounds[2][5], Character.Head, 1, 4, 0.8)
  1137. thread(function()
  1138. for i = 1, 6 do
  1139. swait()
  1140. sound(438149153, Character.Head, 1, 4, 0.8)
  1141. do
  1142. local prt = newPart(Effects, BrickColor.new("Bright yellow"), 0, false, false, Vector3.new(), "Yellow", "SmoothPlastic", RootPart.CFrame)
  1143. local mesh = mesh("SpecialMesh", prt, "Sphere", nil, Vector3.new(0, 0, 0), Vector3.new(5, 5, 2.5))
  1144. prt.CFrame = RootPart.CFrame * CFrame.new(math.random(-3, 3), math.random(-1, 1), math.random(-3, 3))
  1145. local bv = Instance.new("BodyVelocity", prt)
  1146. bv.Velocity = RootPart.CFrame.lookVector * 150
  1147. bv.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  1148. game.Debris:AddItem(bv, 6)
  1149. local orlook = RootPart.CFrame.lookVector
  1150. thread(function()
  1151. while prt do
  1152. swait()
  1153. local hitpart, pospart = rayCast(prt.Position, orlook, 4, Character)
  1154. if hitpart and pospart then
  1155. prt:Destroy()
  1156. do
  1157. local ref = newPart(Effects, BrickColor.Black(), 1, true, false, Vector3.new(), "")
  1158. ref.CFrame = CFrame.new(pospart)
  1159. sound(142070127, ref, 1, 4, 1)
  1160. delay(4, function()
  1161. ref:Destroy()
  1162. end)
  1163. magic("Block", {
  1164. Effects,
  1165. BrickColor.new("Bright yellow"),
  1166. CFrame.new(pospart),
  1167. 0.2,
  1168. 0.2,
  1169. 0.2,
  1170. 0.9,
  1171. 0.9,
  1172. 0.9,
  1173. 0.05,
  1174. 1
  1175. })
  1176. magic("Block", {
  1177. Effects,
  1178. BrickColor.new("Bright yellow"),
  1179. CFrame.new(pospart),
  1180. 0.2,
  1181. 0.2,
  1182. 0.2,
  1183. 0.9,
  1184. 0.9,
  1185. 0.9,
  1186. 0.05,
  1187. 1
  1188. })
  1189. if hitpart.Parent:findFirstChild("Humanoid") then
  1190. basicDamage(hitpart.Parent.Humanoid, 12, BrickColor.new("Bright yellow").Color)
  1191. end
  1192. break
  1193. end
  1194. end
  1195. end
  1196. end)
  1197. end
  1198. end
  1199. end)
  1200. end
  1201. attacking = false
  1202. AttackCan[2] = true
  1203. end
  1204. function leftright()
  1205. attacking = true
  1206. AttackCan[3] = false
  1207. for i = 0, 1, 0.1 do
  1208. swait()
  1209. Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(0), 0, math.rad(-80)), 0.4)
  1210. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(math.rad(15), 0, math.rad(80)), 0.4)
  1211. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.4) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)) * CFrame.Angles(math.rad(25), 0, 0), 0.4)
  1212. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.4)
  1213. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
  1214. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
  1215. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(90), 0), 0.4)
  1216. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(12), -math.rad(90), 0), 0.4)
  1217. end
  1218. thread(function()
  1219. local laser = newPart(nil, BrickColor.new("Really red"), 0.5, true, false, Vector3.new(), "Laser", "SmoothPlastic")
  1220. local lmsh = mesh("BlockMesh", nil, nil, nil, Vector3.new(0, 0, 0), Vector3.new(5, 5, 5))
  1221. local lasers = {}
  1222. local keypoints1, keypoints2, keypoints3, keypoints4, keypoints5, keypoints6 = {}, {}, {}, {}, {}, {}
  1223. local radius = 10
  1224. local num = 12
  1225. for i = 1, num do
  1226. table.insert(keypoints1, {
  1227. RootPart.CFrame.p,
  1228. RootPart.CFrame.lookVector + Vector3.new(math.cos(math.rad(360 / num) * i), 0, math.sin(math.rad(360 / num) * i))
  1229. })
  1230. table.insert(keypoints2, {
  1231. RootPart.CFrame.p,
  1232. RootPart.CFrame.lookVector + Vector3.new(math.cos(math.rad(360 / num + 45 * i) * i), 0, math.sin(math.rad(360 / num + 45 * i) * i))
  1233. })
  1234. table.insert(keypoints3, {
  1235. RootPart.CFrame.p,
  1236. RootPart.CFrame.lookVector + Vector3.new(math.cos(math.rad(360 / num + 90 * i) * i), 0, math.sin(math.rad(360 / num + 90 * i) * i))
  1237. })
  1238. table.insert(keypoints4, {
  1239. RootPart.CFrame.p,
  1240. RootPart.CFrame.lookVector + Vector3.new(math.cos(math.rad(360 / num + 135 * i) * i), 0, math.sin(math.rad(360 / num + 135 * i) * i))
  1241. })
  1242. end
  1243. local keypointstotal = {
  1244. keypoints1,
  1245. keypoints2,
  1246. keypoints3,
  1247. keypoints4
  1248. }
  1249. for ii = 1, #keypointstotal do
  1250. swait(5)
  1251. do
  1252. local currpoint = keypointstotal[ii]
  1253. for i = 1, #currpoint do
  1254. do
  1255. local start = currpoint[i][1]
  1256. local look = currpoint[i][2]
  1257. local laserc = laser:Clone()
  1258. local lmshc = lmsh:Clone()
  1259. local hit, pos = rayCast(start, look, 100000, Character)
  1260. laserc.CFrame = CFrame.new((start + pos) / 2, pos) * angles(math.rad(90), 0, 0)
  1261. local mag = (laserc.Position - pos).magnitude * 2
  1262. lmshc.Scale = Vector3.new(2, mag * 5, 2)
  1263. laserc.Parent = Effects
  1264. lmshc.Parent = laserc
  1265. thread(function()
  1266. table.insert(partEffects, {
  1267. laserc,
  1268. "Block2",
  1269. 0.025,
  1270. -0.1,
  1271. 0,
  1272. -0.1,
  1273. lmshc
  1274. })
  1275. local start = currpoint[i][1]
  1276. local look = currpoint[i][2]
  1277. look = CFrame.new(start, start + look).lookVector
  1278. local hit, pos = rayCast(start, look, 100000, Character)
  1279. repeat
  1280. swait()
  1281. until laserc.Parent == nil
  1282. local lpart = newPart(Effects, BrickColor.new("Black"), 0.5, true, false, Vector3.new(), "Cut", "SmoothPlastic")
  1283. sound(406913243, Head, 0.6, 4, 1)
  1284. local lpartm = mesh("BlockMesh", lpart, nil, nil, Vector3.new(0, 0, 0), Vector3.new(5, mag * 5, 5))
  1285. lpart.CFrame = laserc.CFrame * CFrame.new(0, 0, 0)
  1286. table.insert(partEffects, {
  1287. lpart,
  1288. "Block2",
  1289. 0.05,
  1290. 1,
  1291. 0,
  1292. 1,
  1293. lpartm
  1294. })
  1295. local lpart = newPart(Effects, BrickColor.new("Lily white"), 0.5, true, false, Vector3.new(), "Cut", "SmoothPlastic")
  1296. local lpartm = mesh("BlockMesh", lpart, nil, nil, Vector3.new(0, 0, 0), Vector3.new(8, mag * 5, 8))
  1297. lpart.CFrame = laserc.CFrame * CFrame.new(0, 0, 0)
  1298. table.insert(partEffects, {
  1299. lpart,
  1300. "Block2",
  1301. 0.05,
  1302. 1,
  1303. 0,
  1304. 1,
  1305. lpartm
  1306. })
  1307. local hit, pos = rayCast(start, look, 100000, Character)
  1308. if hit ~= nil then
  1309. if hit.Parent.ClassName == "Accessory" or hit.Parent.ClassName == "Hat" then
  1310. if hit.Parent.Parent:findFirstChild("Humanoid") then
  1311. basicDamage(hit.Parent.Parent.Humanoid, 20, BrickColor.new("Bright red").Color)
  1312. end
  1313. elseif hit.Parent:findFirstChild("Humanoid") then
  1314. basicDamage(hit.Parent.Humanoid, 20, BrickColor.new("Bright red").Color)
  1315. end
  1316. end
  1317. end)
  1318. end
  1319. end
  1320. end
  1321. end
  1322. end)
  1323. for i = 0, 1, 0.1 do
  1324. swait()
  1325. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1326. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), 0.4)
  1327. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, 0) * angles(math.rad(0), math.rad(-40), math.rad(60)), 0.4)
  1328. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(45), 0, math.rad(-25)), 0.4)
  1329. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
  1330. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
  1331. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)), 0.4)
  1332. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)), 0.4)
  1333. end
  1334. AttackCan[3] = true
  1335. attacking = false
  1336. end
  1337. function mouse1d()
  1338. if tool.Active == false then
  1339. return
  1340. end
  1341. if attacking == false and attackcounter == 1 then
  1342. attackcounter = 2
  1343. attackone()
  1344. elseif attacking == false and attackcounter == 2 then
  1345. attackcounter = 3
  1346. attacktwo()
  1347. elseif attacking == false and attackcounter == 3 then
  1348. attackcounter = 1
  1349. attackthree()
  1350. end
  1351. end
  1352. function key(k)
  1353. if tool.Active == false then
  1354. return
  1355. end
  1356. k = k:lower()
  1357. if attacking == false and k == "z" and AttackHas[1] >= AttackNeeded[1] then
  1358. rapidslash()
  1359. elseif attacking == false and k == "x" and AttackHas[2] >= 0.2 then
  1360. powerslash()
  1361. elseif attacking == false and k == "c" and AttackHas[3] >= AttackNeeded[3] then
  1362. leftright()
  1363. elseif attacking ~= false or k ~= "v" or AttackHas[4] >= AttackNeeded[4] then
  1364. end
  1365. end
  1366. asdasd = mouse.Button1Down:connect(mouse1d)
  1367. asdasdf = mouse.KeyDown:connect(key)
  1368. Humanoid.Died:connect(function()
  1369. asdasd:disconnect()
  1370. asdasdf:disconnect()
  1371. end)
  1372. thread(function()
  1373. while true do
  1374. swait()
  1375. torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1376. hitfloor, posfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  1377. sine = sine + 1
  1378. if AttackHas[1] < AttackNeeded[1] and AttackCan[1] == true then
  1379. AttackHas[1] = AttackHas[1] + 0.005
  1380. end
  1381. if AttackHas[2] < AttackNeeded[2] and AttackCan[2] == true then
  1382. AttackHas[2] = AttackHas[2] + 0.005
  1383. end
  1384. if AttackHas[3] < AttackNeeded[3] and AttackCan[3] == true then
  1385. AttackHas[3] = AttackHas[3] + 0.005
  1386. end
  1387. if AttackHas[4] < AttackNeeded[4] and AttackCan[4] == true then
  1388. AttackHas[4] = AttackHas[4] + 0.005
  1389. end
  1390. Reload[1]:TweenSize(UDim2.new(AttackHas[1] / AttackNeeded[1], 0, 1, 0), nil, 1, 0.4)
  1391. Reload[2]:TweenSize(UDim2.new(AttackHas[2] / AttackNeeded[2], 0, 1, 0), nil, 1, 0.4)
  1392. Reload[3]:TweenSize(UDim2.new(AttackHas[3] / AttackNeeded[3], 0, 1, 0), nil, 1, 0.4)
  1393. Reload[4]:TweenSize(UDim2.new(AttackHas[4] / AttackNeeded[4], 0, 1, 0), nil, 1, 0.4)
  1394. if 1 < RootPart.Velocity.y and hitfloor == nil then
  1395. if attacking == false then
  1396. Anim = "Jump"
  1397. Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(-15), 0, math.rad(0)), 0.1)
  1398. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(-math.rad(17), 0, math.rad(12)), 0.2)
  1399. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.2)
  1400. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(-math.rad(17), 0, -math.rad(12)), 0.2)
  1401. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.2)
  1402. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(0, 0, 0), 0.2)
  1403. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(90), 0), 0.2)
  1404. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(12), -math.rad(90), 0), 0.2)
  1405. end
  1406. elseif RootPart.Velocity.y < -1 and hitfloor == nil then
  1407. if attacking == false then
  1408. Anim = "Fall"
  1409. Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(23), 0, 0), 0.2)
  1410. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(0, 0, 0), 0.2)
  1411. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(-math.rad(17), 0, math.rad(12)), 0.2)
  1412. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.2)
  1413. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(-math.rad(17), 0, -math.rad(12)), 0.2)
  1414. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.2)
  1415. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(24), math.rad(90), 0), 0.2)
  1416. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(-12), -math.rad(90), 0), 0.2)
  1417. end
  1418. elseif torvel < 1 and hitfloor ~= nil then
  1419. if attacking == false then
  1420. Anim = "Idle"
  1421. Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(-5), 0, math.rad(15)), 0.1)
  1422. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, 0.2 * math.cos(sine / 25)) * CFrame.Angles(math.rad(10), 0, math.rad(-15)), 0.1)
  1423. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5 - 0.1 * math.cos(sine / 15), 0) * CFrame.Angles(math.rad(5), math.rad(-15), math.rad(10) + 0.1 * math.cos(sine / 25)), 0.2)
  1424. LW.C0 = clerp(LW.C0, CFrame.new(-1.4, 0.5 - 0.1 * math.cos(sine / 15), 0) * CFrame.Angles(math.rad(-5), math.rad(15), math.rad(-10) - 0.1 * math.cos(sine / 25)), 0.2)
  1425. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.2)
  1426. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.2)
  1427. RH.C0 = clerp(RH.C0, CFrame.new(1, -1.1 - 0.2 * math.cos(sine / 25), 0) * CFrame.Angles(math.rad(10), math.rad(105), math.rad(-5)) * CFrame.Angles(math.rad(-4), 0, math.rad(-5)), 0.2)
  1428. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1 - 0.2 * math.cos(sine / 25), 0) * CFrame.Angles(math.rad(10), -math.rad(75), math.rad(-2)) * CFrame.Angles(math.rad(-13), 0, 0), 0.2)
  1429. end
  1430. elseif torvel > 2 and hitfloor ~= nil and attacking == false then
  1431. Anim = "Walk"
  1432. Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(-5), 0, math.rad(0)), 0.1)
  1433. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, 0.2 * math.cos(sine / 25)) * CFrame.Angles(math.rad(10), 0, math.rad(0)), 0.1)
  1434. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5 - 0.1 * math.cos(sine / 15), 0) * CFrame.Angles(math.rad(5), math.rad(-15), math.rad(10) + 0.1 * math.cos(sine / 25)), 0.2)
  1435. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5 - 0.1 * math.cos(sine / 15), 0) * CFrame.Angles(math.rad(-5), math.rad(15), math.rad(-10) - 0.1 * math.cos(sine / 25)), 0.2)
  1436. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.2)
  1437. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.2)
  1438. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.cos(sine * 1.2 / 8), math.rad(90), 0), 0.3)
  1439. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(-math.cos(sine * 1.2 / 8), -math.rad(90), 0), 0.3)
  1440. end
  1441. if 0 < #partEffects then
  1442. for e = 1, #partEffects do
  1443. if partEffects[e] ~= nil then
  1444. local Thing = partEffects[e]
  1445. if Thing ~= nil then
  1446. local Part = Thing[1]
  1447. local Mode = Thing[2]
  1448. local Delay = Thing[3]
  1449. local IncX = Thing[4]
  1450. local IncY = Thing[5]
  1451. local IncZ = Thing[6]
  1452. if 1 >= Thing[1].Transparency then
  1453. if Thing[2] == "Block1" then
  1454. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1455. local Mesh = Thing[1].Mesh
  1456. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1457. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1458. elseif Thing[2] == "Block2" then
  1459. Thing[1].CFrame = Thing[1].CFrame
  1460. local Mesh = Thing[7]
  1461. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1462. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1463. elseif Thing[2] == "Cylinder" then
  1464. local Mesh = Thing[1].Mesh
  1465. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1466. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1467. elseif Thing[2] == "Blood" then
  1468. local Mesh = Thing[7]
  1469. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1470. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1471. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1472. elseif Thing[2] == "Elec" then
  1473. local Mesh = Thing[1].Mesh
  1474. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1475. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1476. elseif Thing[2] == "Disappear" then
  1477. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1478. elseif Thing[2] == "Shatter" then
  1479. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1480. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1481. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1482. Thing[6] = Thing[6] + Thing[5]
  1483. end
  1484. else
  1485. Part:Destroy()
  1486. table.remove(partEffects, e)
  1487. end
  1488. end
  1489. end
  1490. end
  1491. end
  1492. end
  1493. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement