Advertisement
WagnerJunio07

Little

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