icy-desudesu

asriel

Aug 8th, 2016
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 95.69 KB | None | 0 0
  1. Player=game:GetService("Players").LocalPlayer
  2. Character=Player.Character
  3. PlayerGui=Player.PlayerGui
  4. Backpack=Player.Backpack
  5. Torso=Character.Torso
  6. Head=Character.Head
  7. Humanoid=Character.Humanoid
  8. LeftArm=Character["Left Arm"]
  9. LeftLeg=Character["Left Leg"]
  10. RightArm=Character["Right Arm"]
  11. RightLeg=Character["Right Leg"]
  12. cam=game.Workspace.CurrentCamera
  13. LS=Torso["Left Shoulder"]
  14. LH=Torso["Left Hip"]
  15. RS=Torso["Right Shoulder"]
  16. RH=Torso["Right Hip"]
  17. Face = Head.face
  18. Neck=Torso.Neck
  19. it=Instance.new
  20. attacktype=1
  21. vt=Vector3.new
  22. cf=CFrame.new
  23. euler=CFrame.fromEulerAnglesXYZ
  24. angles=CFrame.Angles
  25. cloaked=false
  26. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  27. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  28. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  29. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  30. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  31. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  32. RootPart=Character.HumanoidRootPart
  33. RootJoint=RootPart.RootJoint
  34. RootCF=euler(-1.57,0,3.14)
  35. attack = false
  36. bounce=false
  37. cooldown=false
  38. deeznuts=false
  39. attackdebounce = false
  40. deb=false
  41. equipped=true
  42. hand=false
  43. MMouse=nil
  44. combo=0
  45. mana=0
  46. trispeed=.2
  47. attackmode='none'
  48. local idle=0
  49. local Anim="Idle"
  50. local Effects={}
  51. local gun=false
  52. local shoot=false
  53. player=nil
  54. mana=0
  55. game:service("Chat"):Chat(Head, "The last form of my asriel transformation!", Enum.ChatColor.Blue)
  56. wait(1)
  57. game:service("Chat"):Chat(Head, "A world that will rip to shreds.", Enum.ChatColor.Blue)
  58. wait(1)
  59. game:service("Chat"):Chat(Head, "Obey your new founding fathers and america!", Enum.ChatColor.Green)
  60. wait(1)
  61. game:service("Chat"):Chat(Head, "A NATION REBORN!!", Enum.ChatColor.Red)
  62. wait(1)
  63. game:service("Chat"):Chat(Head, "My soul isnt proud, and i wont be either!", Enum.ChatColor.Green)
  64. wait(1)
  65. game:service("Chat"):Chat(Head, "You've defeated me once...", Enum.ChatColor.Green)
  66. wait(1)
  67. game:service("Chat"):Chat(Head, "AND IM NOT GONNA LET IT HAPPEN AGAIN!", Enum.ChatColor.Red)
  68. wait(1)
  69. cam = workspace.CurrentCamera
  70. ZTarget = nil
  71. RocketTarget = nil
  72. local m = Instance.new("Model",Character)
  73. m.Name = "WeaponModel"
  74.  
  75. mouse=Player:GetMouse()
  76. --save shoulders
  77. RSH, LSH=nil, nil
  78. --welds
  79. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  80. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  81. LH=Torso["Left Hip"]
  82. RH=Torso["Right Hip"]
  83. function NoOutline(Part)
  84. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  85. end
  86. player=Player
  87. ch=Character
  88. RSH=ch.Torso["Right Shoulder"]
  89. LSH=ch.Torso["Left Shoulder"]
  90. --
  91. RSH.Parent=nil
  92. LSH.Parent=nil
  93. --
  94. RW.Name="Right Shoulder"
  95. RW.Part0=ch.Torso
  96. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  97. RW.C1=cf(0, 0.5, 0)
  98. RW.Part1=ch["Right Arm"]
  99. RW.Parent=ch.Torso
  100. --
  101. LW.Name="Left Shoulder"
  102. LW.Part0=ch.Torso
  103. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  104. LW.C1=cf(0, 0.5, 0)
  105. LW.Part1=ch["Left Arm"]
  106. LW.Parent=ch.Torso
  107.  
  108. function swait(num)
  109. if num==0 or num==nil then
  110. game:service'RunService'.Heartbeat:wait(0)
  111. else
  112. for i=0,num do
  113. game:service'RunService'.Heartbeat:wait(0)
  114. end
  115. end
  116. end
  117.  
  118. function nooutline(part)
  119. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  120. end
  121.  
  122. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  123. local fp=it("Part")
  124. fp.formFactor=formfactor
  125. fp.Parent=parent
  126. fp.Reflectance=reflectance
  127. fp.Transparency=transparency
  128. fp.CanCollide=false
  129. fp.Locked=true
  130. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  131. fp.Name=name
  132. fp.Size=size
  133. fp.Position=Character.Torso.Position
  134. nooutline(fp)
  135. fp.Material=material
  136. fp:BreakJoints()
  137. return fp
  138. end
  139.  
  140. function ppart(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  141. local fp = it("Part")
  142. fp.formFactor = formfactor
  143. fp.Parent = parent
  144. fp.Reflectance = reflectance
  145. fp.Transparency = transparency
  146. fp.CanCollide = false
  147. fp.Locked=true
  148. fp.BrickColor = brickcolor
  149. fp.Name = name
  150. fp.Size = size
  151. fp.Position = EffectPart.Position
  152. NoOutline(fp)
  153. fp.Material="Neon"
  154. fp:BreakJoints()
  155. return fp
  156. end
  157.  
  158. function wweld(parent,part0,part1,c0)
  159. local weld=it("Weld")
  160. weld.Parent=parent
  161. weld.Part0=part0
  162. weld.Part1=part1
  163. weld.C0=c0
  164. return weld
  165. end
  166.  
  167. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  168. local mesh=it(Mesh)
  169. mesh.Parent=part
  170. if Mesh=="SpecialMesh" then
  171. mesh.MeshType=meshtype
  172. mesh.MeshId=meshid
  173. end
  174. mesh.Offset=offset
  175. mesh.Scale=scale
  176. return mesh
  177. end
  178.  
  179. function decal(part,face,texture,transparency,shiny,specular,name)
  180. local d=it("Decal",part)
  181. d.Shiny=shiny
  182. d.Face=face
  183. d.Specular=specular
  184. d.Transparency=transparency
  185. d.Texture=texture
  186. d.Name=name
  187. return d
  188. end
  189.  
  190. function weld(parent,part0,part1,c0,c1)
  191. local weld=it("Weld")
  192. weld.Parent=parent
  193. weld.Part0=part0
  194. weld.Part1=part1
  195. weld.C0=c0
  196. weld.C1=c1
  197. return weld
  198. end
  199.  
  200.  
  201. local function CFrameFromTopBack(at, top, back)
  202. local right = top:Cross(back)
  203. return CFrame.new(at.x, at.y, at.z,
  204. right.x, top.x, back.x,
  205. right.y, top.y, back.y,
  206. right.z, top.z, back.z)
  207. end
  208.  
  209. function Triangle(a, b, c)
  210. local edg1 = (c-a):Dot((b-a).unit)
  211. local edg2 = (a-b):Dot((c-b).unit)
  212. local edg3 = (b-c):Dot((a-c).unit)
  213. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  214. a, b, c = a, b, c
  215. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  216. a, b, c = b, c, a
  217. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  218. a, b, c = c, a, b
  219. else
  220. assert(false, "unreachable")
  221. end
  222.  
  223. local len1 = (c-a):Dot((b-a).unit)
  224. local len2 = (b-a).magnitude - len1
  225. local width = (a + (b-a).unit*len1 - c).magnitude
  226.  
  227. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  228.  
  229. local list = {}
  230.  
  231. local TrailColor = ("Institutional white")
  232.  
  233. if len1 > 0.01 then
  234. local w1 = Instance.new('WedgePart', m)
  235. game:GetService("Debris"):AddItem(w1,5)
  236. w1.Material = "Neon"
  237. w1.FormFactor = 'Custom'
  238. w1.BrickColor = BrickColor.new(TrailColor)
  239. w1.Transparency = 0
  240. w1.Reflectance = 0
  241. w1.Material = "Neon"
  242. w1.CanCollide = false
  243. NoOutline(w1)
  244. local sz = Vector3.new(0.2, width, len1)
  245. w1.Size = sz
  246. local sp = Instance.new("SpecialMesh",w1)
  247. sp.MeshType = "Wedge"
  248. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  249. w1:BreakJoints()
  250. w1.Anchored = true
  251. w1.Parent = workspace
  252. w1.Transparency = 0.7
  253. table.insert(Effects,{w1,"Disappear",.01})
  254. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  255. table.insert(list,w1)
  256. end
  257.  
  258. if len2 > 0.01 then
  259. local w2 = Instance.new('WedgePart', m)
  260. game:GetService("Debris"):AddItem(w2,5)
  261. w2.Material = "Neon"
  262. w2.FormFactor = 'Custom'
  263. w2.BrickColor = BrickColor.new(TrailColor)
  264. w2.Transparency = 0
  265. w2.Reflectance = 0
  266. w2.Material = "Neon"
  267. w2.CanCollide = false
  268. NoOutline(w2)
  269. local sz = Vector3.new(0.2, width, len2)
  270. w2.Size = sz
  271. local sp = Instance.new("SpecialMesh",w2)
  272. sp.MeshType = "Wedge"
  273. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  274. w2:BreakJoints()
  275. w2.Anchored = true
  276. w2.Parent = workspace
  277. w2.Transparency = 0.7
  278. table.insert(Effects,{w2,"Disappear",.01})
  279. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  280. table.insert(list,w2)
  281. end
  282. return unpack(list)
  283. end
  284.  
  285.  
  286. so = function(id,par,vol,pit)
  287. coroutine.resume(coroutine.create(function()
  288. local sou = Instance.new("Sound",par or workspace)
  289. sou.Volume=vol
  290. sou.Pitch=pit or 1
  291. sou.SoundId=id
  292. swait()
  293. sou:play()
  294. game:GetService("Debris"):AddItem(sou,6)
  295. end))
  296. end
  297.  
  298. function clerp(a,b,t)
  299. local qa = {QuaternionFromCFrame(a)}
  300. local qb = {QuaternionFromCFrame(b)}
  301. local ax, ay, az = a.x, a.y, a.z
  302. local bx, by, bz = b.x, b.y, b.z
  303. local _t = 1-t
  304. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  305. end
  306.  
  307. function QuaternionFromCFrame(cf)
  308. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  309. local trace = m00 + m11 + m22
  310. if trace > 0 then
  311. local s = math.sqrt(1 + trace)
  312. local recip = 0.5/s
  313. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  314. else
  315. local i = 0
  316. if m11 > m00 then
  317. i = 1
  318. end
  319. if m22 > (i == 0 and m00 or m11) then
  320. i = 2
  321. end
  322. if i == 0 then
  323. local s = math.sqrt(m00-m11-m22+1)
  324. local recip = 0.5/s
  325. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  326. elseif i == 1 then
  327. local s = math.sqrt(m11-m22-m00+1)
  328. local recip = 0.5/s
  329. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  330. elseif i == 2 then
  331. local s = math.sqrt(m22-m00-m11+1)
  332. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  333. end
  334. end
  335. end
  336.  
  337. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  338. local xs, ys, zs = x + x, y + y, z + z
  339. local wx, wy, wz = w*xs, w*ys, w*zs
  340. local xx = x*xs
  341. local xy = x*ys
  342. local xz = x*zs
  343. local yy = y*ys
  344. local yz = y*zs
  345. local zz = z*zs
  346. 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))
  347. end
  348.  
  349. function QuaternionSlerp(a, b, t)
  350. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  351. local startInterp, finishInterp;
  352. if cosTheta >= 0.0001 then
  353. if (1 - cosTheta) > 0.0001 then
  354. local theta = math.acos(cosTheta)
  355. local invSinTheta = 1/math.sin(theta)
  356. startInterp = math.sin((1-t)*theta)*invSinTheta
  357. finishInterp = math.sin(t*theta)*invSinTheta
  358. else
  359. startInterp = 1-t
  360. finishInterp = t
  361. end
  362. else
  363. if (1+cosTheta) > 0.0001 then
  364. local theta = math.acos(-cosTheta)
  365. local invSinTheta = 1/math.sin(theta)
  366. startInterp = math.sin((t-1)*theta)*invSinTheta
  367. finishInterp = math.sin(t*theta)*invSinTheta
  368. else
  369. startInterp = t-1
  370. finishInterp = t
  371. end
  372. end
  373. 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
  374. end
  375.  
  376. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  377. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  378. end
  379.  
  380. Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  381. if hit.Parent==nil then
  382. return
  383. end
  384. local h=hit.Parent:FindFirstChild("Humanoid")
  385. for _,v in pairs(hit.Parent:children()) do
  386. if v:IsA("Humanoid") then
  387. h=v
  388. end
  389. end
  390. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  391. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  392. end
  393. if hit.Parent.className=="Hat" then
  394. hit=hit.Parent.Parent:findFirstChild("Head")
  395. end
  396. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  397. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  398. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  399. return
  400. end]]
  401. -- hs(hit,1.2)
  402. local c=Instance.new("ObjectValue")
  403. c.Name="creator"
  404. c.Value=game:service("Players").LocalPlayer
  405. c.Parent=h
  406. game:GetService("Debris"):AddItem(c,.5)
  407. local Damage=math.rad(minim,maxim)
  408. -- h:TakeDamage(Damage)
  409. local blocked=false
  410. local block=hit.Parent:findFirstChild("Block")
  411. if block~=nil then
  412. print(block.className)
  413. if block.className=="NumberValue" then
  414. if block.Value>0 then
  415. blocked=true
  416. if decreaseblock==nil then
  417. block.Value=block.Value-1
  418. end
  419. end
  420. end
  421. if block.className=="IntValue" then
  422. if block.Value>0 then
  423. blocked=true
  424. if decreaseblock~=nil then
  425. block.Value=block.Value-1
  426. end
  427. end
  428. end
  429. end
  430. if blocked==false then
  431. -- h:TakeDamage(Damage)
  432. h.Health=h.Health-Damage
  433. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
  434. else
  435. h.Health=h.Health-(Damage/2)
  436. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Bright blue").Color)
  437. end
  438. if Type=="Knockdown" then
  439. local hum=hit.Parent.Humanoid
  440. hum.PlatformStand=true
  441. coroutine.resume(coroutine.create(function(HHumanoid)
  442. swait(1)
  443. HHumanoid.PlatformStand=false
  444. end),hum)
  445. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  446. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  447. local bodvol=Instance.new("BodyVelocity")
  448. bodvol.velocity=angle*knockback
  449. bodvol.P=5000
  450. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  451. bodvol.Parent=hit
  452. local rl=Instance.new("BodyAngularVelocity")
  453. rl.P=3000
  454. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  455. rl.angularvelocity=Vector3.new(math.rad(-10,10),math.rad(-10,10),math.rad(-10,10))
  456. rl.Parent=hit
  457. game:GetService("Debris"):AddItem(bodvol,.5)
  458. game:GetService("Debris"):AddItem(rl,.5)
  459. elseif Type=="Normal" then
  460. local vp=Instance.new("BodyVelocity")
  461. vp.P=500
  462. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  463. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  464. if KnockbackType==1 then
  465. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  466. elseif KnockbackType==2 then
  467. vp.velocity=Property.CFrame.lookVector*knockback
  468. end
  469. if knockback>0 then
  470. vp.Parent=hit.Parent.Torso
  471. end
  472. game:GetService("Debris"):AddItem(vp,.5)
  473. elseif Type=="Up" then
  474. local bodyVelocity=Instance.new("BodyVelocity")
  475. bodyVelocity.velocity=vt(0,60,0)
  476. bodyVelocity.P=5000
  477. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  478. bodyVelocity.Parent=hit
  479. game:GetService("Debris"):AddItem(bodyVelocity,1)
  480. local rl=Instance.new("BodyAngularVelocity")
  481. rl.P=3000
  482. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  483. rl.angularvelocity=Vector3.new(math.rad(-30,30),math.rad(-30,30),math.rad(-30,30))
  484. rl.Parent=hit
  485. game:GetService("Debris"):AddItem(rl,.5)
  486. elseif Type=="Snare" then
  487. local bp=Instance.new("BodyPosition")
  488. bp.P=2000
  489. bp.D=100
  490. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  491. bp.position=hit.Parent.Torso.Position
  492. bp.Parent=hit.Parent.Torso
  493. game:GetService("Debris"):AddItem(bp,1)
  494. elseif Type=="Target" then
  495. local Targetting = false
  496. if Targetting==false then
  497. ZTarget=hit.Parent.Torso
  498. coroutine.resume(coroutine.create(function(Part)
  499. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  500. swait(5)
  501. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  502. end),ZTarget)
  503. local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  504. local targetgui=Instance.new("BillboardGui")
  505. targetgui.Parent=ZTarget
  506. targetgui.Size=UDim2.new(10,100,10,100)
  507. local targ=Instance.new("ImageLabel")
  508. targ.Parent=targetgui
  509. targ.BackgroundTransparency=1
  510. targ.Image="rbxassetid://4834067"
  511. targ.Size=UDim2.new(1,0,1,0)
  512. cam.CameraType="Scriptable"
  513. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  514. local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  515. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  516. Targetting=true
  517. RocketTarget=ZTarget
  518. for i=1,Property do
  519. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  520. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  521. swait()
  522. end
  523. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  524. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  525. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  526. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  527. end
  528. Targetting=false
  529. RocketTarget=nil
  530. targetgui.Parent=nil
  531. cam.CameraType="Custom"
  532. end
  533. end
  534. local debounce=Instance.new("BoolValue")
  535. debounce.Name="DebounceHit"
  536. debounce.Parent=hit.Parent
  537. debounce.Value=true
  538. game:GetService("Debris"):AddItem(debounce,Delay)
  539. c=Instance.new("ObjectValue")
  540. c.Name="creator"
  541. c.Value=Player
  542. c.Parent=h
  543. game:GetService("Debris"):AddItem(c,.5)
  544. end
  545. end
  546.  
  547.  
  548. function ShowDamage(Pos, Text, Time, Color)
  549. local Rate = (1 / 30)
  550. local Pos = (Pos or Vector3.new(0, 0, 0))
  551. local Text = (Text or "")
  552. local Time = (Time or 2)
  553. local Color = (Color or Color3.new(1, 0, 0))
  554. local EffectPart = part("Custom",workspace,"SmoothPlastic",0,1,BrickColor.new(Color),"Effect",vt(0,0,0))
  555. EffectPart.Anchored = true
  556. local BillboardGui = Instance.new("BillboardGui")
  557. BillboardGui.Size = UDim2.new(3, 0, 3, 0)
  558. BillboardGui.Adornee = EffectPart
  559. local TextLabel = Instance.new("TextLabel")
  560. TextLabel.BackgroundTransparency = 1
  561. TextLabel.Size = UDim2.new(1, 0, 1, 0)
  562. TextLabel.Text = Text
  563. TextLabel.TextColor3 = Color
  564. TextLabel.TextScaled = true
  565. TextLabel.Font = Enum.Font.ArialBold
  566. TextLabel.Parent = BillboardGui
  567. BillboardGui.Parent = EffectPart
  568. game.Debris:AddItem(EffectPart, (Time + 0.1))
  569. EffectPart.Parent = game:GetService("Workspace")
  570. Delay(0, function()
  571. local Frames = (Time / Rate)
  572. for Frame = 1, Frames do
  573. wait(Rate)
  574. local Percent = (Frame / Frames)
  575. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  576. TextLabel.TextTransparency = Percent
  577. end
  578. if EffectPart and EffectPart.Parent then
  579. EffectPart:Destroy()
  580. end
  581. end)
  582. end
  583.  
  584. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  585. local fp=it("Part")
  586. fp.formFactor=formfactor
  587. fp.Parent=parent
  588. fp.Reflectance=reflectance
  589. fp.Transparency=transparency
  590. fp.CanCollide=false
  591. fp.Locked=true
  592. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  593. fp.Name=name
  594. fp.Size=size
  595. fp.Position=Character.Torso.Position
  596. nooutline(fp)
  597. fp.Material=material
  598. fp:BreakJoints()
  599. return fp
  600. end
  601.  
  602. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  603. local mesh=it(Mesh)
  604. mesh.Parent=part
  605. if Mesh=="SpecialMesh" then
  606. mesh.MeshType=meshtype
  607. mesh.MeshId=meshid
  608. end
  609. mesh.Offset=offset
  610. mesh.Scale=scale
  611. return mesh
  612. end
  613.  
  614. function weld(parent,part0,part1,c0,c1)
  615. local weld=it("Weld")
  616. weld.Parent=parent
  617. weld.Part0=part0
  618. weld.Part1=part1
  619. weld.C0=c0
  620. weld.C1=c1
  621. return weld
  622. end
  623.  
  624. -----Asriel {R} Arm-----
  625. p=Instance.new('Part',Character)
  626. p.BrickColor=BrickColor.new('Institutional white')
  627. p.Material=("Neon")
  628. p.Name="P1"
  629. p.Size=Vector3.new(1.2,2.2,1.2)
  630. w=Instance.new('Weld',Character.P1)
  631. w.Part0=Character.P1
  632. w.Part1=RightArm
  633. ------------------------------
  634. p=Instance.new('Part',Character)
  635. p.BrickColor=BrickColor.new('Really black')
  636. p.Material=("Neon")
  637. p.Name="P2"
  638. p.Size=Vector3.new(1.3, 0.2, 1.3)
  639. w=Instance.new('Weld',Character.P2)
  640. w.Part0=Character.P2
  641. w.Part1=RightArm
  642. w.C0=CFrame.new(0,0.8,0)
  643. ------------------------------
  644. p=Instance.new('Part',Character)
  645. p.BrickColor=BrickColor.new('Really black')
  646. p.Material=("Neon")
  647. p.Name="Diamond1"
  648. p.Size=Vector3.new(1.3, 0.2, 1.3)
  649. m=Instance.new('SpecialMesh',Character.Diamond1)
  650. m.MeshId="http://www.roblox.com/asset/?id=9756362"
  651. m.Scale=Vector3.new(1.3, 1.4, 1.3)
  652. w=Instance.new('Weld',Character.Diamond1)
  653. w.Part0=Character.Diamond1
  654. w.Part1=RightArm
  655. w.C0=CFrame.new(0,0,0)
  656. ----------------------------------
  657. p=Instance.new('Part',Character)
  658. p.BrickColor=BrickColor.new('Really black')
  659. p.Material=("Neon")
  660. p.Name="P3"
  661. p.Size=Vector3.new(1.3, 0.2, 1.3)
  662. w=Instance.new('Weld',Character.P3)
  663. w.Part0=Character.P3
  664. w.Part1=RightArm
  665. w.C0=CFrame.new(0,0.4,0)
  666. ------------------------------------------
  667. p=Instance.new('Part',Character)
  668. p.BrickColor=BrickColor.new('Really black')
  669. p.Material=("Neon")
  670. p.Name="P5"
  671. p.Size=Vector3.new(1.3, 0.2, 1.3)
  672. w=Instance.new('Weld',Character.P5)
  673. w.Part0=Character.P5
  674. w.Part1=RightArm
  675. w.C0=CFrame.new(0,-0.8,0)
  676. -----------------------------------------------------
  677. p=Instance.new('Part',Character)
  678. p.BrickColor=BrickColor.new('Really black')
  679. p.Material=("Neon")
  680. p.Name="P4"
  681. p.Size=Vector3.new(1.3, 0.2, 1.3)
  682. w=Instance.new('Weld',Character.P4)
  683. w.Part0=Character.P4
  684. w.Part1=RightArm
  685. w.C0=CFrame.new(0,-0.4,0)
  686. -----Left Asriel {R} Arm Two----------------------
  687. p=Instance.new('Part',Character)
  688. p.BrickColor=BrickColor.new('Institutional white')
  689. p.Material=("Neon")
  690. p.Name="P6"
  691. p.Size=Vector3.new(1.2,2.2,1.2)
  692. w=Instance.new('Weld',Character.P6)
  693. w.Part0=Character.P6
  694. w.Part1=LeftArm
  695. ------------------------------
  696. p=Instance.new('Part',Character)
  697. p.BrickColor=BrickColor.new('Really black')
  698. p.Material=("Neon")
  699. p.Name="P7"
  700. p.Size=Vector3.new(1.3, 0.2, 1.3)
  701. w=Instance.new('Weld',Character.P7)
  702. w.Part0=Character.P7
  703. w.Part1=LeftArm
  704. w.C0=CFrame.new(0,0.8,0)
  705. ------------------------------
  706. p=Instance.new('Part',Character)
  707. p.BrickColor=BrickColor.new('Really black')
  708. p.Material=("Neon")
  709. p.Name="Diamond2"
  710. p.Size=Vector3.new(1.3, 0.2, 1.3)
  711. m=Instance.new('SpecialMesh',Character.Diamond2)
  712. m.MeshId="http://www.roblox.com/asset/?id=9756362"
  713. m.Scale=Vector3.new(1.3, 1.4, 1.3)
  714. w=Instance.new('Weld',Character.Diamond2)
  715. w.Part0=Character.Diamond2
  716. w.Part1=LeftArm
  717. w.C0=CFrame.new(0,0,0)
  718. ----------------------------------
  719. p=Instance.new('Part',Character)
  720. p.BrickColor=BrickColor.new('Really black')
  721. p.Material=("Neon")
  722. p.Name="P8"
  723. p.Size=Vector3.new(1.3, 0.2, 1.3)
  724. w=Instance.new('Weld',Character.P8)
  725. w.Part0=Character.P8
  726. w.Part1=LeftArm
  727. w.C0=CFrame.new(0,0.4,0)
  728. ------------------------------------------
  729. p=Instance.new('Part',Character)
  730. p.BrickColor=BrickColor.new('Really black')
  731. p.Material=("Neon")
  732. p.Name="P9"
  733. p.Size=Vector3.new(1.3, 0.2, 1.3)
  734. w=Instance.new('Weld',Character.P9)
  735. w.Part0=Character.P9
  736. w.Part1=LeftArm
  737. w.C0=CFrame.new(0,-0.8,0)
  738. -----------------------------------------------------
  739. p=Instance.new('Part',Character)
  740. p.BrickColor=BrickColor.new('Really black')
  741. p.Material=("Neon")
  742. p.Name="P10"
  743. p.Size=Vector3.new(1.3, 0.2, 1.3)
  744. w=Instance.new('Weld',Character.P10)
  745. w.Part0=Character.P10
  746. w.Part1=LeftArm
  747. w.C0=CFrame.new(0,-0.4,0)
  748. ------- Asriel {R} Leg-------
  749. p=Instance.new('Part',Character)
  750. p.BrickColor=BrickColor.new('Institutional white')
  751. p.Material=("Neon")
  752. p.Name="R1"
  753. p.Size=Vector3.new(1.2,2,1.2)
  754. w=Instance.new('Weld',Character.R1)
  755. w.Part0=Character.R1
  756. w.Part1=RightLeg
  757. ------------------------------
  758. p=Instance.new('Part',Character)
  759. p.BrickColor=BrickColor.new('Really black')
  760. p.Material=("Neon")
  761. p.Name="R2"
  762. p.Size=Vector3.new(1.3, 0.2, 1.3)
  763. w=Instance.new('Weld',Character.R2)
  764. w.Part0=Character.R2
  765. w.Part1=RightLeg
  766. w.C0=CFrame.new(0,0.7,0)
  767. ------------------------------
  768. p=Instance.new('Part',Character)
  769. p.BrickColor=BrickColor.new('Really black')
  770. p.Material=("Neon")
  771. p.Name="Diamond3"
  772. p.Size=Vector3.new(1.3, 0.2, 1.3)
  773. m=Instance.new('SpecialMesh',Character.Diamond3)
  774. m.MeshId="http://www.roblox.com/asset/?id=9756362"
  775. m.Scale=Vector3.new(1, 1, 1)
  776. w=Instance.new('Weld',Character.Diamond3)
  777. w.Part0=Character.Diamond3
  778. w.Part1=RightLeg
  779. w.C0=CFrame.new(0,0,0)
  780. ----------------------------------
  781. p=Instance.new('Part',Character)
  782. p.BrickColor=BrickColor.new('Really black')
  783. p.Material=("Neon")
  784. p.Name="Bash1"
  785. p.Size=Vector3.new(1.3, 0.2, 1.3)
  786. m=Instance.new('SpecialMesh',Character.Bash1)
  787. m.Scale=Vector3.new(5, 0, 1)
  788. w=Instance.new('Weld',Character.Bash1)
  789. w.Part0=Character.Bash1
  790. w.Part1=RightLeg
  791. w.C0=CFrame.new(0,0,0)
  792. ----------------------------------
  793. p=Instance.new('Part',Character)
  794. p.BrickColor=BrickColor.new('Really black')
  795. p.Material=("Neon")
  796. p.Name="R3"
  797. p.Size=Vector3.new(1.3, 0.2, 1.3)
  798. w=Instance.new('Weld',Character.R3)
  799. w.Part0=Character.R3
  800. w.Part1=RightLeg
  801. w.C0=CFrame.new(0,-0.7,0)
  802. ------------------------------
  803. p=Instance.new('Part',Character)
  804. p.BrickColor=BrickColor.new('Institutional white')
  805. p.Material=("Neon")
  806. p.Name="R4"
  807. p.Size=Vector3.new(1.2,2,1.2)
  808. w=Instance.new('Weld',Character.R4)
  809. w.Part0=Character.R4
  810. w.Part1=LeftLeg
  811. ------------------------------
  812. p=Instance.new('Part',Character)
  813. p.BrickColor=BrickColor.new('Really black')
  814. p.Material=("Neon")
  815. p.Name="R5"
  816. p.Size=Vector3.new(1.3, 0.2, 1.3)
  817. w=Instance.new('Weld',Character.R5)
  818. w.Part0=Character.R5
  819. w.Part1=LeftLeg
  820. w.C0=CFrame.new(0,0.7,0)
  821. ------------------------------
  822. p=Instance.new('Part',Character)
  823. p.BrickColor=BrickColor.new('Really black')
  824. p.Material=("Neon")
  825. p.Name="Diamond4"
  826. p.Size=Vector3.new(1.3, 0.2, 1.3)
  827. m=Instance.new('SpecialMesh',Character.Diamond4)
  828. m.MeshId="http://www.roblox.com/asset/?id=9756362"
  829. m.Scale=Vector3.new(1, 1, 1)
  830. w=Instance.new('Weld',Character.Diamond4)
  831. w.Part0=Character.Diamond4
  832. w.Part1=LeftLeg
  833. w.C0=CFrame.new(0,0,0)
  834. ----------------------------------
  835. p=Instance.new('Part',Character)
  836. p.BrickColor=BrickColor.new('Really black')
  837. p.Material=("Neon")
  838. p.Name="Bash2"
  839. p.Size=Vector3.new(1.3, 0.2, 1.3)
  840. m=Instance.new('SpecialMesh',Character.Bash2)
  841. m.Scale=Vector3.new(5, 0, 1)
  842. w=Instance.new('Weld',Character.Bash2)
  843. w.Part0=Character.Bash2
  844. w.Part1=LeftLeg
  845. w.C0=CFrame.new(0,0,0)
  846. ----------------------------------
  847. p=Instance.new('Part',Character)
  848. p.BrickColor=BrickColor.new('Really black')
  849. p.Material=("Neon")
  850. p.Name="R6"
  851. p.Size=Vector3.new(1.3, 0.2, 1.3)
  852. w=Instance.new('Weld',Character.R6)
  853. w.Part0=Character.R6
  854. w.Part1=LeftLeg
  855. w.C0=CFrame.new(0,-0.7,0)
  856. ------- Death {A} Ray --------
  857. p=Instance.new('Part',Character)
  858. p.Name="DeathRay"
  859. p.Size=Vector3.new(0.2, 5.22, 2.13)
  860. p.BrickColor=BrickColor.new('White')
  861. p.Transparency=1
  862. d=Instance.new('Decal',Character.DeathRay)
  863. d.Face="Left"
  864. d.Texture="http://www.roblox.com/asset/?id=340395528"
  865. d=Instance.new('Decal',Character.DeathRay)
  866. d.Face="Right"
  867. d.Texture="http://www.roblox.com/asset/?id=340395528"
  868. w=Instance.new('Weld',Character.DeathRay)
  869. w.Part0=Character.DeathRay
  870. w.Part1=LeftArm
  871. w.C0=CFrame.new(0.7,0,0)
  872. ------- Left Death {A} Ray --------
  873. p=Instance.new('Part',Character)
  874. p.Name="DeathRay2"
  875. p.Size=Vector3.new(0.2, 5.22, 2.13)
  876. p.BrickColor=BrickColor.new('White')
  877. p.Transparency=1
  878. d=Instance.new('Decal',Character.DeathRay2)
  879. d.Face="Left"
  880. d.Texture="http://www.roblox.com/asset/?id=340395528"
  881. d=Instance.new('Decal',Character.DeathRay2)
  882. d.Face="Right"
  883. d.Texture="http://www.roblox.com/asset/?id=340395528"
  884. w=Instance.new('Weld',Character.DeathRay2)
  885. w.Part0=Character.DeathRay2
  886. w.Part1=RightArm
  887. w.C0=CFrame.new(-0.7,0,0)
  888. ---Asrielovania {R} Music---
  889. s=Instance.new('Sound',Character)
  890. s.SoundId="rbxassetid://306154368"
  891. s.Volume=1
  892. s.Pitch=1
  893. s.Looped=true
  894. s:Play()
  895. -------Sorcer {A} Sword-------
  896. handle=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","Handle",Vector3.new(0.200000003, 1.61857152, 0.200000003))
  897. handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.995889783, -0.101109691, 0.0468789339, -5.23798153e-005, 0.99999994, -0.000210702419, -6.36925748e-008, -0.000210702419, -0.99999994, -1, -5.23798008e-005, 7.47295417e-008))
  898. mesh("CylinderMesh",handle,"","",Vector3.new(0, 0, 0),Vector3.new(0.857142806, 1, 0.857142746))
  899. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.200000003, 0.257142872, 0.911428571))
  900. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00982296467, -0.128642559, 5.57254982, -1.21753502e-007, -2.87620594e-010, 1, -1, -1.04306673e-006, -1.2175461e-007, 1.04306673e-006, -1, -2.87123214e-010))
  901. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.571428537, 1, 1))
  902. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.200000003, 3.74285722, 0.571428657))
  903. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0100114346, 3.24283266, 2.64644623e-005, -2.98713599e-006, -1.63886575e-008, -1, -1.18017197e-005, -0.99999994, 1.64265153e-008, -0.99999994, 1.18017197e-005, 2.98713007e-006))
  904. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 1, 1))
  905. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.200000003, 3.74285722, 0.514285743))
  906. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00896048546, 3.24313331, -6.2584877e-006, -2.62832918e-006, -1.58840017e-008, -1, -1.16825104e-005, -0.99999994, 1.59122848e-008, -0.99999994, 1.16825104e-005, 2.62831986e-006))
  907. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.571428537, 1, 1))
  908. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.200000003, 0.914285779, 0.254285723))
  909. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0080575943, -5.57459974, 0.127099097, -7.20826961e-007, -1.18548371e-009, 1, 6.25863322e-007, 1, 1.18891563e-009, -1, 6.25863322e-007, -7.20827984e-007))
  910. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.571428537, 1, 1))
  911. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.200000003, 0.942857206, 0.28285715))
  912. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00858414173, -5.58866072, 0.142816901, -5.41048905e-007, -8.99582631e-010, 1, -5.96046448e-007, 0.99999994, 9.00953978e-010, -0.99999994, -5.96046448e-007, -5.41057148e-007))
  913. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 1, 1))
  914. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.200000003, 0.285714328, 0.940000057))
  915. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.011053443, -0.142930448, 5.58944941, 2.97432763e-007, 3.64387631e-010, 1, -1, 6.25863322e-007, 2.9743137e-007, -6.25863322e-007, -1, 3.63804986e-010))
  916. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 1, 1))
  917. Part=part(Enum.FormFactor.Brick,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(1, 1.20000005, 1))
  918. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.57627869e-007, -0.809324801, 1.96695328e-006, 6.20105922e-008, 2.27451835e-010, -1, 1.81795622e-006, 1, 2.27856845e-010, 1, -1.81795622e-006, 6.2011928e-008))
  919. mesh("SpecialMesh",Part,Enum.MeshType.Head,"",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 0.142857134, 0.285714298))
  920. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.483492821, 0.539954185, 0.539909601))
  921. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00226664543, 0.69951874, 1.00827909, 5.41296288e-007, 9.50464596e-010, -1, 0.707107663, -0.707105815, 3.8208583e-007, -0.707105815, -0.707107663, -3.83435292e-007))
  922. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714179))
  923. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.892679513, 0.539954185, 0.771299422))
  924. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.19487548, -0.00217807293, 3.74913216e-005, 2.29479338e-006, 1, 7.06279479e-012, -6.20287395e-008, -7.34701189e-012, 1, 1, -2.29479338e-006, 6.20337914e-008))
  925. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.857145786, 1))
  926. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.892679513, 0.539954185, 0.771299422))
  927. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.19487882, -0.00217807293, 4.00543213e-005, 2.0563748e-006, 1, 1.14326326e-011, -6.20178255e-008, -1.28039801e-011, 1, 1, -2.0563748e-006, 6.20228633e-008))
  928. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.10000002, 0.571431458, 1.10000002))
  929. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.483492851, 0.539954185, 0.539909601))
  930. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00595891476, -1.00750566, 1.00747085, -1.81721958e-007, -3.98678424e-010, 1, -0.707107067, 0.707106411, -1.28216811e-007, -0.707106411, -0.707106948, -1.28784094e-007))
  931. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714179))
  932. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.483492821, 0.539954185, 0.539909601))
  933. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00534570217, -1.00757694, -0.698815584, 2.4158129e-007, 4.89748686e-010, -1, -0.707107604, 0.707105875, -1.70486445e-007, 0.707105815, 0.707107544, 1.71177419e-007))
  934. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714269))
  935. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.493492872, 0.539954185, 0.539909601))
  936. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000260472298, 0.6988675, -0.698937058, 3.01447898e-007, 5.80818948e-010, -1, -0.707105994, -0.707107365, -2.13563524e-007, -0.707107365, 0.707106113, -2.12752497e-007))
  937. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714269))
  938. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(1.46267962, 0.200000003, 0.200000003))
  939. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00927072763, -0.0121991634, 1.19311547, 0.999999881, -2.08614802e-006, 1.9306286e-007, -1.93059051e-007, -1.09411957e-007, 1, -2.08616257e-006, -0.999999881, -1.09408283e-007))
  940. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  941. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(1.06267953, 0.200000003, 0.200000003))
  942. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.604586363, -0.0121991634, 1.02863288, 0.866026282, 0.499998033, 2.28958157e-007, -1.93872992e-007, -1.22099237e-007, 1, 0.499998033, -0.866026282, -8.79730777e-009))
  943. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  944. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(1.46267962, 0.200000003, 0.200000003))
  945. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.03790355, -0.0121991634, 0.588528812, 0.500001669, 0.866024196, 1.74744486e-007, -1.6279435e-007, -1.0777579e-007, 1, 0.866024196, -0.500001669, 8.71042545e-008))
  946. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  947. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.662679553, 0.200000003, 0.200000003))
  948. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.39311564, -0.0121991634, -0.00927072763, 2.08616257e-006, 0.999999881, 7.82298955e-008, -1.51383063e-007, -7.82268899e-008, 1, 0.999999881, -2.08614802e-006, 1.51386175e-007))
  949. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  950. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(1.46267951, 0.200000003, 0.200000003))
  951. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.02863288, -0.0121997595, -0.604586482, -0.499998093, 0.866026223, -6.44970513e-008, -1.45620604e-007, -9.60127267e-009, 1, 0.866026223, 0.499998093, 1.30918266e-007))
  952. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  953. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(1.06267953, 0.200000003, 0.200000003))
  954. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.588528991, -0.0121992826, -1.03790355, -0.866024137, 0.500001729, -9.11133142e-008, -1.16737233e-007, -1.99774206e-008, 1, 0.500001729, 0.866024137, 7.56750538e-008))
  955. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  956. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.372464359, 0.762464345, 0.762464285))
  957. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00338602066, -0.736121356, -0.540583551, 5.41296288e-007, 9.50464596e-010, -1, 0.707107663, -0.707105815, 3.8208583e-007, -0.707105815, -0.707107663, -3.83435292e-007))
  958. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.895366609, 0.128561974, 0.128542364))
  959. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.382464379, 0.762464345, 0.762464285))
  960. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00803625584, -0.737174749, 0.736498654, 3.01447898e-007, 5.80818948e-010, -1, -0.707105994, -0.707107365, -2.13563524e-007, -0.707107365, 0.707106113, -2.12752497e-007))
  961. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.913885474, 0.128561974, 0.128542408))
  962. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.40246433, 0.762464345, 0.762464285))
  963. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00594449043, 0.540397167, 0.737201214, 2.4158129e-007, 4.89748686e-010, -1, -0.707107604, 0.707105875, -1.70486445e-007, 0.707105815, 0.707107544, 1.71177419e-007))
  964. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.895366609, 0.128561974, 0.128542408))
  965. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.40246433, 0.762464345, 0.762464285))
  966. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00681877136, 0.540436149, -0.541088939, -1.81721958e-007, -3.98678424e-010, 1, -0.707107067, 0.707106411, -1.28216811e-007, -0.707106411, -0.707106948, -1.28784094e-007))
  967. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.895366669, 0.128561974, 0.128542364))
  968. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(1.26045096, 0.762464345, 0.762464285))
  969. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.910848916, -0.00147974491, 0.000465214252, 2.29479338e-006, 1, 7.06279479e-012, -6.20287395e-008, -7.34701189e-012, 1, 1, -2.29479338e-006, 6.20337914e-008))
  970. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.385687381, 0.642712057))
  971. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(1.26045096, 0.762464345, 0.762464285))
  972. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.910846829, -0.00147974491, 0.000467300415, 2.0563748e-006, 1, 1.14326326e-011, -6.20178255e-008, -1.28039801e-011, 1, 1, -2.0563748e-006, 6.20228633e-008))
  973. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.10000002, 0.257125348, 0.706983268))
  974. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  975. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.98755074e-005, -0.86527884, -0.00526940823, 0.99999994, -3.33786011e-006, -1.61662047e-006, 3.33786011e-006, 0.99999994, -1.75251103e-009, 1.61662604e-006, 1.74897963e-009, 1))
  976. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.857142806, 0.857145548, 0.857142746))
  977. Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,1,"Institutional white","Hitbox",Vector3.new(0.650000036, 4.19999981, 0.200000003))
  978. Hitboxweld=weld(m,handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0107657909, -3.95914412, 0.00325751305, 0.999999821, -0.000211339415, 2.39198562e-006, 0.000211339124, 0.999997795, -6.21902582e-005, -2.38056168e-006, 6.20116552e-005, 0.999992907))
  979. EffectPart=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,1,"Institutional white","EffectPart",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  980. EffectPartweld=weld(m,handle,EffectPart,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00693154335, 0.014090538, 6.03910685, -5.23798153e-005, -6.36925748e-008, -1, 0.99999994, -0.000210702419, -5.23798008e-005, -0.000210702419, -0.99999994, 7.47295417e-008))
  981. mesh("BlockMesh",EffectPart,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  982. EffectPart2=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,1,"Institutional white","EffectPart2",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  983. EffectPart2weld=weld(m,Character["Left Arm"],EffectPart2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.15575993, 0.00814216491, -0.0231294632, -5.23798153e-005, 0.999999821, -0.000210702419, -6.36925748e-008, -0.00021070239, -0.99999994, -1, -5.23797935e-005, 7.47295417e-008))
  984.  
  985. DarkRiftF=function(par)
  986. while lol == true do
  987. wait()
  988. local PWN={}
  989. for _,v in pairs(game.Workspace:children()) do
  990. if v.className=="Model" and v:FindFirstChild("Humanoid")~=nil then
  991. if v.Humanoid.Health>0 and v:FindFirstChild("Torso")~=nil then
  992. table.insert(PWN,v.Torso)
  993. end
  994. end
  995. end
  996. for _,t in pairs(PWN) do
  997. local targ=par.Position-t.Position
  998. local Mag=targ.magnitude
  999. if not t:IsDescendantOf(Character) and t~=nil and Mag<=50 then
  1000. if Mag<=30 then
  1001. t.Parent.Humanoid:TakeDamage(.5)
  1002. local rl=Instance.new("BodyAngularVelocity")
  1003. rl.P=3000
  1004. rl.maxTorque=Vector3.new(500000,500000,500000)*5000
  1005. rl.angularvelocity=Vector3.new(math.rad(-20,20),math.rad(-20,20),math.rad(-20,20))/10
  1006. rl.Parent=t
  1007. game:GetService("Debris"):AddItem(rl,.1)
  1008. end
  1009. if Mag<=20 then
  1010. t.Parent.Humanoid:TakeDamage(.1)
  1011. else
  1012. local vl=Instance.new("BodyVelocity")
  1013. vl.P=3000
  1014. vl.maxForce=Vector3.new(50000000000,50000000000,50000000000)
  1015. vl.velocity=(t.Position-par.Position).unit*-(70/(Mag))
  1016. vl.Parent=t
  1017. game:GetService("Debris"):AddItem(vl,.1)
  1018. end
  1019. end
  1020. end
  1021. wait(.08)
  1022. end
  1023. end
  1024.  
  1025. function DerpMagic(part,x1,y1,z1,x2,y2,z2,color)
  1026. local msh1 = Instance.new("BlockMesh")
  1027. msh1.Scale = Vector3.new(0.5,0.5,0.5)
  1028. local S=Instance.new("Part")
  1029. S.Name="Effect"
  1030. S.Material="Neon"
  1031. S.formFactor=0
  1032. S.Size=Vector3.new(x1,y1,z1)
  1033. S.BrickColor=color
  1034. S.Reflectance = 0
  1035. S.TopSurface=0
  1036. S.BottomSurface=0
  1037. S.Transparency=0
  1038. S.Anchored=false
  1039. S.CanCollide=false
  1040. S.CFrame=part.CFrame
  1041. S.Parent=game.Workspace
  1042. msh1.Parent = S
  1043. local W=Instance.new("Weld")
  1044. W.Parent=S
  1045. W.Part0=S
  1046. W.Part1=part
  1047. W.C0=CFrame.new(x2,y2,z2) * CFrame.fromEulerAnglesXYZ(math.rad(-50,50),math.rad(-50,50),math.rad(-50,50))
  1048. W.Parent=nil
  1049. S.Anchored=true
  1050. coroutine.resume(coroutine.create(function(Part,Weld) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.1,0.1,0.1) --[[Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.rad(-50,50),math.rad(-50,50),math.rad(-50,50))]] Part.Transparency=i*.1 wait() end Part.Parent=nil Weld.Parent=nil end),S,W)
  1051. end
  1052.  
  1053. local function BlackHole(parent,cframe)
  1054. local effectsmsh = Instance.new("SpecialMesh")
  1055. effectsmsh.MeshId = "http://www.roblox.com/asset/?id=15887356"
  1056. --effectsmsh.Scale = Vector3.new(1,1,2.5)
  1057. effectsmsh.Scale = Vector3.new(3,3,3)
  1058. local effectsg = Instance.new("Part")
  1059. effectsg.formFactor = 3
  1060. effectsg.CanCollide = false
  1061. effectsg.Name = "Effect"
  1062. effectsg.Locked = true
  1063. effectsg.Transparency = 1
  1064. effectsg.Size = Vector3.new(0.2,0.2,0.2)
  1065. effectsg.Parent = parent
  1066. effectsg.BrickColor = BrickColor.random()
  1067. effectsg.Material="Neon"
  1068. coroutine.resume(coroutine.create(function(Part,Mesh)
  1069. local Mesh = Instance.new("SpecialMesh")
  1070. Mesh.Scale = Vector3.new(0.5,0.5,0.5)
  1071. Mesh.MeshType = "Sphere"
  1072. -- Mesh.TextureId="http://www.roblox.com/asset/?id=1529460"
  1073. Part=Instance.new("Part")
  1074. Part.Name="Effect"
  1075. Part.formFactor=0
  1076. Part.Size=Vector3.new(1,1,1)
  1077. Part.BrickColor=BrickColor.random()
  1078. Part.Material="Neon"
  1079. Part.Reflectance = 0
  1080. Part.TopSurface=0
  1081. Part.BottomSurface=0
  1082. Part.Transparency=0
  1083. Part.Anchored=true
  1084. NoOutline(Part)
  1085. Part.CanCollide=false
  1086. Part.CFrame=cframe
  1087. Part.Parent=parent
  1088. Mesh.Parent = Part
  1089. lol=true
  1090. coroutine.resume(coroutine.create(function()
  1091. DarkRiftF(Part)
  1092. end))
  1093. for i=0,200 do
  1094. wait()
  1095. DerpMagic(Part,1,i/3,1,0,i/3,0,BrickColor.random())
  1096. Mesh.Scale=Mesh.Scale-Vector3.new(0.2,0.2,0.2)
  1097. Part.CFrame=cframe*CFrame.fromEulerAnglesXYZ(math.rad(-50,50),math.rad(-50,50),math.rad(-50,50))
  1098. end
  1099. local fff=200
  1100. for i=0,100 do
  1101. wait()
  1102. DerpMagic(Part,1,fff/3,1,0,fff/3,0,BrickColor.random())
  1103. Part.CFrame=cframe*CFrame.fromEulerAnglesXYZ(math.rad(-50,50),math.rad(-50,50),math.rad(-50,50))
  1104. end
  1105. for i=0,1,0.05 do
  1106. wait()
  1107. Part.Transparency=Part.Transparency+0.05
  1108. Mesh.Scale=Mesh.Scale+Vector3.new(1.5,1.5,1.5)
  1109. end
  1110. lol=false
  1111. Part.Parent=nil
  1112. end),nil,nil)
  1113. end
  1114.  
  1115. function makeShockwave(height,color,speed,range,pulse)
  1116. local range = range or 2000
  1117. local p = Instance.new("Part")
  1118. p.Anchored = true
  1119. p.CanCollide = false
  1120. p.FormFactor = "Custom"
  1121. p.BrickColor = color
  1122. p.Parent = workspace
  1123. local m = Instance.new("SpecialMesh",p)
  1124. m.MeshId = "rbxassetid://3270017"
  1125. local estimateSurvival = math.floor(range/speed) * 0.03
  1126. game:GetService("Debris"):AddItem(p,estimateSurvival)
  1127. Spawn(function ()
  1128. for i = 1,range,speed do
  1129. p.Transparency = 1-math.min(0.5,3-(i/500))
  1130. m.Scale = Vector3.new(i,i,i*height)
  1131. p.CFrame = CFrame.new(Torso.Position) * CFrame.Angles(math.rad(90),0,0)
  1132. wait()
  1133. end
  1134. p:Destroy()
  1135. end)
  1136. end
  1137.  
  1138. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1139. local prt=ppart(3,game.Workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1140. prt.Anchored=true
  1141. prt.CFrame=cframe
  1142. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(.1,.1,.1))
  1143. game:GetService("Debris"):AddItem(prt,2)
  1144. coroutine.resume(coroutine.create(function(Part,Mesh)
  1145. for i=0,2,delay do
  1146. wait()
  1147. Part.CFrame=Part.CFrame
  1148. Part.Transparency=i
  1149. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1150. end
  1151. Part.Parent=nil
  1152. end),prt,msh)
  1153. end
  1154.  
  1155. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1156. local prt=ppart(3,game.Workspace,0,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1157. prt.Anchored=true
  1158. prt.CFrame=cframe
  1159. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1160. game:GetService("Debris"):AddItem(prt,5)
  1161. coroutine.resume(coroutine.create(function(Part,Mesh)
  1162. for i=0,1,delay do
  1163. wait()
  1164. Part.CFrame=Part.CFrame*euler(math.rad(-50,50),math.rad(-50,50),math.rad(-50,50))
  1165. Part.Transparency=i
  1166. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1167. end
  1168. Part.Parent=nil
  1169. end),prt,msh)
  1170. end
  1171.  
  1172. local function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type,parent)
  1173. local prt=ppart(3,game.Workspace,0,1,brickcolor,"Effect",vt())
  1174. if Type~=2 then
  1175. prt.Anchored=true
  1176. end
  1177. prt.CFrame=cframe
  1178. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  1179. game:GetService("Debris"):AddItem(prt,5)
  1180. coroutine.resume(coroutine.create(function(Part,Mesh,dur)
  1181. local wld=nil
  1182. if dur==2 then
  1183. wld=weld(Part,Part,parent,euler(0,0,0)*cf(0,0,0))
  1184. end
  1185. for i=0,1,delay do
  1186. swait()
  1187. if dur==1 then
  1188. Part.CFrame=Part.CFrame
  1189. elseif dur==2 then
  1190. wld.C0=cframe
  1191. end
  1192. Part.Transparency=i
  1193. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1194. end
  1195. Part.Parent=nil
  1196. end),prt,msh,Type)
  1197. end
  1198.  
  1199. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1200. local prt=ppart(3,game.Workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1201. prt.Anchored=true
  1202. prt.CFrame=cframe
  1203. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  1204. game:GetService("Debris"):AddItem(prt,5)
  1205. coroutine.resume(coroutine.create(function(Part,Mesh)
  1206. for i=0,1,delay do
  1207. swait()
  1208. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  1209. Part.Transparency=i
  1210. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1211. end
  1212. Part.Parent=nil
  1213. end),prt,msh)
  1214. end
  1215.  
  1216. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1217. local prt=ppart(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  1218. prt.Anchored=true
  1219. prt.CFrame=cframe
  1220. local msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  1221. game:GetService("Debris"):AddItem(prt,5)
  1222. coroutine.resume(coroutine.create(function(Part,Mesh)
  1223. for i=0,1,delay do
  1224. wait()
  1225. Part.CFrame=Part.CFrame
  1226. Part.Transparency=i
  1227. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1228. end
  1229. Part.Parent=nil
  1230. end),prt,msh)
  1231. end
  1232.  
  1233. function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1234. local prt=ppart(3,workspace,0,0,brickcolor,"Effect",vt())
  1235. prt.Anchored=true
  1236. prt.CFrame=cframe
  1237. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  1238. game:GetService("Debris"):AddItem(prt,5)
  1239. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  1240. end
  1241.  
  1242. function Blast(parent)
  1243. MagicBlock(BrickColor.random(),parent.CFrame,4,4,4,0.2,0.2,0.2,0.01)
  1244. MagicWaveThing(BrickColor.random(),parent.CFrame,4,4,4,0.2,0.2,0.2,0.01)
  1245. end
  1246.  
  1247. function ChargeBall(parent,t)
  1248. local counter=0
  1249. local size=1
  1250. for i=0,t,1 do
  1251. swait()
  1252. counter=counter+1
  1253. if counter%10==0 then
  1254. if size==3 then
  1255. MagicRing(BrickColor.random(),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1256. elseif size==2 then
  1257. MagicRing(BrickColor.random(),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1258. end
  1259. end
  1260. if counter%5==0 then
  1261. if size==1 then
  1262. MagicBlock(BrickColor.random(),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1263. elseif size==2 then
  1264. MagicBlock(BrickColor.random(),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1265. elseif size==3 then
  1266. MagicBlock(BrickColor.random(),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1267. end
  1268. end
  1269. end
  1270. end
  1271.  
  1272. function ChargeBall2(parent,t)
  1273. local counter=0
  1274. local size=1
  1275. for i=0,t,1 do
  1276. swait()
  1277. counter=counter+1
  1278. if counter%10==0 then
  1279. if size==3 then
  1280. MagicRing(BrickColor.random(),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1281. elseif size==2 then
  1282. MagicRing(BrickColor.random(),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1283. end
  1284. end
  1285. if counter%5==0 then
  1286. if size==1 then
  1287. MagicBlock(BrickColor.random(),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1288. MagicWave(BrickColor.random(),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.rad(-50,50),0),1,1,1,1,.5,1,0.05)
  1289. elseif size==2 then
  1290. MagicBlock(BrickColor.random(),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1291. MagicWave(BrickColor.random(),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.rad(-50,50),0),1,1,1,1,.5,1,0.05)
  1292. elseif size==3 then
  1293. MagicBlock(BrickColor.random(),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1294. MagicWave(BrickColor.random(),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.rad(-50,50),0),1,1,1,1,.5,1,0.05)
  1295. end
  1296. end
  1297. end
  1298. end
  1299.  
  1300. function MagniDamage(Part,dis,mind,maxd,force,knock)
  1301. for _,c in pairs(workspace:children()) do
  1302. local hum=c:findFirstChild("Humanoid")
  1303. if hum~=nil then
  1304. local head=c:findFirstChild("Torso")
  1305. if head~=nil then
  1306. local targ=head.Position-Part.Position
  1307. local mag=targ.magnitude
  1308. if mag<=dis and c.Name~=Character.Name then
  1309. Damagefunc(Part,hum.Parent.Torso,mind,maxd,force,knock,RootPart,.2,1)
  1310. end
  1311. end
  1312. end
  1313. end
  1314. end
  1315.  
  1316. function computeDirection(vec)
  1317. local lenSquared = vec.magnitude * vec.magnitude
  1318. local invSqrt = 1 / math.sqrt(lenSquared)
  1319. return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
  1320. end
  1321.  
  1322. function attackone()
  1323. attack = true
  1324.  
  1325. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,70,100,math.rad(5,5),"Normal",RootPart,.2,1) end)
  1326. local fx=Hitbox.Touched:connect(function(part)
  1327. local human=part.Parent:findFirstChild("Humanoid")
  1328. if human~=nil and bounce==false then
  1329. bounce=true
  1330.  
  1331.  
  1332.  
  1333. end
  1334. end)
  1335. for i = 0,1,0.1 do
  1336. swait()
  1337. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),0.4)
  1338. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(50)),0.4)
  1339. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(100)),0.4)
  1340. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)),0.4)
  1341. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(120),math.rad(0)),0.4)
  1342. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.4)
  1343. end
  1344. so("http://www.roblox.com/asset/?id=199145841",handle,1,.9)
  1345. for i = 0,1,0.1 do
  1346. swait()
  1347. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  1348. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1349. local h = 5
  1350. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1351. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1352. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1353. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1354. scfr = blcf
  1355. elseif not scfr then
  1356. scfr = blcf
  1357. end
  1358. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.4)
  1359. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-80)),0.4)
  1360. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.4)
  1361. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.4)
  1362. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(0)),0.4)
  1363. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),0.4)
  1364. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-25),math.rad(0),math.rad(0)),.4)
  1365. end
  1366. attack = false
  1367. bounce=false
  1368. scfr=nil
  1369. fx:disconnect()
  1370. con:disconnect()
  1371. end
  1372.  
  1373. function attacktwo()
  1374. attack=true
  1375.  
  1376. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,70,100,math.rad(5,5),"Normal",RootPart,.2,1) end)
  1377. local fx=Hitbox.Touched:connect(function(part)
  1378. local human=part.Parent:findFirstChild("Humanoid")
  1379. if human~=nil and bounce==false then
  1380. bounce=true
  1381.  
  1382.  
  1383.  
  1384. end
  1385. end)
  1386. for i=0,1,.1 do
  1387. swait()
  1388. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(70)),0.4)
  1389. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-70)),0.4)
  1390. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.4)
  1391. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.4)
  1392. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(40),math.rad(0)),0.4)
  1393. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-140),math.rad(-10)),0.4)
  1394. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-25),math.rad(0),math.rad(0)),.4)
  1395. end
  1396. so("http://www.roblox.com/asset/?id=199145887",handle,1,1)
  1397. for i = 0,1,0.1 do
  1398. swait()
  1399. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  1400. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1401. local h = 5
  1402. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1403. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1404. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1405. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1406. scfr = blcf
  1407. elseif not scfr then
  1408. scfr = blcf
  1409. end
  1410. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.4)
  1411. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),0.4)
  1412. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(90)),0.4)
  1413. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)),0.4)
  1414. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(140),math.rad(0)),0.4)
  1415. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-40),math.rad(-10)),0.4)
  1416. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  1417. end
  1418. scfr=nil
  1419. attack=false
  1420. bounce=false
  1421. con:disconnect()
  1422. fx:disconnect()
  1423. end
  1424.  
  1425. function attackthree()
  1426. attack=true
  1427.  
  1428. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,70,100,math.rad(5,5),"Normal",RootPart,.2,1) end)
  1429. local fx=Hitbox.Touched:connect(function(part)
  1430. local human=part.Parent:findFirstChild("Humanoid")
  1431. if human~=nil and bounce==false then
  1432. bounce=true
  1433.  
  1434.  
  1435.  
  1436. end
  1437. end)
  1438. for i=0,1,.1 do
  1439. swait()
  1440. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-30)),0.4)
  1441. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(30)),.3)
  1442. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.4)
  1443. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(25), math.rad(0), math.rad(-30)),0.4)
  1444. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(105),math.rad(0)),0.4)
  1445. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-75),math.rad(-10)),0.4)
  1446. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  1447. end
  1448. so("http://www.roblox.com/asset/?id=199145913",handle,1,.9)
  1449. for i = 0,1,0.1 do
  1450. swait()
  1451. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  1452. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1453. local h = 5
  1454. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1455. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1456. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1457. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1458. scfr = blcf
  1459. elseif not scfr then
  1460. scfr = blcf
  1461. end
  1462. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),0.4)
  1463. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  1464. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)),0.4)
  1465. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)),0.4)
  1466. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(0)),0.4)
  1467. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(-10)),0.4)
  1468. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0)),.4)
  1469. end
  1470. attack=false
  1471. bounce=false
  1472. scfr=nil
  1473. con:disconnect()
  1474. fx:disconnect()
  1475. end
  1476.  
  1477. function attackfour()
  1478. attack = true
  1479.  
  1480. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,70,100,math.rad(20,30),"Normal",RootPart,.2,1) end)
  1481. local fx=Hitbox.Touched:connect(function(part)
  1482. local human=part.Parent:findFirstChild("Humanoid")
  1483. if human~=nil and bounce==false then
  1484. bounce=true
  1485.  
  1486.  
  1487.  
  1488. end
  1489. end)
  1490. for i = 0,1,0.1 do
  1491. swait()
  1492. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(-5),math.rad(-60)),.3)
  1493. Torso.Neck.C0=clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.3)
  1494. RW.C0=clerp(RW.C0,cf(1.5, 0.8, 0.2) * angles(math.rad(5), math.rad(-15), math.rad(112)), 0.3)
  1495. LW.C0=clerp(LW.C0,cf(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(-20)), 0.3)
  1496. RH.C0=clerp(RH.C0,cf(1.1,-1,0)*angles(math.rad(-5),math.rad(120),math.rad(-8)),.3)
  1497. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(5),math.rad(-60),math.rad(0)),.3)
  1498. handleweld.C0=clerp(handleweld.C0,cf(0,-.2,.5)*angles(math.rad(50),math.rad(-15),math.rad(0)),.3)
  1499. end
  1500. so("http://www.roblox.com/asset/?id=199145433",Hitbox,1,1.1)
  1501. local v=it("BodyVelocity",Torso)
  1502. v.maxForce=Vector3.new(4e+005,4e+005,4e+005)*1
  1503. v.velocity=RootPart.CFrame.lookVector*50
  1504. for i = 0,1,0.1 do
  1505. swait()
  1506. local blcf = Hitbox.CFrame*cf(0,0,0)
  1507. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1508. local h = 5
  1509. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1510. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1511. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1512. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1513. scfr = blcf
  1514. elseif not scfr then
  1515. scfr = blcf
  1516. end
  1517. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(60)),.3)
  1518. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  1519. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(60), math.rad(100)), 0.3)
  1520. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-15)), 0.3)
  1521. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1522. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1523. handleweld.C0=clerp(handleweld.C0,cf(0,-1,-1)*angles(math.rad(-100),math.rad(0),math.rad(0)),.3)
  1524. end
  1525. v.Parent=nil
  1526. scfr=nil
  1527. attack = false
  1528. bounce=false
  1529. con:disconnect()
  1530. fx:disconnect()
  1531. end
  1532.  
  1533. function Slash()
  1534. attack=true
  1535.  
  1536. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,70,100,math.rad(5,5),"Normal",RootPart,.2,1) end)
  1537. local fx=Hitbox.Touched:connect(function(part)
  1538. local human=part.Parent:findFirstChild("Humanoid")
  1539. if human~=nil and bounce==false then
  1540. bounce=true
  1541.  
  1542.  
  1543.  
  1544. end
  1545. end)
  1546. for i=0,1,.1 do
  1547. swait()
  1548. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-30)),0.4)
  1549. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(30)),.3)
  1550. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.4)
  1551. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(25), math.rad(0), math.rad(-30)),0.4)
  1552. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(105),math.rad(0)),0.4)
  1553. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-75),math.rad(-10)),0.4)
  1554. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  1555. end
  1556. so("http://www.roblox.com/asset/?id=199145913",handle,1,.9)
  1557. for i = 0,1,0.1 do
  1558. swait()
  1559. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  1560. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1561. local h = 5
  1562. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1563. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1564. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1565. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1566. scfr = blcf
  1567. elseif not scfr then
  1568. scfr = blcf
  1569. end
  1570. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),0.4)
  1571. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  1572. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)),0.4)
  1573. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)),0.4)
  1574. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(0)),0.4)
  1575. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(-10)),0.4)
  1576. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0)),.4)
  1577. end
  1578. for i = 0,1,0.1 do ----------------------------------- second attack
  1579. swait()
  1580. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(70)),0.4)
  1581. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-70)),0.4)
  1582. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.4)
  1583. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.4)
  1584. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(40),math.rad(0)),0.4)
  1585. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-140),math.rad(-10)),0.4)
  1586. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-25),math.rad(0),math.rad(0)),.4)
  1587. end
  1588. so("http://www.roblox.com/asset/?id=199145887",handle,1,1)
  1589. for i = 0,1,0.1 do
  1590. swait()
  1591. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  1592. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1593. local h = 5
  1594. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1595. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1596. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1597. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1598. scfr = blcf
  1599. elseif not scfr then
  1600. scfr = blcf
  1601. end
  1602. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.4)
  1603. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),0.4)
  1604. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(90)),0.4)
  1605. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)),0.4)
  1606. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(140),math.rad(0)),0.4)
  1607. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-40),math.rad(-10)),0.4)
  1608. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  1609. end
  1610. attack=false
  1611. bounce=false
  1612. scfr=nil
  1613. con:disconnect()
  1614. fx:disconnect()
  1615. end
  1616. function Combo()
  1617. attack = true
  1618.  
  1619. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,70,100,math.rad(5,5),"Normal",RootPart,.2,1) end)
  1620. local fx=Hitbox.Touched:connect(function(part)
  1621. local human=part.Parent:findFirstChild("Humanoid")
  1622. if human~=nil and bounce==false then
  1623. bounce=true
  1624.  
  1625.  
  1626.  
  1627. end
  1628. end)
  1629. for i = 0,1,0.1 do ----------------------------------- first attack
  1630. swait()
  1631. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),0.4)
  1632. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(50)),0.4)
  1633. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(100)),0.4)
  1634. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)),0.4)
  1635. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(120),math.rad(0)),0.4)
  1636. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.4)
  1637. end
  1638. so("http://www.roblox.com/asset/?id=199145841",handle,1,.9)
  1639. for i = 0,1,0.1 do
  1640. swait()
  1641. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  1642. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1643. local h = 5
  1644. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1645. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1646. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1647. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1648. scfr = blcf
  1649. elseif not scfr then
  1650. scfr = blcf
  1651. end
  1652. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.4)
  1653. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-80)),0.4)
  1654. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.4)
  1655. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.4)
  1656. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(0)),0.4)
  1657. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),0.4)
  1658. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-25),math.rad(0),math.rad(0)),.4)
  1659. end
  1660. for i = 0,1,0.1 do ----------------------------------- second attack
  1661. swait()
  1662. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(70)),0.4)
  1663. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-70)),0.4)
  1664. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.4)
  1665. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.4)
  1666. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(40),math.rad(0)),0.4)
  1667. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-140),math.rad(-10)),0.4)
  1668. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-25),math.rad(0),math.rad(0)),.4)
  1669. end
  1670. so("http://www.roblox.com/asset/?id=199145887",handle,1,1)
  1671. for i = 0,1,0.1 do
  1672. swait()
  1673. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  1674. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1675. local h = 5
  1676. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1677. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1678. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1679. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1680. scfr = blcf
  1681. elseif not scfr then
  1682. scfr = blcf
  1683. end
  1684. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.4)
  1685. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),0.4)
  1686. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(90)),0.4)
  1687. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)),0.4)
  1688. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(140),math.rad(0)),0.4)
  1689. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-40),math.rad(-10)),0.4)
  1690. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  1691. end
  1692. for i = 0,1,0.1 do
  1693. swait()
  1694. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),0.4)
  1695. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(50)),0.4)
  1696. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(100)),0.4)
  1697. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)),0.4)
  1698. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(120),math.rad(0)),0.4)
  1699. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.4)
  1700. end
  1701. so("http://www.roblox.com/asset/?id=199145841",handle,1,.9)
  1702. for i = 0,1,0.1 do
  1703. swait()
  1704. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  1705. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1706. local h = 5
  1707. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1708. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1709. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1710. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1711. scfr = blcf
  1712. elseif not scfr then
  1713. scfr = blcf
  1714. end
  1715. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.4)
  1716. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-80)),0.4)
  1717. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.4)
  1718. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.4)
  1719. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(0)),0.4)
  1720. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),0.4)
  1721. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-25),math.rad(0),math.rad(0)),.4)
  1722. end
  1723. for i = 0,1,0.1 do ----------------------------------- second attack
  1724. swait()
  1725. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(70)),0.4)
  1726. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-70)),0.4)
  1727. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.4)
  1728. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.4)
  1729. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(40),math.rad(0)),0.4)
  1730. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-140),math.rad(-10)),0.4)
  1731. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-25),math.rad(0),math.rad(0)),.4)
  1732. end
  1733. so("http://www.roblox.com/asset/?id=199145887",handle,1,1)
  1734. for i = 0,1,0.1 do
  1735. swait()
  1736. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  1737. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1738. local h = 5
  1739. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1740. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1741. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1742. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1743. scfr = blcf
  1744. elseif not scfr then
  1745. scfr = blcf
  1746. end
  1747. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.4)
  1748. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),0.4)
  1749. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(90)),0.4)
  1750. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)),0.4)
  1751. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(140),math.rad(0)),0.4)
  1752. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-40),math.rad(-10)),0.4)
  1753. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  1754. end
  1755. for i = 0,1,0.1 do ----------------------------------- first attack
  1756. swait()
  1757. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),0.4)
  1758. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(50)),0.4)
  1759. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(100)),0.4)
  1760. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)),0.4)
  1761. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(120),math.rad(0)),0.4)
  1762. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.4)
  1763. end
  1764. so("http://www.roblox.com/asset/?id=199145841",handle,1,.9)
  1765. for i = 0,1,0.1 do
  1766. swait()
  1767. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  1768. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1769. local h = 5
  1770. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1771. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1772. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1773. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1774. scfr = blcf
  1775. elseif not scfr then
  1776. scfr = blcf
  1777. end
  1778. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.4)
  1779. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-80)),0.4)
  1780. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.4)
  1781. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.4)
  1782. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(0)),0.4)
  1783. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),0.4)
  1784. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-25),math.rad(0),math.rad(0)),.4)
  1785. end
  1786. for i = 0,1,0.1 do ----------------------------------- second attack
  1787. swait()
  1788. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(70)),0.4)
  1789. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-70)),0.4)
  1790. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.4)
  1791. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.4)
  1792. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(40),math.rad(0)),0.4)
  1793. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-140),math.rad(-10)),0.4)
  1794. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-25),math.rad(0),math.rad(0)),.4)
  1795. end
  1796. so("http://www.roblox.com/asset/?id=199145887",handle,1,1)
  1797. for i = 0,1,0.1 do
  1798. swait()
  1799. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  1800. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1801. local h = 5
  1802. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1803. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1804. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1805. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1806. scfr = blcf
  1807. elseif not scfr then
  1808. scfr = blcf
  1809. end
  1810. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.4)
  1811. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),0.4)
  1812. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(90)),0.4)
  1813. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)),0.4)
  1814. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(140),math.rad(0)),0.4)
  1815. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-40),math.rad(-10)),0.4)
  1816. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  1817. end
  1818. attack = false
  1819. bounce=false
  1820. scfr=nil
  1821. fx:disconnect()
  1822. con:disconnect()
  1823. end
  1824. function LustrisFulgo()
  1825. attack=true
  1826. Humanoid.WalkSpeed=0
  1827. for i=0,1,0.1 do
  1828. swait()
  1829. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-15),math.rad(0),math.rad(10)),.3)
  1830. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-25),math.rad(0),math.rad(-10)),.3)
  1831. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(145), math.rad(0), math.rad(7)), 0.3)
  1832. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(4), math.rad(-15)), 0.3)
  1833. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-15),math.rad(90),math.rad(0)),.3)
  1834. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-25),math.rad(-90),math.rad(0)),.3)
  1835. handleweld.C0=clerp(handleweld.C0,cf(0,0,-.5)*angles(math.rad(-60),math.rad(0),math.rad(0)),.3)
  1836. end
  1837. local function boom()
  1838. local pprt=ppart(3,game.Workspace,0,1,BrickColor.random(),"Effect",vt(1,1,1))
  1839. pprt.Anchored=true
  1840. pprt.CFrame=EffectPart.CFrame
  1841. game:GetService("Debris"):AddItem(pprt,2)
  1842. MagicCircle(BrickColor.random(),EffectPart.CFrame,20,20,20,-0.01,-0.01,-0.01,0.01)
  1843. so("http://roblox.com/asset/?id=228343412",EffectPart,1,0.6)
  1844. so("http://roblox.com/asset/?id=228343408",EffectPart,1,1.4)
  1845. local wave=part(3,game.Workspace,"Neon",0,.7,BrickColor.random(),"Effect",vt(1,1,1))
  1846. local waveweld=weld(game.Workspace,handle,wave,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00693154335, 0.014090538, 6.03910685, -5.23798153e-005, -6.36925748e-008, -1, 0.99999994, -0.000210702419, -5.23798008e-005, -0.000210702419, -0.99999994, 7.47295417e-008))
  1847. local wavemesh=mesh("SpecialMesh",wave,"Sphere","",vt(0,0,0),vt(1,1,1))
  1848. MagniDamage(wave,20,15,25,math.rad(20,30),"Knockdown",RootPart)
  1849. for i=0,80 do
  1850. swait()
  1851. MagicBlock(BrickColor.random(),EffectPart.CFrame,7,7,7,-0.5,-0.5,-0.5,0.05)
  1852. MagicCircle(BrickColor.random(),EffectPart.CFrame*euler(math.rad(-50,50),math.rad(-50,50),math.rad(-50,50))*cf(0,5,0),0.5,1,0.5,0.02,1,0.02,0.05)
  1853. wave.Size=vt(1+i,1+i,1+i)
  1854. wavemesh.Scale=vt(1+i,1+i,1+i)
  1855. wave.CFrame=EffectPart.CFrame
  1856. Humanoid.Health=Humanoid.Health+.15
  1857. end
  1858. wave:Destroy()
  1859. end
  1860. boom()
  1861. attack=false
  1862. Humanoid.WalkSpeed=16
  1863. end
  1864.  
  1865. function LeviterGlomus()
  1866. attack=true
  1867. for i=0,1,.1 do
  1868. swait()
  1869. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  1870. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  1871. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(18), math.rad(-15), math.rad(15)), 0.3)
  1872. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-75), math.rad(0), math.rad(-50)), 0.3)
  1873. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-3),math.rad(65),math.rad(0)),.3)
  1874. LH.C0=clerp(LH.C0,cf(-1.1,-1,0)*angles(math.rad(-25),math.rad(-110),math.rad(0))*angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
  1875. handleweld.C0=clerp(handleweld.C0,cf(0,.2,-.3)*angles(math.rad(-35),math.rad(-15),math.rad(0)),.3)
  1876. end
  1877. so("http://www.roblox.com/asset/?id=199145659",EffectPart2,1,1)
  1878. efprt=part(Enum.FormFactor.Custom,game.Workspace,Enum.Material.Neon,0,0,"Institutional white","BallEffect",Vector3.new(2, 2, 2))
  1879. weld(m,Character["Left Arm"],efprt,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.15575993, 0.00814216491, -0.0231294632, -5.23798153e-005, 0.999999821, -0.000210702419, -6.36925748e-008, -0.00021070239, -0.99999994, -1, -5.23797935e-005, 7.47295417e-008))
  1880. mesh("SpecialMesh",efprt,"Sphere","",vt(0,0,0),vt(1,1,1))
  1881. ChargeBall(EffectPart2,35)
  1882. for i=0,1,.1 do
  1883. swait()
  1884. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  1885. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  1886. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-18), math.rad(15), math.rad(15)), 0.3)
  1887. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(75), math.rad(0), math.rad(-65)), 0.3)
  1888. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(110),math.rad(0)),.3)
  1889. LH.C0=clerp(LH.C0,cf(-1.1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(0)),.3)
  1890. handleweld.C0=clerp(handleweld.C0,cf(0,.2,-.3)*angles(math.rad(0),math.rad(-15),math.rad(0)),.3)
  1891. end
  1892. so("http://www.roblox.com/asset/?id=199145534",EffectPart2,1,1.2)
  1893. efprt:BreakJoints()
  1894. local Target=mouse.Hit.p
  1895. local direction = Target - handle.Position
  1896. direction = computeDirection(direction)
  1897. local pos = handle.Position + (direction * 10.0)
  1898. efprt.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles(math.pi/2, 0, 0)
  1899. local floatForce = Instance.new("BodyForce")
  1900. floatForce.force = Vector3.new(0, efprt:GetMass() * 196.1, 0.0)
  1901. floatForce.Parent = efprt
  1902. efprt.Velocity = direction * 160
  1903. efprt.Touched:connect(function(hit)
  1904. if not hit:IsDescendantOf(Character) then
  1905. if hit.Name~="Effect" then
  1906. MagniDamage(efprt,15,70,100,math.rad(20,30),"Knockdown",RootPart)
  1907. floatForce.Parent=nil
  1908. efprt.Anchored=true
  1909. so("http://www.roblox.com/asset/?id=228343330",hit,1,.8)
  1910. Blast(efprt)
  1911. efprt:Destroy()
  1912. end
  1913. end
  1914. end)
  1915. game:GetService("Debris"):AddItem(efprt,6)
  1916. attack=false
  1917. end
  1918.  
  1919. function PortalStorm()
  1920. Humanoid.WalkSpeed=0
  1921. attack=true
  1922. for i=0,1,.1 do
  1923. swait()
  1924. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  1925. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1926. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(75), math.rad(0), math.rad(-40)), 0.3)
  1927. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(75), math.rad(0), math.rad(40)), 0.3)
  1928. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(5),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1929. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(5),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1930. handleweld.C0=clerp(handleweld.C0,cf(-1,-2.3,-.4)*angles(math.rad(-165),math.rad(-15),math.rad(50)),.3)
  1931. end
  1932. so("http://www.roblox.com/asset/?id=199145446",handle,1,1)
  1933. ChargeBall2(handle,100)
  1934. makeShockwave(0.5,BrickColor.random(),30,1000,0)
  1935. MagicWave(BrickColor.random(),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.rad(-50,50),0),2,2,2,.5,.3,.5,0.01)
  1936. so("http://www.roblox.com/asset/?id=280247455",game.Workspace,1,1)
  1937. wait(2)
  1938. so("http://www.roblox.com/asset/?id=110284742",game.Workspace,1,0)
  1939. delay(0.5,function ()
  1940. MagniDamage(Torso,20,70,100,math.rad(50,70),"Knockdown",RootPart)
  1941. end)
  1942. Humanoid.Health=Humanoid.Health-0
  1943. makeShockwave(4,BrickColor.new("Teal"),10,2000,1)
  1944. attack=false
  1945. Humanoid.WalkSpeed=9
  1946. wait(4)
  1947. Humanoid.WalkSpeed=16
  1948. end
  1949. function SolSiderea()
  1950. Humanoid.WalkSpeed=0
  1951. attack=true
  1952. so("http://www.roblox.com/asset/?id=280758833",Workspace,1,1.3)
  1953. for i=0,1,.1 do
  1954. swait()
  1955. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1956. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1957. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(95), math.rad(-10), math.rad(-17)), 0.3)
  1958. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(95), math.rad(10), math.rad(17)), 0.3)
  1959. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1960. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1961. handleweld.C0=clerp(handleweld.C0,cf(0,-2,-.5)*angles(math.rad(0),math.rad(7.5),math.rad(-75)),.3)
  1962. end
  1963. for i=0,1,.1 do
  1964. swait()
  1965. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1966. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
  1967. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(150), math.rad(-5), math.rad(8)), 0.3)
  1968. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(150), math.rad(5), math.rad(-8)), 0.3)
  1969. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-10),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1970. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-10),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1971. handleweld.C0=clerp(handleweld.C0,cf(-1.1,-4,-2)*angles(math.rad(-72),math.rad(8.5),math.rad(-92)),.3)
  1972. end
  1973. coroutine.resume(coroutine.create(function() ChargeBall(EffectPart,120) end))
  1974. local n=2
  1975. local orb=ppart(3,Character,0,1,BrickColor.random(),"Orb",vt())
  1976. local omsh=mesh("SpecialMesh",orb,"Sphere","",vt(0,0,0),vt(15,15,15))
  1977. local owld=wweld(orb,orb,Torso,cf(-10,-150,0))
  1978. for i=1,0.3,-0.01 do
  1979. wait()
  1980. orb.Transparency=i
  1981. omsh.Scale=omsh.Scale+vt(0.5,0.5,0.5)
  1982. MagicBlock(BrickColor.random(),orb.CFrame,15,15,15,2,2,2,0.1)
  1983. local ef=ppart(3,workspace,0,0,BrickColor.random(),"Effect",vt())
  1984. ef.Anchored=true
  1985. local emsh=mesh("SpecialMesh",ef,"Sphere","",vt(0,0,0),vt(2,math.rad(1000,1500)/100,2))
  1986. local ceef=euler(math.rad(-50,50),math.rad(-50,50),math.rad(-50,50))*cf(0,math.rad(10,20),0)
  1987. ef.CFrame=orb.CFrame*ceef
  1988. game:GetService("Debris"):AddItem(ef,2)
  1989. coroutine.resume(coroutine.create(function(Part,Mesh)
  1990. for i=0,1,0.1 do
  1991. wait()
  1992. Part.Transparency=i
  1993. Part.CFrame=Part.CFrame*cf(0,-1,0)
  1994. end
  1995. Part.Parent=nil
  1996. end),ef,emsh)
  1997. end
  1998. local Pos=cf(orb.Position,Player:GetMouse().Hit.p).lookVector
  1999. wait(.5)
  2000. orb.Parent=nil
  2001. wait(1)
  2002. local hit,pos = rayCast(orb.Position,Pos,1000,Character)
  2003. local mag=(orb.Position-pos).magnitude
  2004. BlackHole(game.Workspace,cf(pos))
  2005. coroutine.resume(coroutine.create(function()
  2006. local wave=part(3,game.Workspace,"Neon",0,.7,BrickColor.random(),"Effect",vt(1,1,1))
  2007. wweld(game.Workspace,wave,orb,Torso.CFrame)
  2008. local wavemesh=mesh("SpecialMesh",wave,"Sphere","",vt(0,0,0),vt(1,1,1))
  2009. for i=1,100 do
  2010. swait()
  2011. wave.Size=vt(1+i,1+i,1+i)
  2012. wavemesh.Scale=vt(1+i,1+i,1+i)
  2013. wave.CFrame=cf(pos)
  2014. end
  2015. end))
  2016. coroutine.resume(coroutine.create(function()
  2017. for i=0,20 do
  2018. swait(15)
  2019. local range = 1500
  2020. local p = Instance.new("Part")
  2021. p.Anchored = true
  2022. p.CanCollide = false
  2023. p.FormFactor = "Custom"
  2024. p.BrickColor = BrickColor.random()
  2025. p.Parent = workspace
  2026. p.Name="Effect"
  2027. p.CFrame=cf(pos)
  2028. local m = Instance.new("SpecialMesh",p)
  2029. m.MeshId = "rbxassetid://3270017"
  2030. local estimateSurvival = math.floor(range/30) * 0.03
  2031. game:GetService("Debris"):AddItem(p,estimateSurvival)
  2032. Spawn(function ()
  2033. for i = 1,range,30 do
  2034. p.Transparency = 1-math.min(0.5,3-(i/500))
  2035. m.Scale = Vector3.new(i,i,i*0.5)
  2036. p.CFrame = cf(pos) * CFrame.Angles(math.rad(90),0,0)
  2037. wait()
  2038. end
  2039. p:Destroy()
  2040. end)
  2041. end
  2042. end))
  2043. MagicCylinder(BrickColor.random(),CFrame.new((orb.Position+pos)/2,pos)*euler(1.57,0,0),10,mag*5,10,0.5,0,0.5,0.01)
  2044. for i=1,2 do
  2045. end
  2046. for i=1,5 do
  2047. tehcf=CFrame.new((orb.Position+pos)/2,pos)*euler(1.57,0,0)*cf(0,(mag/5)*(i/2),0)
  2048. end
  2049. for i=0,5 do
  2050. tehcf=CFrame.new((orb.Position+pos)/2,pos)*euler(1.57,0,0)*cf(0,(-mag/5)*(i/2),0)
  2051. end
  2052. local ref=ppart(3,workspace,0,1,BrickColor.random(),"Effect",vt())
  2053. ref.CFrame=cf(pos)
  2054. coroutine.resume(coroutine.create(function(Part)
  2055. wait(1)
  2056. Part.Parent=nil
  2057. end),ref)
  2058. MagniDamage(ref,25,70,100,35,"Knockdown",ref)
  2059. if hit~=nil then
  2060. Damagefunc(ref,hit,40,50,35,"Knockdown",RootPart,0)
  2061. end
  2062. local n=2
  2063. MagicWave(BrickColor.random(),cf(pos)*euler(0,math.rad(-50,50),0),2,2,2,.5,.3,.5,0.01)
  2064. swait(75)
  2065. Humanoid.WalkSpeed=16
  2066. attack=false
  2067. end
  2068.  
  2069. attacktype=1
  2070. mouse.Button1Down:connect(function()
  2071. if attacktype==1 and attack==false then
  2072. attacktype=2
  2073. attackone()
  2074. elseif attacktype==2 and attack==false then
  2075. attacktype=3
  2076. attacktwo()
  2077. elseif attacktype==3 and attack==false then
  2078. attacktype=4
  2079. attackthree()
  2080. elseif attacktype==4 and attack==false then
  2081. attacktype=1
  2082. attackfour()
  2083. end
  2084. end)
  2085.  
  2086. mouse.KeyDown:connect(function(k)
  2087. k=k:lower()
  2088. if attack == false and k == 'e' then
  2089. LeviterGlomus()
  2090. ChargeBall(efprt,100)
  2091. end
  2092. if attack == false and k == 'q' then
  2093. LustrisFulgo()
  2094. end
  2095. if attack == false and k == 'f' and deeznuts==false then
  2096. deeznuts=true
  2097. SolSiderea()
  2098. deeznuts=false
  2099. end
  2100. if attack == false and k == 'r' and cooldown==false then
  2101. cooldown=true
  2102. PortalStorm()
  2103. cooldown=false
  2104. end
  2105. end)
  2106.  
  2107. mouse.KeyDown:connect(function(k)
  2108. if attack == false and k == 't' then
  2109. Combo()
  2110. end
  2111. end)
  2112. mouse.KeyDown:connect(function(k)
  2113. if attack == false and k == 'y' then
  2114. Slash()
  2115. end
  2116. end)
  2117.  
  2118.  
  2119. local sine = 0
  2120. local change = 1
  2121. local val = 0
  2122.  
  2123. while true do
  2124. swait()
  2125. sine = sine + change
  2126. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  2127. local velderp=RootPart.Velocity.y
  2128. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  2129. if equipped==true or equipped==false then
  2130. if attack==false then
  2131. idle=idle+1
  2132. else
  2133. idle=0
  2134. end
  2135. if idle>=500 then
  2136. if attack==false then
  2137. end
  2138. end
  2139. if RootPart.Velocity.y > 1 and hitfloor==nil then
  2140. Anim="Jump"
  2141. if attack==false then
  2142. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2143. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  2144. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(15)), 0.3)
  2145. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-15)), 0.3)
  2146. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-30),math.rad(90),math.rad(20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2147. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-30),math.rad(-90),math.rad(-20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2148. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2149. end
  2150. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  2151. Anim="Fall"
  2152. if attack==false then
  2153. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  2154. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(13),math.rad(0),math.rad(0)),.3)
  2155. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(20)), 0.3)
  2156. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  2157. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2158. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2159. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-15),math.rad(0),math.rad(0)),.3)
  2160. end
  2161. elseif torvel<1 and hitfloor~=nil then
  2162. Anim="Idle"
  2163. if attack==false then
  2164. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-2),math.rad(0),math.rad(15)),.3)
  2165. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(2),math.rad(0),math.rad(-15)),.3)
  2166. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(0)), 0.3)
  2167. LW.C0 = clerp(LW.C0, CFrame.new(-0.3, 0.5, -1) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.3)
  2168. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-2),math.rad(85),math.rad(0)),.3)
  2169. LH.C0=clerp(LH.C0,cf(-1,-1,0.3)*angles(math.rad(-36),math.rad(-95),math.rad(0)),.3)
  2170. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-10),math.rad(-2),math.rad(0)),.2)
  2171. end
  2172. elseif torvel>2 and hitfloor~=nil then
  2173. Anim="Walk"
  2174. if attack==false then
  2175. change=3
  2176. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(-20)),.3)
  2177. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(-5),math.rad(25)),.3)
  2178. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(-25), math.rad(5)), 0.3)
  2179. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30)*math.cos(sine/10), math.rad(5), math.rad(0)), 0.3)
  2180. RH.C0=clerp(RH.C0,cf(1.1,-.9,0)*angles(math.rad(0),math.rad(110),math.rad(0)),.3)
  2181. LH.C0=clerp(LH.C0,cf(-1.1,-.9,0)*angles(math.rad(0),math.rad(-70),math.rad(0)),.3)
  2182. handleweld.C0=clerp(handleweld.C0,cf(0,0,.3)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  2183. end
  2184. end
  2185. end
  2186. if #Effects>0 then
  2187. for e=1,#Effects do
  2188. if Effects[e]~=nil then
  2189. local Thing=Effects[e]
  2190. if Thing~=nil then
  2191. local Part=Thing[1]
  2192. local Mode=Thing[2]
  2193. local Delay=Thing[3]
  2194. local IncX=Thing[4]
  2195. local IncY=Thing[5]
  2196. local IncZ=Thing[6]
  2197. if Thing[1].Transparency<=1 then
  2198. if Thing[2]=="Block1" then
  2199. Thing[1].CFrame=Thing[1].CFrame*euler(math.rad(-50,50),math.rad(-50,50),math.rad(-50,50))
  2200. Mesh=Thing[1].Mesh
  2201. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2202. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2203. elseif Thing[2]=="Cylinder" then
  2204. Mesh=Thing[1].Mesh
  2205. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2206. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2207. elseif Thing[2]=="Blood" then
  2208. Mesh=Thing[7]
  2209. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  2210. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2211. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2212. elseif Thing[2]=="Elec" then
  2213. Mesh=Thing[1].Mesh
  2214. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  2215. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2216. elseif Thing[2]=="Disappear" then
  2217. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2218. end
  2219. else
  2220. Part.Parent=nil
  2221. table.remove(Effects,e)
  2222. end
  2223. end
  2224. end
  2225. end
  2226. end
  2227. end
Add Comment
Please, Sign In to add comment