daily pastebin goal
68%
SHARE
TWEET

Sword

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