Advertisement
uor

Untitled

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