Advertisement
kilcrafter

Shadow Blade Edit

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