Advertisement
DaOMEGAa32

blue sword fe

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