Advertisement
gecksad

Untitled

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