Advertisement
AxeuerAlt

Untitled

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