Advertisement
Harry989

White & Black Sword V2 FE (Void Script Builder)

Dec 11th, 2017
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 81.50 KB | None | 0 0
  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.  
  8. -- Shadow Blade Edit by MappleGalexy(MapleGalaxy) --
  9. -- I'll Fucking Find You --
  10. Player=game:GetService("Players").LocalPlayer
  11. Character=Player.Character
  12. PlayerGui=Player.PlayerGui
  13. Backpack=Player.Backpack
  14. Torso=Character.Torso
  15. Head=Character.Head
  16. Humanoid=Character.Humanoid
  17. LeftArm=Character["Left Arm"]
  18. LeftLeg=Character["Left Leg"]
  19. RightArm=Character["Right Arm"]
  20. RightLeg=Character["Right Leg"]
  21. cam=game.Workspace.CurrentCamera
  22. LS=Torso["Left Shoulder"]
  23. LH=Torso["Left Hip"]
  24. RS=Torso["Right Shoulder"]
  25. RH=Torso["Right Hip"]
  26. Face = Head.face
  27. Neck=Torso.Neck
  28. it=Instance.new
  29. attacktype=1
  30. vt=Vector3.new
  31. cf=CFrame.new
  32. script.Name = "MagicBlade"
  33. euler=CFrame.fromEulerAnglesXYZ
  34. angles=CFrame.Angles
  35. cloaked=false
  36. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  37. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  38. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  39. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  40. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  41. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  42. RootPart=Character.HumanoidRootPart
  43. RootJoint=RootPart.RootJoint
  44. RootCF=euler(-1.57,0,3.14)
  45. attack = false
  46. bounce=false
  47. cooldown=false
  48. deeznuts=false
  49. attackdebounce = false
  50. deb=false
  51. equipped=true
  52. hand=false
  53. MMouse=nil
  54. combo=0
  55. mana=0
  56. trispeed=.2
  57. attackmode='none'
  58. local idle=0
  59. local Anim="Idle"
  60. local Effects={}
  61. local gun=false
  62. local shoot=false
  63. player=nil
  64. mana=0
  65. cam = workspace.CurrentCamera
  66. ZTarget = nil
  67. RocketTarget = nil
  68. local m = Instance.new("Model",Character)
  69. m.Name = "WeaponModelz"
  70.  
  71. local SHEZ = Instance.new("Sound",Character.HumanoidRootPart)SHEZ.SoundId = "rbxassetid://656541219" SHEZ.Looped = true SHEZ.Volume = 2 SHEZ:Play()
  72. mouse=Player:GetMouse()
  73. --save shoulders
  74. RSH, LSH=nil, nil
  75. --welds
  76. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  77. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  78. LH=Torso["Left Hip"]
  79. RH=Torso["Right Hip"]
  80. TorsoColor=Torso.BrickColor
  81. function NoOutline(Part)
  82. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  83. end
  84. player=Player
  85. ch=Character
  86. RSH=ch.Torso["Right Shoulder"]
  87. LSH=ch.Torso["Left Shoulder"]
  88. --
  89. RSH.Parent=nil
  90. LSH.Parent=nil
  91. --
  92. RW.Name="Right Shoulder"
  93. RW.Part0=ch.Torso
  94. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  95. RW.C1=cf(0, 0.5, 0)
  96. RW.Part1=ch["Right Arm"]
  97. RW.Parent=ch.Torso
  98. --
  99. LW.Name="Left Shoulder"
  100. LW.Part0=ch.Torso
  101. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  102. LW.C1=cf(0, 0.5, 0)
  103. LW.Part1=ch["Left Arm"]
  104. LW.Parent=ch.Torso
  105.  
  106.     function swait(num)
  107.     if num==0 or num==nil then
  108.     game:service'RunService'.Heartbeat:wait(0)
  109.     else
  110.     for i=0,num do
  111.     game:service'RunService'.Heartbeat:wait(0)
  112.     end
  113.     end
  114.     end
  115.    
  116.     function nooutline(part)
  117.         part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  118.     end
  119.    
  120.     function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  121.         local fp=it("Part")
  122.         fp.formFactor=formfactor
  123.         fp.Parent=parent
  124.         fp.Reflectance=reflectance
  125.         fp.Transparency=transparency
  126.         fp.CanCollide=false
  127.         fp.Locked=true
  128.         fp.BrickColor=BrickColor.new(tostring(brickcolor))
  129.         fp.Name=name
  130.         fp.Size=size
  131.         fp.Position=Character.Torso.Position
  132.         nooutline(fp)
  133.         fp.Material=material
  134.         fp:BreakJoints()
  135.         return fp
  136.     end
  137.    
  138.     function ppart(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  139.         local fp = it("Part")
  140.         fp.formFactor = formfactor
  141.         fp.Parent = parent
  142.         fp.Reflectance = reflectance
  143.         fp.Transparency = transparency
  144.         fp.CanCollide = false
  145.         fp.Locked=true
  146.         fp.BrickColor = brickcolor
  147.         fp.Name = name
  148.         fp.Size = size
  149.         fp.Position = EffectPart.Position
  150.         NoOutline(fp)
  151.         fp.Material="Neon"
  152.         fp:BreakJoints()
  153.         return fp
  154.     end
  155.    
  156.     function wweld(parent,part0,part1,c0)
  157.         local weld=it("Weld")
  158.         weld.Parent=parent 
  159.         weld.Part0=part0
  160.         weld.Part1=part1
  161.         weld.C0=c0
  162.         return weld
  163.     end
  164.    
  165.     function mesh(Mesh,part,meshtype,meshid,offset,scale)
  166.         local mesh=it(Mesh)
  167.         mesh.Parent=part
  168.         if Mesh=="SpecialMesh" then
  169.             mesh.MeshType=meshtype
  170.             mesh.MeshId=meshid
  171.         end
  172.         mesh.Offset=offset
  173.         mesh.Scale=scale
  174.         return mesh
  175.     end
  176.    
  177.     function decal(part,face,texture,transparency,shiny,specular,name)
  178.         local d=it("Decal",part)
  179.         d.Shiny=shiny
  180.         d.Face=face
  181.         d.Specular=specular
  182.         d.Transparency=transparency
  183.         d.Texture=texture
  184.         d.Name=name
  185.         return d
  186.     end
  187.    
  188.     function weld(parent,part0,part1,c0,c1)
  189.         local weld=it("Weld")
  190.         weld.Parent=parent
  191.         weld.Part0=part0
  192.         weld.Part1=part1
  193.         weld.C0=c0
  194.         weld.C1=c1
  195.         return weld
  196.     end
  197.    
  198. Humanoid.Name = "Noctis"
  199. local SH = Instance.new("Sound")
  200. local list = {}
  201.    
  202. so = function(id,par,vol,pit)
  203. coroutine.resume(coroutine.create(function()
  204. local sou = SH:clone() sou.Parent = par or workspace
  205. sou.Volume=vol
  206. sou.Pitch=pit or 1
  207. sou.SoundId=id
  208. sou:play()
  209. game:GetService("Debris"):AddItem(sou,15)
  210. end))
  211. end
  212.  
  213. function clerp(a,b,t)
  214. local qa = {QuaternionFromCFrame(a)}
  215. local qb = {QuaternionFromCFrame(b)}
  216. local ax, ay, az = a.x, a.y, a.z
  217. local bx, by, bz = b.x, b.y, b.z
  218. local _t = 1-t
  219. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  220. end
  221.  
  222. function QuaternionFromCFrame(cf)
  223. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  224. local trace = m00 + m11 + m22
  225. if trace > 0 then
  226. local s = math.sqrt(1 + trace)
  227. local recip = 0.5/s
  228. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  229. else
  230. local i = 0
  231. if m11 > m00 then
  232. i = 1
  233. end
  234. if m22 > (i == 0 and m00 or m11) then
  235. i = 2
  236. end
  237. if i == 0 then
  238. local s = math.sqrt(m00-m11-m22+1)
  239. local recip = 0.5/s
  240. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  241. elseif i == 1 then
  242. local s = math.sqrt(m11-m22-m00+1)
  243. local recip = 0.5/s
  244. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  245. elseif i == 2 then
  246. local s = math.sqrt(m22-m00-m11+1)
  247. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  248. end
  249. end
  250. end
  251.  
  252. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  253. local xs, ys, zs = x + x, y + y, z + z
  254. local wx, wy, wz = w*xs, w*ys, w*zs
  255. local xx = x*xs
  256. local xy = x*ys
  257. local xz = x*zs
  258. local yy = y*ys
  259. local yz = y*zs
  260. local zz = z*zs
  261. 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))
  262. end
  263.  
  264. function QuaternionSlerp(a, b, t)
  265. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  266. local startInterp, finishInterp;
  267. if cosTheta >= 0.0001 then
  268. if (1 - cosTheta) > 0.0001 then
  269. local theta = math.acos(cosTheta)
  270. local invSinTheta = 1/math.sin(theta)
  271. startInterp = math.sin((1-t)*theta)*invSinTheta
  272. finishInterp = math.sin(t*theta)*invSinTheta  
  273. else
  274. startInterp = 1-t
  275. finishInterp = t
  276. end
  277. else
  278. if (1+cosTheta) > 0.0001 then
  279. local theta = math.acos(-cosTheta)
  280. local invSinTheta = 1/math.sin(theta)
  281. startInterp = math.sin((t-1)*theta)*invSinTheta
  282. finishInterp = math.sin(t*theta)*invSinTheta
  283. else
  284. startInterp = t-1
  285. finishInterp = t
  286. end
  287. end
  288. 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
  289. end
  290.  
  291. function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  292. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  293. end
  294.  
  295. Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  296.         if hit.Parent==nil then
  297.                 return
  298.         end
  299.         local h=hit.Parent:FindFirstChild("Humanoid")
  300.         for _,v in pairs(hit.Parent:children()) do
  301.         if v:IsA("Humanoid") then
  302.         h=v
  303.         end
  304.         end
  305.         if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  306.         h=hit.Parent.Parent:FindFirstChild("Humanoid")
  307.         end
  308.         if hit.Parent.className=="Hat" then
  309.         hit=hit.Parent.Parent:findFirstChild("Head")
  310.         end
  311.         if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  312.         if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  313.         --[[                if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  314.                         return
  315.                 end]]
  316. --                        hs(hit,1.2)
  317.                         local c=Instance.new("ObjectValue")
  318.                         c.Name="creator"
  319.                         c.Value=game:service("Players").LocalPlayer
  320.                         c.Parent=h
  321.                         game:GetService("Debris"):AddItem(c,.5)
  322.                 local Damage=math.random(minim,maxim)
  323. --                h:TakeDamage(Damage)
  324.                 local  blocked=false
  325.                 local  block=hit.Parent:findFirstChild("Block")
  326.                 if block~=nil then
  327.                 print(block.className)
  328.                 if block.className=="NumberValue" then
  329.                 if block.Value>0 then
  330.                 blocked=true
  331.                 if decreaseblock==nil then
  332.                 block.Value=block.Value-1
  333.                 end
  334.                 end
  335.                 end
  336.                 if block.className=="IntValue" then
  337.                 if block.Value>0 then
  338.                 blocked=true
  339.                 if decreaseblock~=nil then
  340.                 block.Value=block.Value-1
  341.                 end
  342.                 end
  343.                 end
  344.                 end
  345.                 if blocked==false then
  346. --                h:TakeDamage(Damage)
  347.                 h.Health=h.Health-Damage
  348.                 ShowDamage((Part.CFrame * CFrame.new(math.random(-5,5), math.random(-5,5), math.random(-5,5)+ (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
  349.                 else
  350.                 h.Health=h.Health-(Damage/2)
  351.                 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)
  352.                 end
  353.                 if Type=="Knockdown" then
  354.                 local hum=hit.Parent.Humanoid
  355. hum.PlatformStand=true
  356. coroutine.resume(coroutine.create(function(HHumanoid)
  357. swait(1)
  358. HHumanoid.PlatformStand=false
  359. end),hum)
  360.                 local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  361. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  362. local bodvol=Instance.new("BodyVelocity")
  363. bodvol.velocity=angle*knockback
  364. bodvol.P=5000
  365. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  366. bodvol.Parent=hit
  367. local rl=Instance.new("BodyAngularVelocity")
  368. rl.P=3000
  369. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  370. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  371. rl.Parent=hit
  372. game:GetService("Debris"):AddItem(bodvol,.5)
  373. game:GetService("Debris"):AddItem(rl,.5)
  374.                 elseif Type=="Normal" then
  375.                 local vp=Instance.new("BodyVelocity")
  376.                 vp.P=500
  377.                 vp.maxForce=Vector3.new(math.huge,0,math.huge)
  378. --                vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  379.                 if KnockbackType==1 then
  380.                 vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  381.                 elseif KnockbackType==2 then
  382.                 vp.velocity=Property.CFrame.lookVector*knockback
  383.                 end
  384.                 if knockback>0 then
  385.                         vp.Parent=hit.Parent.Torso
  386.                 end
  387.                 game:GetService("Debris"):AddItem(vp,.5)
  388.                 elseif Type=="Up" then
  389.                 local bodyVelocity=Instance.new("BodyVelocity")
  390.                 bodyVelocity.velocity=vt(0,60,0)
  391.                 bodyVelocity.P=5000
  392.                 bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  393.                 bodyVelocity.Parent=hit
  394.                 game:GetService("Debris"):AddItem(bodyVelocity,1)
  395.                 local rl=Instance.new("BodyAngularVelocity")
  396.                 rl.P=3000
  397.                 rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  398.                 rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  399.                 rl.Parent=hit
  400.                 game:GetService("Debris"):AddItem(rl,.5)
  401.                 elseif Type=="Snare" then
  402.                 local bp=Instance.new("BodyPosition")
  403.                 bp.P=2000
  404.                 bp.D=100
  405.                 bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  406.                 bp.position=hit.Parent.Torso.Position
  407.                 bp.Parent=hit.Parent.Torso
  408.                 game:GetService("Debris"):AddItem(bp,1)
  409.                 elseif Type=="Target" then
  410.                 local Targetting = false
  411.                 if Targetting==false then
  412.                 ZTarget=hit.Parent.Torso
  413.                 coroutine.resume(coroutine.create(function(Part)
  414.                 so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  415.                 swait(5)
  416.                 so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  417.                 end),ZTarget)
  418.                 local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  419.                 local  targetgui=Instance.new("BillboardGui")
  420.                 targetgui.Parent=ZTarget
  421.                 targetgui.Size=UDim2.new(10,100,10,100)
  422.                 local targ=Instance.new("ImageLabel")
  423.                 targ.Parent=targetgui
  424.                 targ.BackgroundTransparency=1
  425.                 targ.Image="rbxassetid://4834067"
  426.                 targ.Size=UDim2.new(1,0,1,0)
  427.                 cam.CameraType="Scriptable"
  428.                 cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  429.                 local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  430.                 workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  431.                 Targetting=true
  432.                 RocketTarget=ZTarget
  433.                 for i=1,Property do
  434.                 --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  435.                 if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  436.                 swait()
  437.                 end
  438.                 --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  439.                 cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  440.                 dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  441.                 cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  442.                 end
  443.                 Targetting=false
  444.                 RocketTarget=nil
  445.                 targetgui.Parent=nil
  446.                 cam.CameraType="Custom"
  447.                 end
  448.                 end
  449.                         c=Instance.new("ObjectValue")
  450.                         c.Name="creator"
  451.                         c.Value=Player
  452.                         c.Parent=h
  453.                         game:GetService("Debris"):AddItem(c,.5)
  454.         end
  455. end
  456.  
  457.  
  458. function ShowDamage(Pos, Text, Time, Color)
  459.     local Rate = (1 / 30)
  460.     local Pos = (Pos or Vector3.new(0, 0, 0))
  461.     local Text = (Text or "")
  462.     local Time = (Time or 2)
  463.     local Color = (Color or Color3.new(1, 0, 0))
  464.     local EffectPart = part("Custom",workspace,"SmoothPlastic",0,1,BrickColor.new(Color),"Effect",vt(0,0,0))
  465.     EffectPart.Anchored = true
  466.     local BillboardGui = Instance.new("BillboardGui")
  467.     BillboardGui.Size = UDim2.new(3, 0, 3, 0)
  468.     BillboardGui.Adornee = EffectPart
  469.     local TextLabel = Instance.new("TextLabel")
  470.     TextLabel.BackgroundTransparency = 1
  471.     TextLabel.Size = UDim2.new(1, 0, 1, 0)
  472.     TextLabel.Text = Text
  473.     TextLabel.TextColor3 = Color
  474.     TextLabel.TextScaled = true
  475.     TextLabel.Font = Enum.Font.ArialBold
  476.     TextLabel.Parent = BillboardGui
  477.     BillboardGui.Parent = EffectPart
  478.     game.Debris:AddItem(EffectPart, (Time + 0.1))
  479.     EffectPart.Parent = game:GetService("Workspace")
  480.     Delay(0, function()
  481.         local Frames = (Time / Rate)
  482.         for Frame = 1, Frames do
  483.             wait(Rate)
  484.             local Percent = (Frame / Frames)
  485.             EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  486.             TextLabel.TextTransparency = Percent
  487.         end
  488.         if EffectPart and EffectPart.Parent then
  489.             EffectPart:Destroy()
  490.         end
  491.     end)
  492. end
  493.  
  494. handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Handle",Vector3.new(0.200000003, 1.61857152, 0.200000003))
  495. 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))
  496. handleweld.Name = "MagicWeld"
  497. mesh("CylinderMesh",handle,"","",Vector3.new(0, 0, 0),Vector3.new(0.857142806, 1, 0.857142746))
  498. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","SwordPart",Vector3.new(0.200000003, 0.257142872, 0.911428571))
  499. 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))
  500. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.571428537, 1, 1))
  501. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really black","SwordPart",Vector3.new(0.200000003, 3.74285722, 0.571428657))
  502. 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))
  503. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 1, 1))
  504. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","SwordPart",Vector3.new(0.200000003, 3.74285722, 0.514285743))
  505. 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))
  506. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.571428537, 1, 1))
  507. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","SwordPart",Vector3.new(0.200000003, 0.914285779, 0.254285723))
  508. 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))
  509. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.571428537, 1, 1))
  510. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really black","SwordPart",Vector3.new(0.200000003, 0.942857206, 0.28285715))
  511. 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))
  512. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 1, 1))
  513. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really black","SwordPart",Vector3.new(0.200000003, 0.285714328, 0.940000057))
  514. 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))
  515. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 1, 1))
  516. Part=part(Enum.FormFactor.Brick,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","SwordPart",Vector3.new(1, 1.20000005, 1))
  517. 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))
  518. mesh("SpecialMesh",Part,Enum.MeshType.Head,"",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 0.142857134, 0.285714298))
  519. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really black","SwordPart",Vector3.new(0.483492821, 0.539954185, 0.539909601))
  520. 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))
  521. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714179))
  522. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","SwordPart",Vector3.new(0.892679513, 0.539954185, 0.771299422))
  523. 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))
  524. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.857145786, 1))
  525. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really black","SwordPart",Vector3.new(0.892679513, 0.539954185, 0.771299422))
  526. 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))
  527. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.10000002, 0.571431458, 1.10000002))
  528. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really black","SwordPart",Vector3.new(0.483492851, 0.539954185, 0.539909601))
  529. 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))
  530. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714179))
  531. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really black","SwordPart",Vector3.new(0.483492821, 0.539954185, 0.539909601))
  532. 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))
  533. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714269))
  534. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really black","SwordPart",Vector3.new(0.493492872, 0.539954185, 0.539909601))
  535. 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))
  536. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714269))
  537. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really black","SwordPart",Vector3.new(1.46267962, 0.200000003, 0.200000003))
  538. 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))
  539. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  540. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really black","SwordPart",Vector3.new(1.06267953, 0.200000003, 0.200000003))
  541. 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))
  542. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  543. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really black","SwordPart",Vector3.new(1.46267962, 0.200000003, 0.200000003))
  544. 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))
  545. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  546. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really black","SwordPart",Vector3.new(0.662679553, 0.200000003, 0.200000003))
  547. 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))
  548. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  549. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really black","SwordPart",Vector3.new(1.46267951, 0.200000003, 0.200000003))
  550. 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))
  551. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  552. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really black","SwordPart",Vector3.new(1.06267953, 0.200000003, 0.200000003))
  553. 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))
  554. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  555. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really black","SwordPart",Vector3.new(0.372464359, 0.762464345, 0.762464285))
  556. 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))
  557. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.895366609, 0.128561974, 0.128542364))
  558. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really black","SwordPart",Vector3.new(0.382464379, 0.762464345, 0.762464285))
  559. 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))
  560. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.913885474, 0.128561974, 0.128542408))
  561. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really black","SwordPart",Vector3.new(0.40246433, 0.762464345, 0.762464285))
  562. 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))
  563. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.895366609, 0.128561974, 0.128542408))
  564. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really black","SwordPart",Vector3.new(0.40246433, 0.762464345, 0.762464285))
  565. 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))
  566. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.895366669, 0.128561974, 0.128542364))
  567. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","SwordPart",Vector3.new(1.26045096, 0.762464345, 0.762464285))
  568. 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))
  569. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.385687381, 0.642712057))
  570. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really black","SwordPart",Vector3.new(1.26045096, 0.762464345, 0.762464285))
  571. 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))
  572. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.10000002, 0.257125348, 0.706983268))
  573. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","SwordPart",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  574. 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))
  575. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.857142806, 0.857145548, 0.857142746))
  576. Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Institutional white","Hitbox",Vector3.new(0.650000036, 4.19999981, 0.200000003))
  577. 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))
  578. EffectPart=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","EffectPart",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  579. 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))
  580. mesh("BlockMesh",EffectPart,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  581. EffectPart2=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Institutional white","EffectPart2",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  582. 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))
  583.  
  584. local ColorsArray = {ColorSequenceKeypoint.new(0, Color3.new(0/0,0/0,0/0)),ColorSequenceKeypoint.new(1, Color3.new(0/0,0/0,0/0))}
  585. local Atch1 = Instance.new("Attachment",Hitbox)Atch1.Position = Vector3.new(0,2,0)
  586. local Atch2 = Instance.new("Attachment",Hitbox)Atch2.Position = Vector3.new(0,-2.5,0)
  587. local Trail = Instance.new("Trail",Hitbox)Trail.Attachment0 = Atch1 Trail.Attachment1 = Atch2
  588. Trail.Texture = "rbxassetid://22636887" Trail.Lifetime = 0.05 Trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  589. Trail.Color = ColorSequence.new(ColorsArray) Trail.LightEmission = 1
  590.  
  591. DarkRiftF=function(par)
  592. while lol == true do
  593. wait()
  594. local PWN={}
  595. for _,v in pairs(game.Workspace:children()) do
  596. if v.className=="Model" and v:FindFirstChild("Humanoid")~=nil then
  597. if v.Humanoid.Health>0 and v:FindFirstChild("Torso")~=nil then
  598. table.insert(PWN,v.Torso)
  599. end
  600. end
  601. end
  602. for _,t in pairs(PWN) do
  603. local targ=par.Position-t.Position
  604. local Mag=targ.magnitude
  605. if not t:IsDescendantOf(Character) and t~=nil and Mag<=50 then
  606. if Mag<=30 then
  607. t.Parent.Humanoid:TakeDamage(.5)
  608. local rl=Instance.new("BodyAngularVelocity")
  609. rl.P=3000
  610. rl.maxTorque=Vector3.new(500000,500000,500000)*5000
  611. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))/10
  612. rl.Parent=t
  613. game:GetService("Debris"):AddItem(rl,.1)
  614. end
  615. if Mag<=20 then
  616. t.Parent.Humanoid:TakeDamage(.1)
  617. else
  618. local vl=Instance.new("BodyVelocity")
  619. vl.P=3000
  620. vl.maxForce=Vector3.new(50000000000,50000000000,50000000000)
  621. vl.velocity=(t.Position-par.Position).unit*-(70/(Mag))
  622. vl.Parent=t
  623. game:GetService("Debris"):AddItem(vl,.1)
  624. end
  625. end
  626. end
  627. wait(.08)
  628. end
  629. end
  630.  
  631. function DerpMagic(part,x1,y1,z1,x2,y2,z2,color)
  632.     local msh1 = Instance.new("BlockMesh")
  633.     msh1.Scale = Vector3.new(0.5,0.5,0.5)
  634.     local S=Instance.new("Part")
  635.     S.Name="Effect"
  636.     S.Material="Neon"
  637.     S.formFactor=0
  638.     S.Size=Vector3.new(x1,y1,z1)
  639.     S.BrickColor=color
  640.     S.Reflectance = 0
  641.     S.TopSurface=0
  642.     S.BottomSurface=0
  643.     S.Transparency=0
  644.     S.Anchored=false
  645.     S.CanCollide=false
  646.     S.CFrame=part.CFrame
  647.     S.Parent=game.Workspace
  648.     msh1.Parent = S
  649.     local W=Instance.new("Weld")
  650.     W.Parent=S
  651.     W.Part0=S
  652.     W.Part1=part
  653.     W.C0=CFrame.new(x2,y2,z2) * CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  654.     W.Parent=nil
  655.     S.Anchored=true
  656.     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.random(-50,50),math.random(-50,50),math.random(-50,50))]] Part.Transparency=i*.1 wait() end Part.Parent=nil Weld.Parent=nil end),S,W)
  657. end
  658.  
  659. local function BlackHole(parent,cframe)
  660. local effectsmsh = Instance.new("SpecialMesh")
  661. effectsmsh.MeshId = "http://www.roblox.com/asset/?id=15887356"
  662. --effectsmsh.Scale = Vector3.new(1,1,2.5)
  663. effectsmsh.Scale = Vector3.new(3,3,3)
  664. local effectsg = Instance.new("Part")
  665. effectsg.formFactor = 3
  666. effectsg.CanCollide = false
  667. effectsg.Name = "Effect"
  668. effectsg.Locked = true
  669. effectsg.Transparency = 1
  670. effectsg.Size = Vector3.new(0.2,0.2,0.2)
  671. effectsg.Parent = parent
  672. effectsg.BrickColor = BrickColor.new("Really black")
  673. effectsg.Material="Neon"
  674. coroutine.resume(coroutine.create(function(Part,Mesh)
  675.     local Mesh = Instance.new("SpecialMesh")
  676.     Mesh.Scale = Vector3.new(0.5,0.5,0.5)
  677.     Mesh.MeshType = "Sphere"
  678. --  Mesh.TextureId="http://www.roblox.com/asset/?id=1529460"
  679.     Part=Instance.new("Part")
  680.     Part.Name="Effect"
  681.     Part.formFactor=0
  682.     Part.Size=Vector3.new(1,1,1)
  683.     Part.BrickColor=BrickColor.new("Really black")
  684.     Part.Material="Neon"
  685.     Part.Reflectance = 0
  686.     Part.TopSurface=0
  687.     Part.BottomSurface=0
  688.     Part.Transparency=0
  689.     Part.Anchored=true
  690. NoOutline(Part)
  691.     Part.CanCollide=false
  692.     Part.CFrame=cframe
  693.     Part.Parent=parent
  694.     Mesh.Parent = Part
  695.     lol=true
  696. coroutine.resume(coroutine.create(function()
  697.     DarkRiftF(Part)
  698. end))
  699.     for i=0,200 do
  700.     wait()
  701.     DerpMagic(Part,1,i/3,1,0,i/3,0,BrickColor.new("Really black"))
  702.     Mesh.Scale=Mesh.Scale-Vector3.new(0.2,0.2,0.2)
  703.     Part.CFrame=cframe*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  704.     end
  705.     local fff=200
  706.     for i=0,100 do
  707.     wait()
  708.     DerpMagic(Part,1,fff/3,1,0,fff/3,0,BrickColor.new("Really black"))
  709.     Part.CFrame=cframe*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  710.     end
  711.     for i=0,1,0.05 do
  712.     wait()
  713.     Part.Transparency=Part.Transparency+0.05
  714.     Mesh.Scale=Mesh.Scale+Vector3.new(1.5,1.5,1.5)
  715.     end
  716.     lol=false
  717.     Part.Parent=nil
  718. end),nil,nil)
  719. end
  720.  
  721. function makeShockwave(height,color,speed,range,pulse)
  722. local range = range or 2000
  723. local p = Instance.new("Part")
  724. p.Anchored = true
  725. p.CanCollide = false
  726. p.FormFactor = "Custom"
  727. p.BrickColor = color
  728. p.Parent = workspace
  729. local m = Instance.new("SpecialMesh",p)
  730. m.MeshId = "rbxassetid://3270017"
  731. local estimateSurvival = math.floor(range/speed) * 0.03
  732. game:GetService("Debris"):AddItem(p,estimateSurvival)
  733. Spawn(function ()
  734. for i = 1,range,speed do
  735. p.Transparency = 1-math.min(0.5,3-(i/500))
  736. m.Scale = Vector3.new(i,i,i*height)
  737. p.CFrame = CFrame.new(Torso.Position) * CFrame.Angles(math.rad(90),0,0)
  738. wait()
  739. end
  740. p:Destroy()
  741. end)
  742. end
  743.  
  744. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  745. local prt=ppart(3,game.Workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  746. prt.Anchored=true
  747. prt.CFrame=cframe
  748. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(.1,.1,.1))
  749. game:GetService("Debris"):AddItem(prt,2)
  750. coroutine.resume(coroutine.create(function(Part,Mesh)
  751. for i=0,2,delay do
  752. wait()
  753. Part.CFrame=Part.CFrame
  754. Part.Transparency=i
  755. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  756. end
  757. Part.Parent=nil
  758. end),prt,msh)
  759. end
  760.  
  761. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  762. local prt=ppart(3,game.Workspace,0,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  763. prt.Anchored=true
  764. prt.CFrame=cframe
  765. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  766. game:GetService("Debris"):AddItem(prt,5)
  767. coroutine.resume(coroutine.create(function(Part,Mesh)
  768. for i=0,1,delay do
  769. wait()
  770. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  771. Part.Transparency=i
  772. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  773. end
  774. Part.Parent=nil
  775. end),prt,msh)
  776. end
  777.  
  778. local function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type,parent)
  779. local prt=ppart(3,game.Workspace,0,1,brickcolor,"Effect",vt())
  780. if Type~=2 then
  781. prt.Anchored=true
  782. end
  783. prt.CFrame=cframe
  784. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  785. game:GetService("Debris"):AddItem(prt,5)
  786. coroutine.resume(coroutine.create(function(Part,Mesh,dur)
  787. local wld=nil
  788. if dur==2 then
  789. wld=weld(Part,Part,parent,euler(0,0,0)*cf(0,0,0))
  790. end
  791. for i=0,1,delay do
  792. swait()
  793. if dur==1 then
  794. Part.CFrame=Part.CFrame
  795. elseif dur==2 then
  796. wld.C0=cframe
  797. end
  798. Part.Transparency=i
  799. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  800. end
  801. Part.Parent=nil
  802. end),prt,msh,Type)
  803. end
  804.  
  805. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  806. local prt=ppart(3,game.Workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  807. prt.Anchored=true
  808. prt.CFrame=cframe
  809. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  810. game:GetService("Debris"):AddItem(prt,5)
  811. coroutine.resume(coroutine.create(function(Part,Mesh)
  812. for i=0,1,delay do
  813. swait()
  814. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  815. Part.Transparency=i
  816. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  817. end
  818. Part.Parent=nil
  819. end),prt,msh)
  820. end
  821.  
  822. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  823. local prt=ppart(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  824. prt.Anchored=true
  825. prt.CFrame=cframe
  826. local msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  827. game:GetService("Debris"):AddItem(prt,5)
  828. coroutine.resume(coroutine.create(function(Part,Mesh)
  829. for i=0,1,delay do
  830. wait()
  831. Part.CFrame=Part.CFrame
  832. Part.Transparency=i
  833. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  834. end
  835. Part.Parent=nil
  836. end),prt,msh)
  837. end
  838.  
  839. function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  840. local prt=ppart(3,workspace,0,0,brickcolor,"Effect",vt())
  841. prt.Anchored=true
  842. prt.CFrame=cframe
  843. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  844. game:GetService("Debris"):AddItem(prt,5)
  845. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  846. end
  847.  
  848. function Blast(parent)
  849. MagicBlock(BrickColor.new("Institutional white"),parent.CFrame,4,4,4,0.2,0.2,0.2,0.01)
  850. MagicWaveThing(BrickColor.new("Institutional white"),parent.CFrame,4,4,4,0.2,0.2,0.2,0.01)
  851. end
  852.  
  853. function ChargeBall(parent,t)
  854. local counter=0
  855. local size=1
  856. for i=0,t,1 do
  857. swait()
  858. counter=counter+1
  859. if counter%10==0 then
  860. if size==3 then
  861. MagicRing(BrickColor.new("Institutional white"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  862. elseif size==2 then
  863. MagicRing(BrickColor.new("Institutional white"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  864. end
  865. end
  866. if counter%5==0 then
  867. if size==1 then
  868. MagicBlock(BrickColor.new("Institutional white"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  869. elseif size==2 then
  870. MagicBlock(BrickColor.new("Institutional white"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  871. elseif size==3 then
  872. MagicBlock(BrickColor.new("Institutional white"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  873. end
  874. end
  875. end
  876. end
  877.  
  878. function ChargeBall2(parent,t)
  879. local counter=0
  880. local size=1
  881. for i=0,t,1 do
  882. swait()
  883. counter=counter+1
  884. if counter%10==0 then
  885. if size==3 then
  886. MagicRing(BrickColor.new("Institutional white"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  887. elseif size==2 then
  888. MagicRing(BrickColor.new("Institutional white"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  889. end
  890. end
  891. if counter%5==0 then
  892. if size==1 then
  893. MagicBlock(BrickColor.new("Institutional white"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  894. MagicWave(BrickColor.new("Really black"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05)
  895. elseif size==2 then
  896. MagicBlock(BrickColor.new("Institutional white"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  897. MagicWave(BrickColor.new("Really black"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05)
  898. elseif size==3 then
  899. MagicBlock(BrickColor.new("Institutional white"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  900. MagicWave(BrickColor.new("Really black"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05)
  901. end
  902. end
  903. end
  904. end
  905.  
  906. function MagniDamage(Part,dis,mind,maxd,force,knock)
  907. for _,c in pairs(workspace:children()) do
  908. local hum=c:findFirstChild("Humanoid")
  909. if hum~=nil then
  910. local head=c:findFirstChild("Torso")
  911. if head~=nil then
  912. local targ=head.Position-Part.Position
  913. local mag=targ.magnitude
  914. if mag<=dis and c.Name~=Character.Name then
  915. Damagefunc(Part,hum.Parent.Torso,mind,maxd,force,knock,RootPart,.2,1)
  916. end
  917. end
  918. end
  919. end
  920. end
  921.  
  922. function computeDirection(vec)
  923. local lenSquared = vec.magnitude * vec.magnitude
  924. local invSqrt = 1 / math.sqrt(lenSquared)
  925. return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
  926. end
  927.  
  928. function attackone()
  929. attack = true
  930. local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  931. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,5,9,math.random(5,5),"Normal",RootPart,.2,1) end)
  932. local fx=Hitbox.Touched:connect(function(part)
  933.     local human=part.Parent:findFirstChild("Humanoid")
  934.     if human~=nil and bounce==false then
  935.         bounce=true
  936.         local rndm=math.random(1,#hitsounds)
  937.         local r=rndm
  938.         so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,1)
  939.     end
  940. end)
  941. for i = 0,1,0.25 do
  942. swait()
  943. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),1)
  944. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(50)),1)
  945. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(100)),1)
  946. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)),1)
  947. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(120),math.rad(0)),1)
  948. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  949. end
  950. so("http://www.roblox.com/asset/?id=712781677",handle,1,.9)
  951. for i = 0,1,0.5 do
  952. swait()
  953. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  954. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  955. local h = 5
  956. scfr = blcf
  957. elseif not scfr then
  958. scfr = blcf
  959. end
  960. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.5)
  961. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-80)),0.5)
  962. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.5)
  963. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.5)
  964. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(0)),0.5)
  965. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),0.5)
  966. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-25),math.rad(0),math.rad(0)),.5)
  967. end
  968. attack = false
  969. bounce=false
  970. scfr=nil
  971. fx:disconnect()
  972. con:disconnect()
  973. end
  974.  
  975. function attacktwo()
  976. attack=true
  977. local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  978. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,4,9,math.random(5,5),"Normal",RootPart,.2,1) end)
  979. local fx=Hitbox.Touched:connect(function(part)
  980.     local human=part.Parent:findFirstChild("Humanoid")
  981.     if human~=nil and bounce==false then
  982.         bounce=true
  983.         local rndm=math.random(1,#hitsounds)
  984.         local r=rndm
  985.         so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,1)
  986.     end
  987. end)
  988. for i=0,1,.25 do
  989. swait()
  990. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.5)
  991. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-90)),0.5)
  992. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.5)
  993. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.5)
  994. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(40),math.rad(0)),0.4)
  995. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-140),math.rad(-10)),0.5)
  996. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-25),math.rad(0),math.rad(0)),.5)
  997. end
  998. so("http://www.roblox.com/asset/?id=712781677",handle,1,1)
  999. for i = 0,1,0.5 do
  1000. swait()
  1001. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  1002. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1003. local h = 5
  1004. scfr = blcf
  1005. elseif not scfr then
  1006. scfr = blcf
  1007. end
  1008. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),0.5)
  1009. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(90)),0.5)
  1010. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(90)),0.5)
  1011. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)),0.5)
  1012. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(140),math.rad(0)),0.5)
  1013. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-40),math.rad(-10)),0.5)
  1014. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.5)
  1015. end
  1016. scfr=nil
  1017. attack=false
  1018. bounce=false
  1019. con:disconnect()
  1020. fx:disconnect()
  1021. end
  1022.  
  1023. function attackthree()
  1024. attack=true
  1025. local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  1026. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,12,16,math.random(5,5),"Normal",RootPart,.2,1) end)
  1027. local fx=Hitbox.Touched:connect(function(part)
  1028.     local human=part.Parent:findFirstChild("Humanoid")
  1029.     if human~=nil and bounce==false then
  1030.         bounce=true
  1031.         local rndm=math.random(1,#hitsounds)
  1032.         local r=rndm
  1033.         so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,1)
  1034.     end
  1035. end)
  1036. for i=0,1,.25 do
  1037. swait()
  1038. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-30)),0.5)
  1039. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(30)),.5)
  1040. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.5)
  1041. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(25), math.rad(0), math.rad(-30)),0.5)
  1042. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(105),math.rad(0)),0.5)
  1043. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-75),math.rad(-10)),0.5)
  1044. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.5)
  1045. end
  1046. so("http://www.roblox.com/asset/?id=712781677",handle,1,.9)
  1047. for i = 0,1,0.5 do
  1048. swait()
  1049. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  1050. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1051. local h = 5
  1052. scfr = blcf
  1053. elseif not scfr then
  1054. scfr = blcf
  1055. end
  1056. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),0.5)
  1057. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-50)),.5)
  1058. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)),0.5)
  1059. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)),0.5)
  1060. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(0)),0.5)
  1061. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(-10)),0.5)
  1062. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0)),.5)
  1063. end
  1064. attack=false
  1065. bounce=false
  1066. scfr=nil
  1067. con:disconnect()
  1068. fx:disconnect()
  1069. end
  1070.  
  1071. function attackfour()
  1072. attack = true
  1073. local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  1074. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,4,9,math.random(20,30),"Normal",RootPart,.2,1) end)
  1075. local fx=Hitbox.Touched:connect(function(part)
  1076.     local human=part.Parent:findFirstChild("Humanoid")
  1077.     if human~=nil and bounce==false then
  1078.         bounce=true
  1079.         local rndm=math.random(1,#hitsounds)
  1080.         local r=rndm
  1081.         so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,1)
  1082.     end
  1083. end)
  1084. for i = 0,1,0.25 do
  1085. swait()
  1086. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(-5),math.rad(-60)),.5)
  1087. Torso.Neck.C0=clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.5)
  1088. RW.C0=clerp(RW.C0,cf(1.5, 0.8, 0.2) * angles(math.rad(5), math.rad(-15), math.rad(112)), 0.5)
  1089. LW.C0=clerp(LW.C0,cf(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(-20)), 0.5)
  1090. RH.C0=clerp(RH.C0,cf(1.1,-1,0)*angles(math.rad(-5),math.rad(120),math.rad(-8)),.5)
  1091. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(5),math.rad(-60),math.rad(0)),.5)
  1092. handleweld.C0=clerp(handleweld.C0,cf(0,-.2,.5)*angles(math.rad(50),math.rad(-15),math.rad(0)),.5)
  1093. end
  1094. so("http://www.roblox.com/asset/?id=712781677",Hitbox,1,1.1)
  1095. local v=it("BodyVelocity",Torso)
  1096. v.maxForce=Vector3.new(4e+005,4e+005,4e+005)*1
  1097. v.velocity=RootPart.CFrame.lookVector*50
  1098. for i = 0,1,0.5 do
  1099. swait()
  1100. local blcf = Hitbox.CFrame*cf(0,0,0)
  1101. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1102. local h = 5
  1103. scfr = blcf
  1104. elseif not scfr then
  1105. scfr = blcf
  1106. end
  1107. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(60)),.5)
  1108. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-60)),.5)
  1109. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(60), math.rad(100)), 0.5)
  1110. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-15)), 0.5)
  1111. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.5)
  1112. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.5)
  1113. handleweld.C0=clerp(handleweld.C0,cf(0,-1,-1)*angles(math.rad(-100),math.rad(0),math.rad(0)),.5)
  1114. end
  1115. v.Parent=nil
  1116. scfr=nil
  1117. attack = false
  1118. bounce=false
  1119. con:disconnect()
  1120. fx:disconnect()
  1121. end
  1122.  
  1123. function Shockwave1(CFramez, Rangez)
  1124. local Shock = Instance.new("Part",game.Workspace)Shock.Transparency = 0.75 Shock.Size = Vector3.new(0.2,0.2,0.2) Shock.Anchored = true
  1125. Shock.CanCollide = false Shock.BrickColor = BrickColor.new("Medium stone grey") local SM = Instance.new("SpecialMesh",Shock)
  1126. SM.MeshId = "rbxassetid://20329976" Shock.CFrame = CFramez SM.Scale = Vector3.new(0,0,0)
  1127. Spawn(function ()
  1128. for i = 1,3 do
  1129. SM.Scale = SM.Scale + Vector3.new(2+Rangez/2,0.15+Rangez/12,2+Rangez/2)
  1130. Shock.CFrame = Shock.CFrame* CFrame.new(0,0,0)*CFrame.Angles(0,math.rad(-80/Rangez),0)
  1131. wait()
  1132. end
  1133. for i = 1,math.huge do
  1134. if Shock.Transparency >= 1 then break end
  1135. Shock.Transparency = Shock.Transparency + 0.025 Shock.CFrame = Shock.CFrame* CFrame.new(0,0,0)*CFrame.Angles(0,math.rad(-150/Rangez),0)
  1136. SM.Scale = SM.Scale + Vector3.new(0.5,0.05,0.5)
  1137. wait()
  1138. end
  1139. Shock:remove()
  1140. end)
  1141. end
  1142.  
  1143.  
  1144. function PortalStorm()
  1145. attack=true
  1146. local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  1147. so("http://www.roblox.com/asset/?id=562500427",handle,1,.9)
  1148. MagniDamage(Character.HumanoidRootPart,20,150,235,0,"Normal",Character.HumanoidRootPart)
  1149. local BV = Instance.new("BodyVelocity",Character.HumanoidRootPart)BV.Velocity = Vector3.new(0,1,0)game.Debris:AddItem(BV,0.1)
  1150. BV.maxForce = Vector3.new(0,math.huge,0)
  1151. for i2 = 1,10 do
  1152. Shockwave1(Character.HumanoidRootPart.CFrame*CFrame.new(0,-2.5,0)*CFrame.Angles(0,math.rad(-5),0), i2)
  1153. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-(i2*100))),1)
  1154. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(125)),1)
  1155. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(100)),1)
  1156. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)),1)
  1157. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(120),math.rad(0)),1)
  1158. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  1159. swait()
  1160. end
  1161. attack = false
  1162. bounce=false
  1163. scfr=nil
  1164. attack = false
  1165. end
  1166.  
  1167. function Spin()
  1168. attack=true
  1169. local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  1170. so("http://www.roblox.com/asset/?id=562500427",handle,1,.9)
  1171. local BV = Instance.new("BodyVelocity",Character.HumanoidRootPart)BV.Velocity = Vector3.new(0,50,0)game.Debris:AddItem(BV,0.25)
  1172. BV.maxForce = Vector3.new(0,math.huge,0)
  1173. for i2 = 1,25 do
  1174. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(math.random(-100,100)/10),math.rad(math.random(-100,100)/10),math.rad(-(i2*50))),1)
  1175. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(125)),1)
  1176. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(100)),1)
  1177. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)),1)
  1178. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(120),math.rad(0)),1)
  1179. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  1180. MagniDamage(Character.HumanoidRootPart,10,8,16,0,"Normal",Character.HumanoidRootPart)
  1181. swait()
  1182. end
  1183. attack = false
  1184. bounce=false
  1185. scfr=nil
  1186. attack = false
  1187. end
  1188.  
  1189. function ProjectileStrike()
  1190. attack=true
  1191. for i=0,1,.25 do
  1192. swait()
  1193. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-30)),0.5)
  1194. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(30)),.5)
  1195. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.5)
  1196. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(25), math.rad(0), math.rad(-30)),0.5)
  1197. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(105),math.rad(0)),0.5)
  1198. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-75),math.rad(-10)),0.5)
  1199. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.5)
  1200. end
  1201. Wave=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Institutional white","Wave",Vector3.new(0.650000036, 8, 0.200000003)) Wave.Parent = game.Workspace
  1202. local Atch3 = Instance.new("Attachment",Wave)Atch3.Position = Vector3.new(0,4,0)
  1203. local Atch4 = Instance.new("Attachment",Wave)Atch4.Position = Vector3.new(0,-4,0)
  1204. local Trail2 = Instance.new("Trail",Wave)Trail2.Attachment0 = Atch3 Trail2.Attachment1 = Atch4
  1205. Trail2.Texture = "rbxassetid://22636887" Trail2.Lifetime = 0.05 Trail2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  1206. Trail2.Color = ColorSequence.new(ColorsArray) Trail2.LightEmission = 1
  1207. Wave.CFrame = Character.HumanoidRootPart.CFrame*CFrame.new(0,0,-1)*CFrame.Angles(0,0,math.rad(math.random(-20,20)))
  1208. local BV = Instance.new("BodyVelocity",Wave)BV.maxForce = Vector3.new(math.huge,math.huge,math.huge)BV.velocity = Character.HumanoidRootPart.CFrame.lookVector*250
  1209. so("http://www.roblox.com/asset/?id=506383970",handle,1,.9)
  1210. local con=Wave.Touched:connect(function(hit) Damagefunc(Wave,hit,24,46,0,"Normal",RootPart,.2,1) end)
  1211. for i = 0,1,0.1 do
  1212. swait()
  1213. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),0.5)
  1214. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-50)),.5)
  1215. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(math.random(-20,20)), math.rad(0), math.rad(-10)),0.5)
  1216. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)),0.5)
  1217. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(0)),0.5)
  1218. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(-10)),0.5)
  1219. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0)),.5)
  1220. end
  1221. attack=false
  1222. bounce=false
  1223. scfr=nil
  1224. con:disconnect()
  1225. end
  1226.  
  1227. function WorldBreaker()
  1228. attack=true
  1229. for i=0,1,.25 do
  1230. swait()
  1231. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-30)),0.5)
  1232. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(30)),.5)
  1233. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.5)
  1234. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(25), math.rad(0), math.rad(-30)),0.5)
  1235. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(105),math.rad(0)),0.5)
  1236. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-75),math.rad(-10)),0.5)
  1237. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.5)
  1238. end
  1239. Wave=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Institutional white","Wave",Vector3.new(6, 100, 20)) Wave.Parent = game.Workspace
  1240. local Atch3 = Instance.new("Attachment",Wave)Atch3.Position = Vector3.new(0,50,-10)
  1241. local Atch4 = Instance.new("Attachment",Wave)Atch4.Position = Vector3.new(0,-50,-10)
  1242. local Trail2 = Instance.new("Trail",Wave)Trail2.Attachment0 = Atch3 Trail2.Attachment1 = Atch4 Trail2.MinLength = 4
  1243. Trail2.Texture = "rbxassetid://22636887" Trail2.Lifetime = 5 Trail2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  1244. Trail2.Color = ColorSequence.new(ColorsArray) Trail2.LightEmission = 1
  1245. local Soond = SH:clone()Soond.SoundId = "rbxassetid://666736107" Soond.Volume = 3 Soond.Looped = true Soond.Parent = Wave Soond:Play()
  1246. Wave.CFrame = Character.HumanoidRootPart.CFrame*CFrame.Angles(0,0,math.rad(-90))*CFrame.new(0,0,-10)
  1247. game.Debris:AddItem(Wave,5)
  1248. local BV = Instance.new("BodyVelocity",Wave)BV.maxForce = Vector3.new(math.huge,math.huge,math.huge)BV.velocity = Character.HumanoidRootPart.CFrame.lookVector*25
  1249. Wave.Touched:connect(function(hit)
  1250. if hit.Anchored == false and hit.Parent ~= Character and hit.Parent.Parent ~= Character then
  1251. hit:remove()
  1252. end
  1253. end)
  1254. so("http://www.roblox.com/asset/?id=517249876",handle,1,.9)
  1255. for i = 0,1,0.1 do
  1256. swait()
  1257. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),0.5)
  1258. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-50)),.5)
  1259. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(math.random(-20,20)), math.rad(0), math.rad(-10)),0.5)
  1260. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)),0.5)
  1261. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(0)),0.5)
  1262. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(-10)),0.5)
  1263. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0)),.5)
  1264. end
  1265. attack=false
  1266. bounce=false
  1267. scfr=nil
  1268. end
  1269.  
  1270. function SuperProjectile()
  1271. attack=true
  1272. for i=0,1,.25 do
  1273. swait()
  1274. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-30)),0.5)
  1275. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(30)),.5)
  1276. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.5)
  1277. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(25), math.rad(0), math.rad(-30)),0.5)
  1278. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(105),math.rad(0)),0.5)
  1279. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-75),math.rad(-10)),0.5)
  1280. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.5)
  1281. end
  1282. for i2 = 1,3 do
  1283. for i = 1,12 do
  1284. Wave=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Institutional white","Wave",Vector3.new(0.650000036, 10, 10*i2)) Wave.Parent = game.Workspace
  1285. game.Debris:AddItem(Wave,10)
  1286. local Atch3 = Instance.new("Attachment",Wave)Atch3.Position = Vector3.new(0,10,0)
  1287. local Atch4 = Instance.new("Attachment",Wave)Atch4.Position = Vector3.new(0,-10,0)
  1288. local Trail2 = Instance.new("Trail",Wave)Trail2.Attachment0 = Atch3 Trail2.Attachment1 = Atch4 Trail2.MinLength = 4
  1289. Trail2.Texture = "rbxassetid://22636887" Trail2.Lifetime = 0.5 Trail2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  1290. Trail2.Color = ColorSequence.new(ColorsArray) Trail2.LightEmission = 1
  1291. local Soond = SH:clone()Soond.SoundId = "rbxassetid://666736107" Soond.Volume = 0.05 Soond.Looped = true Soond.Parent = Wave Soond:Play()
  1292. Wave.CFrame = Character.HumanoidRootPart.CFrame*CFrame.Angles(0,0,math.rad(30*i))
  1293. Wave.CFrame = Wave.CFrame*CFrame.new(-5*i2,0,4*i2)
  1294. local BV = Instance.new("BodyVelocity",Wave)BV.maxForce = Vector3.new(math.huge,math.huge,math.huge)BV.velocity = Character.HumanoidRootPart.CFrame.lookVector*300
  1295. Wave.Touched:connect(function(hit)
  1296. if hit.Anchored == false and hit.Parent ~= Character and hit.Parent.Parent ~= Character then
  1297. hit:remove()
  1298. end
  1299. end)
  1300. end
  1301. end
  1302. so("http://www.roblox.com/asset/?id=517249876",handle,1,.9)
  1303. for i = 0,1,0.1 do
  1304. swait()
  1305. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),0.5)
  1306. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-50)),.5)
  1307. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(math.random(-20,20)), math.rad(0), math.rad(-10)),0.5)
  1308. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)),0.5)
  1309. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(0)),0.5)
  1310. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(-10)),0.5)
  1311. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0)),.5)
  1312. end
  1313. attack=false
  1314. bounce=false
  1315. scfr=nil
  1316. end
  1317.  
  1318.  
  1319. function ShockSpin(Partz,SM)
  1320. Spawn(function()
  1321. for i = 1,math.huge do
  1322. if Partz.Transparency >= 1 then break end
  1323. Partz.Transparency = Partz.Transparency + 0.025 Partz.CFrame = Partz.CFrame* CFrame.new(0,0,0)*CFrame.Angles(0,math.rad(-50),0)
  1324. SM.Scale = SM.Scale + Vector3.new(1,0.25,1)
  1325. wait()
  1326. end
  1327. Partz:remove()
  1328. end)
  1329. end
  1330.  
  1331. function Shockwave2(Partz)
  1332. local W = 0
  1333. Spawn(function()
  1334. for i = 1,math.huge do
  1335. W = W + 1
  1336. local Shock = Instance.new("Part",game.Workspace)Shock.Transparency = 0.75 Shock.Size = Vector3.new(0.2,0.2,0.2) Shock.Anchored = true
  1337. Shock.CanCollide = false Shock.BrickColor = BrickColor.new("Medium stone grey") local SM = Instance.new("SpecialMesh",Shock)
  1338. SM.MeshId = "rbxassetid://20329976" Shock.CFrame = Partz.CFrame*CFrame.Angles(math.rad(90),math.rad(W*10),0) SM.Scale = Vector3.new(0,0,0)
  1339. ShockSpin(Shock,SM)
  1340. wait()
  1341. end
  1342. end)
  1343. end
  1344.  
  1345. function SuperProjectile2()
  1346. attack=true
  1347. for i=0,1,.25 do
  1348. swait()
  1349. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-30)),0.5)
  1350. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(30)),.5)
  1351. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.5)
  1352. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(25), math.rad(0), math.rad(-30)),0.5)
  1353. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(105),math.rad(0)),0.5)
  1354. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-75),math.rad(-10)),0.5)
  1355. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.5)
  1356. end
  1357. local Wave2 = Instance.new("Part",game.Workspace)Wave2.Size = Vector3.new(20,20,20)Wave2.CanCollide = false Wave2.Anchored = false Wave2.Transparency = 1
  1358. local Soond = SH:clone()Soond.SoundId = "rbxassetid://666736107" Soond.Volume = 0.05 Soond.Looped = true Soond.Parent = Wave2 Soond:Play() Wave2.CFrame = Character.HumanoidRootPart.CFrame
  1359. local BV = Instance.new("BodyVelocity",Wave2)BV.maxForce = Vector3.new(math.huge,math.huge,math.huge)BV.velocity = Character.HumanoidRootPart.CFrame.lookVector*150
  1360. Wave2.Touched:connect(function(hit) Damagefunc(Wave2,hit,24,46,0,"Normal",RootPart,.2,1) end)
  1361. Shockwave2(Wave2) game.Debris:addItem(Wave2,5)
  1362. so("http://www.roblox.com/asset/?id=517249876",handle,1,.9)
  1363. for i = 0,1,0.1 do
  1364. swait()
  1365. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),0.5)
  1366. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-50)),.5)
  1367. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(math.random(-20,20)), math.rad(0), math.rad(-10)),0.5)
  1368. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)),0.5)
  1369. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(0)),0.5)
  1370. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(-10)),0.5)
  1371. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0)),.5)
  1372. end
  1373. attack=false
  1374. bounce=false
  1375. scfr=nil
  1376. end
  1377.  
  1378. function Warp()
  1379. for i=0,1,.25 do
  1380. swait()
  1381. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-30)),0.5)
  1382. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(30)),.5)
  1383. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.5)
  1384. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(25), math.rad(0), math.rad(-30)),0.5)
  1385. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(105),math.rad(0)),0.5)
  1386. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-75),math.rad(-10)),0.5)
  1387. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.5)
  1388. end
  1389. local WarpS = m:clone() WarpS:FindFirstChild("MagicWeld"):remove() WarpS.Name = "WarpSword"
  1390. WarpS.Parent = Character local Partzs = Instance.new("Part",WarpS)Partzs.Size = Vector3.new(0.2,0.2,0.2)Partzs.CanCollide = false Partzs.Anchored = false Partzs.Transparency = 1
  1391. local WeldS = Instance.new("Weld",WarpS.Hitbox)WeldS.Part0 = WarpS.Hitbox WeldS.Part1 = Partzs
  1392. Partzs.CFrame = CFrame.new(Character.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,0)).p,mouse.hit.p)
  1393. local BV = Instance.new("BodyVelocity",Partzs)BV.maxForce = Vector3.new(math.huge,math.huge,math.huge)BV.velocity = Partzs.CFrame.lookVector*750
  1394. Partzs.CFrame = Partzs.CFrame*CFrame.Angles(math.rad(90),math.rad(90),0)
  1395. local Soond = SH:clone()Soond.SoundId = "rbxassetid://181004943" Soond.Volume = 10 Soond.Parent = Partzs Soond.PlaybackSpeed = 3 Soond:Play()
  1396. local SE = Instance.new("PitchShiftSoundEffect",Soond)SE.Octave = 0.5
  1397. Trail.Enabled = false
  1398. for i, v in pairs(m:children()) do
  1399. if v.ClassName == "Part" then
  1400. if v.Transparency ~= 1 then
  1401. v.Transparency = 0.99
  1402. end
  1403. end
  1404. end
  1405. for i = 0,1,0.1 do
  1406. swait()
  1407. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),0.5)
  1408. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-50)),.5)
  1409. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(math.random(-20,20)), math.rad(0), math.rad(-10)),0.5)
  1410. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)),0.5)
  1411. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(0)),0.5)
  1412. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(-10)),0.5)
  1413. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0)),.5)
  1414. end
  1415. wait(0.05)
  1416. local Soond2 = SH:clone()Soond2.SoundId = "rbxassetid://181004957" Soond2.Volume = 5 Soond2.Parent = Character.HumanoidRootPart Soond2:Play()
  1417. Character.HumanoidRootPart.CFrame = Partzs.CFrame
  1418. Humanoid.Jump = true
  1419. WarpS:remove()
  1420. Trail.Enabled = true
  1421. for i, v in pairs(m:children()) do
  1422. if v.ClassName == "Part" then
  1423. if v.Transparency ~= 1 then
  1424. v.Transparency = 0
  1425. end
  1426. end
  1427. end
  1428. end
  1429.  
  1430. function NukeShockwaves(Size, CFramez)
  1431. local Shock = Instance.new("Part",game.Workspace)Shock.Transparency = 0.5 Shock.Size = Vector3.new(0.2,0.2,0.2) Shock.Anchored = true
  1432. Shock.CanCollide = false Shock.BrickColor = BrickColor.new("Medium stone grey") local SM = Instance.new("SpecialMesh",Shock)
  1433. SM.MeshId = "rbxassetid://20329976" SM.Scale = Vector3.new(Size,5,Size) Shock.CFrame = CFramez*CFrame.new(0,1,0)*CFrame.Angles(0,math.rad(math.random(-360,360)),0)
  1434. Spawn(function()
  1435. for i = 1,math.huge do
  1436. if Shock.Transparency >= 1 then break end
  1437. Shock.Transparency = Shock.Transparency + 0.025
  1438. wait()
  1439. end
  1440. end)
  1441. end
  1442.  
  1443. function NukeBlade()
  1444. for i=0,1,.25 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.5)
  1447. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(30)),.5)
  1448. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.5)
  1449. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(25), math.rad(0), math.rad(-30)),0.5)
  1450. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(105),math.rad(0)),0.5)
  1451. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-75),math.rad(-10)),0.5)
  1452. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.5)
  1453. end
  1454. local WarpS = m:clone() WarpS:FindFirstChild("MagicWeld"):remove() WarpS.Name = "WarpSword"
  1455. WarpS.Parent = Character local Partzs = Instance.new("Part",WarpS)Partzs.Size = Vector3.new(0.2,0.2,0.2)Partzs.CanCollide = false Partzs.Anchored = false Partzs.Transparency = 1
  1456. local WeldS = Instance.new("Weld",WarpS.Hitbox)WeldS.Part0 = WarpS.Hitbox WeldS.Part1 = Partzs
  1457. Partzs.CFrame = CFrame.new(Character.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,0)).p,mouse.hit.p)
  1458. local BV = Instance.new("BodyVelocity",Partzs)BV.maxForce = Vector3.new(math.huge,math.huge,math.huge)BV.velocity = Partzs.CFrame.lookVector*750
  1459. Partzs.CFrame = Partzs.CFrame*CFrame.Angles(math.rad(90),math.rad(90),0)
  1460. local Soond = SH:clone()Soond.SoundId = "rbxassetid://181004943" Soond.Volume = 10 Soond.Parent = Partzs Soond.PlaybackSpeed = 2 Soond:Play()
  1461. local SE = Instance.new("PitchShiftSoundEffect",Soond)SE.Octave = 0.5
  1462. Trail.Enabled = false
  1463. for i, v in pairs(m:children()) do
  1464. if v.ClassName == "Part" then
  1465. if v.Transparency ~= 1 then
  1466. v.Transparency = 0.99
  1467. end
  1468. end
  1469. end
  1470. wait(0.02)
  1471. local Hit = false
  1472. Partzs.Touched:connect(function(Hit)
  1473. if Hit == true then return end
  1474. Hit = true
  1475. Partzs.Anchored = true
  1476. local Shock = Instance.new("Part",game.Workspace)Shock.Transparency = 0 Shock.Size = Vector3.new(1,1,1) Shock.Anchored = true
  1477. Shock.CanCollide = false Shock.BrickColor = BrickColor.new("Really black") Shock.Material = "Neon" local SM = Instance.new("SpecialMesh",Shock)
  1478. Shock.CFrame = CFrame.new(Partzs.Position) SM.MeshType = "Sphere"
  1479. local Pos = Shock.Position
  1480. for i = 1,3 do
  1481. local Sound = SH:clone()Sound.SoundId = "rbxassetid://258057783" Sound.Volume = 10 Sound.Parent = Shock Sound.PlaybackSpeed = 0.4 Sound:Play()
  1482. end
  1483. for i = 1,200 do
  1484. SM.Scale = SM.Scale + Vector3.new(i*0.025,i*0.025,i*0.025)
  1485. NukeShockwaves(i*1.5,CFrame.new(Shock.Position))
  1486. MagniDamage(Shock,i*1,10,30,0,"Normal",Character.HumanoidRootPart)
  1487. wait()
  1488. end
  1489. for i = 1,30 do
  1490. Shock.Transparency = Shock.Transparency + 1/30
  1491. SM.Scale = SM.Scale + Vector3.new(i*0.0,i*0.025,i*0.025)
  1492. wait()
  1493. end
  1494. end)
  1495. game.Debris:AddItem(WarpS,10)
  1496. for i = 0,1,0.1 do
  1497. swait()
  1498. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),0.5)
  1499. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-50)),.5)
  1500. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(math.random(-20,20)), math.rad(0), math.rad(-10)),0.5)
  1501. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)),0.5)
  1502. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(0)),0.5)
  1503. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(-10)),0.5)
  1504. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0)),.5)
  1505. end
  1506. wait(0.05)
  1507. Trail.Enabled = true
  1508. for i, v in pairs(m:children()) do
  1509. if v.ClassName == "Part" then
  1510. if v.Transparency ~= 1 then
  1511. v.Transparency = 0
  1512. end
  1513. end
  1514. end
  1515. end
  1516.  
  1517. attacktype=1
  1518. mouse.Button1Down:connect(function()
  1519. if attacktype==1 and attack==false then
  1520. attacktype=2
  1521. attackone()
  1522. elseif attacktype==2 and attack==false then
  1523. attacktype=3
  1524. attacktwo()
  1525. elseif attacktype==3 and attack==false then
  1526. attacktype=4
  1527. attackthree()
  1528. elseif attacktype==4 and attack==false then
  1529. attacktype=1
  1530. attackfour()
  1531. end
  1532. end)
  1533.  
  1534. mouse.KeyDown:connect(function(k)
  1535. k=k:lower()
  1536. if attack == false and k == 'e' then
  1537. Spin()
  1538. end
  1539. if attack == false and k == 'q' then
  1540. ProjectileStrike()
  1541. end
  1542. if attack == false and k == 'z' then
  1543. SuperProjectile()
  1544. end
  1545. if attack == false and k == 'x' then
  1546. SuperProjectile2()
  1547. end
  1548. if attack == false and k == 'c' then
  1549. NukeBlade()
  1550. end
  1551. if attack == false and k == 'v' then
  1552. Warp()
  1553. end
  1554. if attack == false and k == 'f'then
  1555. WorldBreaker()
  1556. end
  1557. if attack == false and k == 'r'then
  1558. PortalStorm()
  1559. end
  1560. end)
  1561.  
  1562.  
  1563. local sine = 0
  1564. local change = 1
  1565. local val = 0
  1566.  
  1567. while true do
  1568. swait()
  1569. for i, v in pairs(m:children()) do
  1570. if v.ClassName == "Part" then
  1571. v.Anchored = false
  1572. v.CanCollide = false
  1573. end
  1574. end
  1575. for i,v in pairs (Character:children()) do
  1576. if v.ClassName == "Part" then
  1577. v.Anchored = false
  1578. end
  1579. if v.ClassName == "Accessory" then
  1580. for i,v2 in pairs (v:children()) do
  1581. if v2.ClassName == "Part" then
  1582. v2.Anchored = false
  1583. end
  1584. end
  1585. end
  1586. end
  1587. sine = sine + change
  1588. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1589. local velderp=RootPart.Velocity.y
  1590. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1591. if equipped==true or equipped==false then
  1592. if attack==false then
  1593. idle=idle+1
  1594. else
  1595. idle=0
  1596. end
  1597. if idle>=500 then
  1598. if attack==false then
  1599. end
  1600. end
  1601. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1602. Anim="Jump"
  1603. if attack==false then
  1604. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1605. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1606. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(15)), 0.3)
  1607. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-15)), 0.3)
  1608. 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)
  1609. 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)
  1610. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1611. end
  1612. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1613. Anim="Fall"
  1614. if attack==false then
  1615. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1616. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(13),math.rad(0),math.rad(0)),.3)
  1617. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(20)), 0.3)
  1618. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  1619. 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)
  1620. 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)
  1621. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-15),math.rad(0),math.rad(0)),.3)
  1622. end
  1623. elseif torvel<1 and hitfloor~=nil then
  1624. Anim="Idle"
  1625. if attack==false then
  1626. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-2),math.rad(0),math.rad(15)),.3)
  1627. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(2),math.rad(0),math.rad(-15)),.3)
  1628. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(0)), 0.3)
  1629. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  1630. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-2),math.rad(85),math.rad(0)),.3)
  1631. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-4),math.rad(-95),math.rad(0)),.3)
  1632. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-10),math.rad(-2),math.rad(0)),.2)
  1633. end
  1634. elseif torvel>2 and hitfloor~=nil then
  1635. Anim="Walk"
  1636. if attack==false then
  1637. change=3
  1638. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(-20)),.3)
  1639. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(-5),math.rad(25)),.3)
  1640. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(-25), math.rad(5)), 0.3)
  1641. 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)
  1642. RH.C0=clerp(RH.C0,cf(1.1,-.9,0)*angles(math.rad(0),math.rad(110),math.rad(0)),.3)
  1643. LH.C0=clerp(LH.C0,cf(-1.1,-.9,0)*angles(math.rad(0),math.rad(-70),math.rad(0)),.3)
  1644. handleweld.C0=clerp(handleweld.C0,cf(0,0,.3)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1645. end
  1646. end
  1647. end
  1648. if #Effects>0 then
  1649. for e=1,#Effects do
  1650. if Effects[e]~=nil then
  1651. local Thing=Effects[e]
  1652. if Thing~=nil then
  1653. local Part=Thing[1]
  1654. local Mode=Thing[2]
  1655. local Delay=Thing[3]
  1656. local IncX=Thing[4]
  1657. local IncY=Thing[5]
  1658. local IncZ=Thing[6]
  1659. if Thing[1].Transparency<=1 then
  1660. if Thing[2]=="Block1" then
  1661. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1662. Mesh=Thing[1].Mesh
  1663. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1664. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1665. elseif Thing[2]=="Cylinder" then
  1666. Mesh=Thing[1].Mesh
  1667. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1668. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1669. elseif Thing[2]=="Blood" then
  1670. Mesh=Thing[7]
  1671. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  1672. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1673. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1674. elseif Thing[2]=="Elec" then
  1675. Mesh=Thing[1].Mesh
  1676. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  1677. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1678. elseif Thing[2]=="Disappear" then
  1679. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1680. end
  1681. else
  1682. Part.Parent=nil
  1683. table.remove(Effects,e)
  1684. end
  1685. end
  1686. end
  1687. end
  1688. end
  1689. end
  1690.  
  1691. --[[game:GetService("RunService").RenderStepped:connect(function()
  1692. for i,v in pairs (ShockModel:children()) do
  1693. if v.Transparency == 1 then break end
  1694. v.Transparency = v.Transparency + 0.05 v.CFrame = CFrame.new(0,math.rad(2),0)
  1695. local SM = v:findFirstChild("Mesh")
  1696. SM.Scale = SM.Scale + Vector3.new(1,0,1)
  1697. end
  1698. end)]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement