Advertisement
-----------------

Lustris V2

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