Advertisement
ItzInfern

dark sword

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