Advertisement
Void_scripter0

sword

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