Advertisement
PasterXIV

Untitled

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