Advertisement
HenloMyDude

lustris gay fixed

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