Advertisement
NoHackJustStevePlayz

Untitled

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