Advertisement
danielaust

Azzy

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