Advertisement
Goo345

Untitled

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