Advertisement
Guest User

Untitled

a guest
Aug 21st, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 57.89 KB | None | 0 0
  1. wait(1/60)
  2.  
  3. local p = game.Players.LocalPlayer
  4. local char = p.Character
  5. local mouse = p:GetMouse()
  6. local larm = char["Left Arm"]
  7. local rarm = char["Right Arm"]
  8. local lleg = char["Left Leg"]
  9. local rleg = char["Right Leg"]
  10. local hed = char.Head
  11. local torso = char.Torso
  12. local hum = char.Humanoid
  13. local cam = game.Workspace.CurrentCamera
  14. local root = char.HumanoidRootPart
  15. local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  16. local vt=Vector3.new
  17. local deb = false
  18. local CanAttack = true
  19. local shot = 0
  20. local animpose = "Idle"
  21. local lastanimpose = "Idle"
  22. local stanceToggle = "Normal"
  23. local l = game:GetService("Lighting")
  24. local rs = game:GetService("RunService").RenderStepped
  25.  
  26. local lastanimpose = "Idle"
  27. local stanceToggle = "Normal"
  28.  
  29. ----------------------------------------------------
  30. function Lerp(c1,c2,al)
  31. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  32. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  33. for i,v in pairs(com1) do
  34. com1[i] = v+(com2[i]-v)*al
  35. end
  36. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  37. end
  38.  
  39.  
  40. Player = game.Players.LocalPlayer
  41. Character = Player.Character
  42. PlayerGui = Player.PlayerGui
  43. Backpack = Player.Backpack
  44. Torso = Character.Torso
  45. Head = Character.Head
  46. Humanoid = Character.Humanoid
  47. LeftArm = Character["Left Arm"]
  48. LeftLeg = Character["Left Leg"]
  49. RightArm = Character["Right Arm"]
  50. RightLeg = Character["Right Leg"]
  51. Character = Player.Character
  52. PlayerGui = Player.PlayerGui
  53. Backpack = Player.Backpack
  54. Torso = Character.Torso
  55. Head = Character.Head
  56. Humanoid = Character.Humanoid
  57. LeftArm = Character["Left Arm"]
  58. LeftLeg = Character["Left Leg"]
  59. RightArm = Character["Right Arm"]
  60. RightLeg = Character["Right Leg"]
  61. LS = Torso["Left Shoulder"]
  62. LH = Torso["Left Hip"]
  63. RS = Torso["Right Shoulder"]
  64. RH = Torso["Right Hip"]
  65. Neck = Torso.Neck
  66. attacktype = 1
  67. vt = Vector3.new
  68. cf = CFrame.new
  69. euler = CFrame.fromEulerAnglesXYZ
  70. angles = CFrame.Angles
  71. necko = cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  72. necko2 = cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  73. LHC0 = cf(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  74. LHC1 = cf(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  75. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  76. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  77. RootPart = Character.HumanoidRootPart
  78. RootJoint = RootPart.RootJoint
  79. RootCF = euler(-1.57, 0, 3.14)
  80. attack = false
  81. equipped = true
  82. local Anim = "Idle"
  83. local Effects = {}
  84. cam = workspace.CurrentCamera
  85. ZTarget = nil
  86. RocketTarget = nil
  87. local RbxUtility = LoadLibrary("RbxUtility")
  88. local Create = RbxUtility.Create
  89. local m = Create("Model"){
  90. Parent = Character,
  91. Name = "WeaponModel",
  92. }
  93. mouse = Player:GetMouse()
  94.  
  95. ----------------------------------------------------
  96. cn,ca,bc,v3,r = CFrame.new,CFrame.Angles,BrickColor.new,Vector3.new,function(a)return (math.random()-.5)*2*(a or 1) end
  97. deg,nf,c3,ins,ma,pi,mr = math.deg,math.floor,Color3.new,Instance.new,math.abs,math.pi,math.rad
  98. local part = function(prnt,cfr,siz,col,anc,canc,tra,mat,typ)
  99. local p = ins(typ or "Part")
  100. p.FormFactor = "Custom"
  101. p.Material = mat
  102. p.Transparency = tra
  103. p.CanCollide = canc
  104. p.Anchored = anc
  105. p.BrickColor = bc(col)
  106. p.Size = siz
  107. p.CFrame = cfr
  108. p.Parent = prnt
  109. p.Locked = true
  110. p.TopSurface,p.BottomSurface = 0,0
  111. p:BreakJoints()
  112. return p
  113. end
  114. local mesh = function(typ,prnt,scal,mtyp,mid,mtx)
  115. local m = ins(typ or "SpecialMesh")
  116. if mtyp then m.MeshType = mtyp end
  117. if mid then m.MeshId = mid end
  118. if mtx then m.TextureId = mtx end
  119. if scal then m.Scale = scal end
  120. m.Parent = prnt
  121. return m
  122. end
  123. function cylinderOpen(cf,col,col2)
  124. local p = part(Character,cf,v3(0,1000,0),col,true,false,.1,"Neon")
  125. local pm = mesh("CylinderMesh",p)
  126. local p2 = part(Character,cf,v3(0,1000,0),col2,true,false,.1,"Neon")
  127. local p2m = mesh("CylinderMesh",p2)
  128. Spawn(function()
  129. for i=.1,1.1,.0125 do
  130. p.Transparency = i
  131. p2.Transparency = i
  132. pm.Scale = pm.Scale + v3(.8,0,.8)
  133. p2m.Scale = p2m.Scale + v3(.5,0,.5)
  134. wait()
  135. end
  136. p:Destroy()
  137. p2:Destroy()
  138. end)
  139. end
  140.  
  141. function expandDong()
  142. local nTarg = Torso
  143. local Orbi = Instance.new('Part')
  144. Orbi.Size = Vector3.new(3,3,3)
  145. Orbi.CanCollide = false
  146. Orbi.Locked = true
  147. Orbi.Shape = 'Ball'
  148. Orbi.Anchored = true
  149. Orbi.Transparency = .6
  150. Orbi.TopSurface,Orbi.BottomSurface = 0,0
  151. Orbi.Name = 'Expand Dong'
  152. Orbi.BrickColor = BrickColor.new('Hot pink')
  153.  
  154. local OrbiMesh = Instance.new('SpecialMesh',Orbi)
  155. OrbiMesh.Name = 'Dxpand Eong'
  156. OrbiMesh.Scale = Vector3.new(2, 2, 2)
  157. OrbiMesh.MeshType = 'Sphere'
  158. Orbi.Parent = Character
  159. ypcall(function()
  160. for i = 3,.35,-1 do
  161. OrbiMesh.Scale = OrbiMesh.Scale + Vector3.new(.7, .7, .7)
  162. Orbi.CFrame = nTarg.CFrame
  163. end
  164. for i = .6,1,.05 do
  165. wait(0.04)
  166. Orbi.Transparency = i
  167. end
  168. Orbi:Destroy()
  169. end)
  170. end
  171.  
  172.  
  173. function expandDong2()
  174. local nTarg = Torso
  175. local Orbi = Instance.new('Part')
  176. Orbi.Size = Vector3.new(3,3,3)
  177. Orbi.CanCollide = false
  178. Orbi.Locked = true
  179. Orbi.Shape = 'Ball'
  180. Orbi.Anchored = true
  181. Orbi.Transparency = .6
  182. Orbi.TopSurface,Orbi.BottomSurface = 0,0
  183. Orbi.Name = 'Expand Dong'
  184. Orbi.BrickColor = BrickColor.new('Hot pink')
  185.  
  186. local OrbiMesh = Instance.new('SpecialMesh',Orbi)
  187. OrbiMesh.Name = 'Dxpand Eong'
  188. OrbiMesh.Scale = Vector3.new(2.5, 2.5, 2.5)
  189. OrbiMesh.MeshType = 'Sphere'
  190. Orbi.Parent = Character
  191. ypcall(function()
  192. for i = 3,0,-1 do
  193. OrbiMesh.Scale = OrbiMesh.Scale + Vector3.new(.7, .7, .7)
  194. Orbi.CFrame = nTarg.CFrame
  195. end
  196. for i = .6,1,.05 do
  197. wait(0.04)
  198. Orbi.Transparency = i
  199. end
  200. Orbi:Destroy()
  201. end)
  202. end
  203. cylinderOpen(Torso.CFrame,"Hot pink","Hot pink")
  204. expandDong2()
  205. expandDong()
  206.  
  207.  
  208. localplayer = game.Players.LocalPlayer
  209. localplayer.Character.Humanoid.MaxHealth = math.huge
  210. localplayer.Character.Humanoid.Health = math.huge
  211.  
  212. local cc = Instance.new("ColorCorrectionEffect",game.Lighting)
  213. p = game:GetService("Players").LocalPlayer
  214. z = Instance.new("Sound",cc)
  215. z.Name = "song"
  216. z.SoundId = "rbxassetid://406383180" -- Put Music ID Here.
  217. z.Looped = true
  218. z.Volume = 1000000000
  219. z:Play()
  220. cc.TintColor = Color3.new(223/255,0/255,255/255)
  221.  
  222. local plr = game.Players.LocalPlayer
  223.  
  224. local function Chat(plr,msg)
  225. if msg:sub(1,8):lower()=='ccremove' then
  226. game.Lighting.ColorCorrection:Remove()
  227. end
  228. end
  229.  
  230. local p = game.Players.LocalPlayer
  231. p.Chatted:connect(function(m)
  232. Chat(p,m)
  233. end)
  234.  
  235.  
  236.  
  237.  
  238. Player=game:GetService("Players").LocalPlayer
  239. Character=Player.Character
  240. PlayerGui=Player.PlayerGui
  241. Backpack=Player.Backpack
  242. Torso=Character.Torso
  243. Head=Character.Head
  244. Humanoid=Character.Humanoid
  245. m=Instance.new('Model',Character)
  246. LeftArm=Character["Left Arm"]
  247. LeftLeg=Character["Left Leg"]
  248. RightArm=Character["Right Arm"]
  249. RightLeg=Character["Right Leg"]
  250. LS=Torso["Left Shoulder"]
  251. LH=Torso["Left Hip"]
  252. RS=Torso["Right Shoulder"]
  253. RH=Torso["Right Hip"]
  254. Face = Head.face
  255. Neck=Torso.Neck
  256. it=Instance.new
  257. attacktype=1
  258. vt=Vector3.new
  259. cf=CFrame.new
  260. euler=CFrame.fromEulerAnglesXYZ
  261. angles=CFrame.Angles
  262. cloaked=false
  263. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  264. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  265. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  266. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  267. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  268. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  269. RootPart=Character.HumanoidRootPart
  270. RootJoint=RootPart.RootJoint
  271. RootCF=euler(-1.57,0,3.14)
  272. attack = false
  273. attackdebounce = false
  274. deb=false
  275. equipped=true
  276. hand=false
  277. MMouse=nil
  278. combo=0
  279. mana=0
  280. trispeed=.2
  281. attackmode='none'
  282. local idle=0
  283. local Anim="Idle"
  284. local Effects={}
  285. local gun=false
  286. local shoot=false
  287. player=nil
  288. mana=0
  289. local CurrentMode = "Unsheathed"
  290.  
  291. mouse=Player:GetMouse()
  292. --save shoulders
  293. RSH, LSH=nil, nil
  294. --welds
  295. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  296. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  297. LH=Torso["Left Hip"]
  298. RH=Torso["Right Hip"]
  299. TorsoColor=Torso.BrickColor
  300. function NoOutline(Part)
  301. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  302. end
  303. player=Player
  304. ch=Character
  305. RSH=ch.Torso["Right Shoulder"]
  306. LSH=ch.Torso["Left Shoulder"]
  307. --
  308. RSH.Parent=nil
  309. LSH.Parent=nil
  310. --
  311. RW.Name="Right Shoulder"
  312. RW.Part0=ch.Torso
  313. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  314. RW.C1=cf(0, 0.5, 0)
  315. RW.Part1=ch["Right Arm"]
  316. RW.Parent=ch.Torso
  317. --
  318. LW.Name="Left Shoulder"
  319. LW.Part0=ch.Torso
  320. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  321. LW.C1=cf(0, 0.5, 0)
  322. LW.Part1=ch["Left Arm"]
  323. LW.Parent=ch.Torso
  324.  
  325. local function weldBetween(a, b)
  326. local weldd = Instance.new("ManualWeld")
  327. weldd.Part0 = a
  328. weldd.Part1 = b
  329. weldd.C0 = CFrame.new()
  330. weldd.C1 = b.CFrame:inverse() * a.CFrame
  331. weldd.Parent = a
  332. return weldd
  333. end
  334.  
  335. function nooutline(part)
  336. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  337. end
  338.  
  339. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  340. local fp=it("Part")
  341. fp.formFactor=formfactor
  342. fp.Parent=parent
  343. fp.Reflectance=reflectance
  344. fp.Transparency=transparency
  345. fp.CanCollide=false
  346. fp.Locked=true
  347. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  348. fp.Name=name
  349. fp.Size=size
  350. fp.Position=Character.Torso.Position
  351. nooutline(fp)
  352. fp.Material=material
  353. fp:BreakJoints()
  354. return fp
  355. end
  356.  
  357. function swait(num)
  358. if num==0 or num==nil then
  359. game:service'RunService'.Heartbeat:wait(0)
  360. else
  361. for i=0,num do
  362. game:service'RunService'.Heartbeat:wait(0)
  363. end
  364. end
  365. end
  366.  
  367. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  368. local mesh=it(Mesh)
  369. mesh.Parent=part
  370. if Mesh=="SpecialMesh" then
  371. mesh.MeshType=meshtype
  372. mesh.MeshId=meshid
  373. end
  374. mesh.Offset=offset
  375. mesh.Scale=scale
  376. return mesh
  377. end
  378.  
  379. function weld(parent,part0,part1,c0,c1)
  380. local weld=it("Weld")
  381. weld.Parent=parent
  382. weld.Part0=part0
  383. weld.Part1=part1
  384. weld.C0=c0
  385. weld.C1=c1
  386. return weld
  387. end
  388.  
  389.  
  390. local function CFrameFromTopBack(at, top, back)
  391. local right = top:Cross(back)
  392. return CFrame.new(at.x, at.y, at.z,
  393. right.x, top.x, back.x,
  394. right.y, top.y, back.y,
  395. right.z, top.z, back.z)
  396. end
  397.  
  398. function Triangle(a, b, c)
  399. local edg1 = (c-a):Dot((b-a).unit)
  400. local edg2 = (a-b):Dot((c-b).unit)
  401. local edg3 = (b-c):Dot((a-c).unit)
  402. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  403. a, b, c = a, b, c
  404. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  405. a, b, c = b, c, a
  406. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  407. a, b, c = c, a, b
  408. else
  409. assert(false, "unreachable")
  410. end
  411.  
  412. local len1 = (c-a):Dot((b-a).unit)
  413. local len2 = (b-a).magnitude - len1
  414. local width = (a + (b-a).unit*len1 - c).magnitude
  415.  
  416. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  417.  
  418. local list = {}
  419.  
  420. if len1 > 0.01 then
  421. local w1 = Instance.new('WedgePart', m)
  422. game:GetService("Debris"):AddItem(w1,5)
  423. w1.Material = "SmoothPlastic"
  424. w1.FormFactor = 'Custom'
  425. w1.BrickColor = BrickColor.new("Hot pink")
  426. w1.Transparency = 0
  427. w1.Reflectance = 0
  428. w1.Material = "Neon"
  429. w1.CanCollide = false
  430. NoOutline(w1)
  431. local sz = Vector3.new(0.2, width, len1)
  432. w1.Size = sz
  433. local sp = Instance.new("SpecialMesh",w1)
  434. sp.MeshType = "Wedge"
  435. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  436. w1:BreakJoints()
  437. w1.Anchored = true
  438. w1.Parent = workspace
  439. w1.Transparency = 0.3
  440. table.insert(Effects,{w1,"Disappear",.03})
  441. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  442. table.insert(list,w1)
  443. end
  444. if len2 > 0.01 then
  445. local w2 = Instance.new('WedgePart', m)
  446. game:GetService("Debris"):AddItem(w2,5)
  447. w2.Material = "SmoothPlastic"
  448. w2.FormFactor = 'Custom'
  449. w2.BrickColor = BrickColor.new("Hot pink")
  450. w2.Transparency = 0.6
  451. w2.Reflectance = 1
  452. w2.Material = "Neon"
  453. w2.CanCollide = false
  454. NoOutline(w2)
  455. local sz = Vector3.new(0.2, width, len2)
  456. w2.Size = sz
  457. local sp = Instance.new("SpecialMesh",w2)
  458. sp.MeshType = "Wedge"
  459. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  460. w2:BreakJoints()
  461. w2.Anchored = true
  462. w2.Parent = workspace
  463. w2.Transparency = 0.3
  464. table.insert(Effects,{w2,"Disappear",.03})
  465. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  466. table.insert(list,w2)
  467. end
  468. return unpack(list)
  469. end
  470.  
  471.  
  472. so = function(id,par,vol,pit)
  473. coroutine.resume(coroutine.create(function()
  474. local sou = Instance.new("Sound",par or workspace)
  475. sou.Volume=vol
  476. sou.Pitch=pit or 1
  477. sou.SoundId=id
  478. swait()
  479. sou:play()
  480. game:GetService("Debris"):AddItem(sou,6)
  481. end))
  482. end
  483.  
  484. function clerp(a,b,t)
  485. local qa = {QuaternionFromCFrame(a)}
  486. local qb = {QuaternionFromCFrame(b)}
  487. local ax, ay, az = a.x, a.y, a.z
  488. local bx, by, bz = b.x, b.y, b.z
  489. local _t = 1-t
  490. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  491. end
  492.  
  493. function QuaternionFromCFrame(cf)
  494. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  495. local trace = m00 + m11 + m22
  496. if trace > 0 then
  497. local s = math.sqrt(1 + trace)
  498. local recip = 0.5/s
  499. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  500. else
  501. local i = 0
  502. if m11 > m00 then
  503. i = 1
  504. end
  505. if m22 > (i == 0 and m00 or m11) then
  506. i = 2
  507. end
  508. if i == 0 then
  509. local s = math.sqrt(m00-m11-m22+1)
  510. local recip = 0.5/s
  511. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  512. elseif i == 1 then
  513. local s = math.sqrt(m11-m22-m00+1)
  514. local recip = 0.5/s
  515. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  516. elseif i == 2 then
  517. local s = math.sqrt(m22-m00-m11+1)
  518. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  519. end
  520. end
  521. end
  522.  
  523. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  524. local xs, ys, zs = x + x, y + y, z + z
  525. local wx, wy, wz = w*xs, w*ys, w*zs
  526. local xx = x*xs
  527. local xy = x*ys
  528. local xz = x*zs
  529. local yy = y*ys
  530. local yz = y*zs
  531. local zz = z*zs
  532. 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))
  533. end
  534.  
  535. function QuaternionSlerp(a, b, t)
  536. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  537. local startInterp, finishInterp;
  538. if cosTheta >= 0.0001 then
  539. if (1 - cosTheta) > 0.0001 then
  540. local theta = math.acos(cosTheta)
  541. local invSinTheta = 1/math.sin(theta)
  542. startInterp = math.sin((1-t)*theta)*invSinTheta
  543. finishInterp = math.sin(t*theta)*invSinTheta
  544. else
  545. startInterp = 1-t
  546. finishInterp = t
  547. end
  548. else
  549. if (1+cosTheta) > 0.0001 then
  550. local theta = math.acos(-cosTheta)
  551. local invSinTheta = 1/math.sin(theta)
  552. startInterp = math.sin((t-1)*theta)*invSinTheta
  553. finishInterp = math.sin(t*theta)*invSinTheta
  554. else
  555. startInterp = t-1
  556. finishInterp = t
  557. end
  558. end
  559. 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
  560. end
  561.  
  562. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  563. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  564. end
  565.  
  566. Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  567. if hit.Parent==nil then
  568. return
  569. end
  570. local h=hit.Parent:FindFirstChild("Humanoid")
  571. for _,v in pairs(hit.Parent:children()) do
  572. if v:IsA("Humanoid") then
  573. h=v
  574. end
  575. end
  576. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  577. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  578. end
  579. if hit.Parent.className=="Hat" then
  580. hit=hit.Parent.Parent:findFirstChild("Head")
  581. end
  582. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  583. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  584. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  585. return
  586. end]]
  587. -- hs(hit,1.2)
  588. local c=Instance.new("ObjectValue")
  589. c.Name="creator"
  590. c.Value=game:service("Players").LocalPlayer
  591. c.Parent=h
  592. game:GetService("Debris"):AddItem(c,.5)
  593. local Damage=math.random(minim,maxim)
  594. -- h:TakeDamage(Damage)
  595. local blocked=false
  596. local block=hit.Parent:findFirstChild("Block")
  597. if block~=nil then
  598. print(block.className)
  599. if block.className=="NumberValue" then
  600. if block.Value>0 then
  601. blocked=true
  602. if decreaseblock==nil then
  603. block.Value=block.Value-1
  604. end
  605. end
  606. end
  607. if block.className=="IntValue" then
  608. if block.Value>0 then
  609. blocked=true
  610. if decreaseblock~=nil then
  611. block.Value=block.Value-1
  612. end
  613. end
  614. end
  615. end
  616. if blocked==false then
  617. -- h:TakeDamage(Damage)
  618. h.Health=h.Health-Damage
  619. else
  620. h.Health=h.Health-(Damage/2)
  621. end
  622. if Type=="Knockdown" then
  623. local hum=hit.Parent.Humanoid
  624. hum.PlatformStand=true
  625. coroutine.resume(coroutine.create(function(HHumanoid)
  626. swait(1)
  627. HHumanoid.PlatformStand=false
  628. end),hum)
  629. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  630. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  631. local bodvol=Instance.new("BodyVelocity")
  632. bodvol.velocity=angle*knockback
  633. bodvol.P=5000
  634. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  635. bodvol.Parent=hit
  636. local rl=Instance.new("BodyAngularVelocity")
  637. rl.P=3000
  638. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  639. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  640. rl.Parent=hit
  641. game:GetService("Debris"):AddItem(bodvol,.5)
  642. game:GetService("Debris"):AddItem(rl,.5)
  643. elseif Type=="Normal" then
  644. local vp=Instance.new("BodyVelocity")
  645. vp.P=500
  646. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  647. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  648. if KnockbackType==1 then
  649. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  650. elseif KnockbackType==2 then
  651. vp.velocity=Property.CFrame.lookVector*knockback
  652. end
  653. if knockback>0 then
  654. vp.Parent=hit.Parent.Torso
  655. end
  656. game:GetService("Debris"):AddItem(vp,.5)
  657. elseif Type=="Up" then
  658. local bodyVelocity=Instance.new("BodyVelocity")
  659. bodyVelocity.velocity=vt(0,60,0)
  660. bodyVelocity.P=5000
  661. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  662. bodyVelocity.Parent=hit
  663. game:GetService("Debris"):AddItem(bodyVelocity,1)
  664. local rl=Instance.new("BodyAngularVelocity")
  665. rl.P=3000
  666. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  667. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  668. rl.Parent=hit
  669. game:GetService("Debris"):AddItem(rl,.5)
  670. elseif Type=="Snare" then
  671. local bp=Instance.new("BodyPosition")
  672. bp.P=2000
  673. bp.D=100
  674. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  675. bp.position=hit.Parent.Torso.Position
  676. bp.Parent=hit.Parent.Torso
  677. game:GetService("Debris"):AddItem(bp,1)
  678. elseif Type=="Target" then
  679. local Targetting = false
  680. if Targetting==false then
  681. ZTarget=hit.Parent.Torso
  682. coroutine.resume(coroutine.create(function(Part)
  683. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  684. swait(5)
  685. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  686. end),ZTarget)
  687. local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  688. local targetgui=Instance.new("BillboardGui")
  689. targetgui.Parent=ZTarget
  690. targetgui.Size=UDim2.new(10,100,10,100)
  691. local targ=Instance.new("ImageLabel")
  692. targ.Parent=targetgui
  693. targ.BackgroundTransparency=1
  694. targ.Image="rbxassetid://4834067"
  695. targ.Size=UDim2.new(1,0,1,0)
  696. cam.CameraType="Scriptable"
  697. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  698. local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  699. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  700. Targetting=true
  701. RocketTarget=ZTarget
  702. for i=1,Property do
  703. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  704. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  705. swait()
  706. end
  707. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  708. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  709. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  710. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  711. end
  712. Targetting=false
  713. RocketTarget=nil
  714. targetgui.Parent=nil
  715. cam.CameraType="Custom"
  716. end
  717. end
  718. local debounce=Instance.new("BoolValue")
  719. debounce.Name="DebounceHit"
  720. debounce.Parent=hit.Parent
  721. debounce.Value=true
  722. game:GetService("Debris"):AddItem(debounce,Delay)
  723. c=Instance.new("ObjectValue")
  724. c.Name="creator"
  725. c.Value=Player
  726. c.Parent=h
  727. game:GetService("Debris"):AddItem(c,.5)
  728. end
  729. end
  730.  
  731. handle=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Hot pink","Handle",Vector3.new(0.34799999, 1.85999942, 0.34799999))
  732. handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0957183838, 0.289899826, 1.02796435, 0.999997258, -4.47034765e-008, -4.76837329e-007, 4.76837158e-007, -4.47016042e-008, -1.00000381, 5.96046448e-008, 0.999994218, -4.47017996e-008))
  733. mesh("CylinderMesh",handle,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  734. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Hot pink","Part",Vector3.new(3.6771996, 0.348000109, 0.620599985))
  735. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0752487183, -3.95978737, -0.00869596004, 0.999994516, 9.53674999e-007, 1.4901282e-008, 9.53674999e-007, 1.00000763, 6.53699317e-013, 1.4901282e-008, 6.50146603e-013, 0.999988437))
  736. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Hot pink","Part",Vector3.new(0.34799999, 4.75599957, 0.620599985))
  737. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000137329102, -3.495821, -0.00869381428, 0.999994516, 9.53674999e-007, 1.4901282e-008, 9.53674999e-007, 1.00000763, 6.53699317e-013, 1.4901282e-008, 6.50146603e-013, 0.999988437))
  738. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Hot pink","Part",Vector3.new(3.94400001, 0.579999983, 0.579999983))
  739. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0578308105, -3.95979309, 1.54972076e-005, 0.999994516, 9.53674999e-007, 1.4901282e-008, 9.53674999e-007, 1.00000763, 6.53699317e-013, 1.4901282e-008, 6.50146603e-013, 0.999988437))
  740. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Hot pink","Part",Vector3.new(0.579999983, 5.10399961, 0.579999983))
  741. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000137329102, -3.43782616, 9.41753387e-006, 0.999994516, 9.53674999e-007, 1.4901282e-008, 9.53674999e-007, 1.00000763, 6.53699317e-013, 1.4901282e-008, 6.50146603e-013, 0.999988437))
  742. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Hot pink","Part",Vector3.new(0.811999977, 0.69599992, 0.812000036))
  743. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(6.86645508e-005, 1.89788628, 9.65595245e-006, 0.999994516, 9.53674999e-007, 1.4901282e-008, 9.53674999e-007, 1.00000763, 6.53699317e-013, 1.4901282e-008, 6.50146603e-013, 0.999988437))
  744. mesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  745. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Hot pink","Part",Vector3.new(0.579999983, 0.811999559, 0.579999983))
  746. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(5.34057617e-005, 1.25990677, 1.13248825e-005, 0.999994516, 9.53674999e-007, 1.4901282e-008, 9.53674999e-007, 1.00000763, 6.53699317e-013, 1.4901282e-008, 6.50146603e-013, 0.999988437))
  747. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  748. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Hot pink","Part",Vector3.new(0.811999977, 0.34799999, 0.812000036))
  749. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(5.7220459e-005, 1.60789871, 1.40666962e-005, 0.999994516, 9.53674999e-007, 1.4901282e-008, 9.53674999e-007, 1.00000763, 6.53699317e-013, 1.4901282e-008, 6.50146603e-013, 0.999988437))
  750. mesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  751. Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,1,"Hot pink","Hitbox",Vector3.new(1.04400003, 6.35600042, 0.600000024))
  752. Hitboxweld=weld(m,handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000308990479, -5.48094559, -2.00271606e-005, 1, 6.10120843e-011, -1.08637464e-014, -6.10120843e-011, 1, 7.57154339e-011, 1.08637574e-014, -7.57154339e-011, 1))
  753. mesh("BlockMesh",Hitbox,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.579999983))
  754.  
  755.  
  756. local Lite = it("PointLight",Torso)
  757. Lite.Color = Color3.new(23, 236, 20)
  758. Lite.Range = 8
  759. Lite.Brightness = 10
  760. Lite.Shadows = true
  761.  
  762. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  763. local prt=part("Custom",workspace,"Neon",0,0,"Hot pink","Effect",vt(0.5,0.5,0.5))
  764. prt.Anchored=true
  765. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  766. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  767. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  768. CF=Part.CFrame
  769. Numbb=0
  770. randnumb=math.random()-math.random()
  771. for i=0,1,0.05 do
  772. wait()
  773. CF=CF*cf(0,1,0)
  774. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  775. Part.CFrame=CF*euler(Numbb,0,0)
  776. Part.Transparency=i
  777. Numbb=Numbb+randnumb
  778. end
  779. Part.Parent=nil
  780. end),prt)
  781. end
  782. --BreakEffect(BrickColor.new("New Yeller"),Hitbox.CFrame,0.5,math.random(5,20),0.5)
  783.  
  784. function attackone()
  785. attack=true
  786. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,999999998,999999999,math.random(3,999999999),"Normal",RootPart,.2,1) end)
  787. for i=0,1,0.1 do
  788. swait()
  789. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(120),math.rad(0),math.rad(20)),.3)
  790. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(-20),math.rad(-90)),.3)
  791. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(-5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  792. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(120),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  793. handleweld.C0=clerp(handleweld.C0,cf(0,-0,.4)*angles(math.rad(70),math.rad(-10),math.rad(0)),.3)
  794. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
  795. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(50)),.3)
  796. end
  797. so("http://www.roblox.com/asset/?id=154965962",Hitbox,1,1)
  798. so("http://www.roblox.com/asset/?id=231917758",Hitbox,1,1)
  799. hitconasdf = Hitbox.Touched:connect(function(hit)
  800. local hum12 = hit.Parent:FindFirstChild("Humanoid")
  801. if hum12 and not hum12:IsDescendantOf(Character) then
  802. so('http://roblox.com/asset/?id=154965973',Hitbox,1,1)
  803. for i = 1,10 do
  804. BreakEffect(BrickColor.new("Hot pink"),hit.Parent.Torso.CFrame,0.5,math.random(5,20),0.5)
  805. end
  806. hitconasdf:disconnect()
  807. end
  808. end)
  809. for i=0,1,0.1 do
  810. swait()
  811. local blcf = Hitbox.CFrame*CFrame.new(0,.3,0)
  812. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  813. local h = 5
  814. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  815. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  816. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  817. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  818. scfr = blcf
  819. elseif not scfr then
  820. scfr = blcf
  821. end
  822. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(110),math.rad(-90),math.rad(20)),.3)
  823. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(-20),math.rad(-50)),.3)
  824. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-120),math.rad(5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  825. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  826. handleweld.C0=clerp(handleweld.C0,cf(0,-0,0)*angles(math.rad(-60),math.rad(-10),math.rad(0)),.3)
  827. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  828. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(-50)),.3)
  829. end
  830. attack=false
  831. con:disconnect()
  832. scfr = nil
  833. pcall(function()
  834. hitconasdf:disconnect()
  835. end)
  836. end
  837.  
  838. function attacktwo()
  839. attack=true
  840. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,999999998,999999999,math.random(3,999999999),"Normal",RootPart,.2,1) end)
  841. for i=0,1,0.1 do
  842. swait()
  843. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(90),math.rad(90)),.3)
  844. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(-20),math.rad(-50)),.3)
  845. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-130),math.rad(5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  846. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  847. handleweld.C0=clerp(handleweld.C0,cf(0,-0,0)*angles(math.rad(-30),math.rad(-10),math.rad(0)),.3)
  848. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(70)),.3)
  849. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(-50)),.3)
  850. end
  851. so("http://www.roblox.com/asset/?id=154965962",Hitbox,1,.9)
  852. so("http://www.roblox.com/asset/?id=231917758",Hitbox,1,.9)
  853. hitconasdf = Hitbox.Touched:connect(function(hit)
  854. local hum12 = hit.Parent:FindFirstChild("Humanoid")
  855. if hum12 and not hum12:IsDescendantOf(Character) then
  856. so('http://roblox.com/asset/?id=154965973',Hitbox,1,1)
  857. for i = 1,10 do
  858. BreakEffect(BrickColor.new("Hot pink"),hit.Parent.Torso.CFrame,0.5,math.random(5,20),0.5)
  859. end
  860. hitconasdf:disconnect()
  861. end
  862. end)
  863. for i=0,1,0.1 do
  864. swait()
  865. local blcf = Hitbox.CFrame*CFrame.new(0,.3,0)
  866. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  867. local h = 5
  868. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  869. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  870. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  871. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  872. scfr = blcf
  873. elseif not scfr then
  874. scfr = blcf
  875. end
  876. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(-50),math.rad(90)),.3)
  877. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(-20),math.rad(-90)),.3)
  878. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(-5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  879. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(130),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  880. handleweld.C0=clerp(handleweld.C0,cf(0,-0,0)*angles(math.rad(-50),math.rad(10),math.rad(0)),.3)
  881. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
  882. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(50)),.3)
  883. end
  884. attack=false
  885. con:disconnect()
  886. scfr = nil
  887. pcall(function()
  888. hitconasdf:disconnect()
  889. end)
  890. end
  891.  
  892. function Stab()
  893. attack=true
  894. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,999999998,999999999,math.random(3,999999999),"Normal",RootPart,.2,1) end)
  895. for i=0,1,0.1 do
  896. swait()
  897. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
  898. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(60)),.3)
  899. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(20),math.rad(90)),.3)
  900. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-20),math.rad(-90)),.3)
  901. LH.C0=clerp(LH.C0,cf(-1,-.9,0)*angles(math.rad(0),math.rad(-60),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  902. RH.C0=clerp(RH.C0,cf(1,-.9,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  903. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  904. end
  905. hitconasdf = Hitbox.Touched:connect(function(hit)
  906. local hum12 = hit.Parent:FindFirstChild("Humanoid")
  907. if hum12 and not hum12:IsDescendantOf(Character) then
  908. so('http://roblox.com/asset/?id=154965973',Hitbox,1,1)
  909. for i = 1,10 do
  910. BreakEffect(BrickColor.new("Hot pink"),hit.Parent.Torso.CFrame,0.5,math.random(5,20),0.5)
  911. end
  912. hitconasdf:disconnect()
  913. end
  914. end)
  915. so("http://www.roblox.com/asset/?id=154965962",Hitbox,1,.9)
  916. so("http://www.roblox.com/asset/?id=231917758",Hitbox,1,.9)
  917. for i=0,1,0.1 do
  918. swait()
  919. local blcf = Hitbox.CFrame*CFrame.new(0,.3,0)
  920. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  921. local h = 5
  922. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  923. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  924. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  925. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  926. scfr = blcf
  927. elseif not scfr then
  928. scfr = blcf
  929. end
  930. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.4)
  931. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-80)),.4)
  932. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.4)
  933. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-20),math.rad(-30)),.4)
  934. LH.C0=clerp(LH.C0,cf(-1,-.9,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.4)
  935. RH.C0=clerp(RH.C0,cf(1,-.9,0)*angles(math.rad(0),math.rad(60),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.4)
  936. handleweld.C0=clerp(handleweld.C0,cf(0,-1,-1)*angles(math.rad(-90),math.rad(0),math.rad(0)),.4)
  937. end
  938. con:disconnect()
  939. attack=false
  940. scfr = nil
  941. pcall(function()
  942. hitconasdf:disconnect()
  943. end)
  944. end
  945.  
  946. function Spin()
  947. attack=true
  948. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,999999998,999999999,math.random(3,999999999),"Normal",RootPart,.2,1) end)
  949. hitconasdf = Hitbox.Touched:connect(function(hit)
  950. local hum12 = hit.Parent:FindFirstChild("Humanoid")
  951. if hum12 and not hum12:IsDescendantOf(Character) then
  952. so('http://roblox.com/asset/?id=154965973',Hitbox,1,1)
  953. for i = 1,10 do
  954. BreakEffect(BrickColor.new("Hot pink"),hit.Parent.Torso.CFrame,0.5,math.random(5,20),0.5)
  955. end
  956. hitconasdf:disconnect()
  957. end
  958. end)
  959. for i=0,1,1 do
  960. so("http://roblox.com/asset/?id=154965962",Hitbox,1,1)
  961. so("http://www.roblox.com/asset/?id=231917758",Hitbox,1,1)
  962. swait()
  963. for i=0,1,0.1 do
  964. swait()
  965. local blcf = Hitbox.CFrame*CFrame.new(0,.3,0)
  966. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  967. local h = 5
  968. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  969. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  970. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  971. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  972. scfr = blcf
  973. elseif not scfr then
  974. scfr = blcf
  975. end
  976. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*angles(math.rad(90),math.rad(0),math.rad(-50)),.3)
  977. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*angles(math.rad(90),math.rad(0),math.rad(50)),.3)
  978. LH.C0=clerp(LH.C0,cf(-1,-.5,-1)*angles(math.rad(-20),math.rad(-90),math.rad(0)),.3)
  979. RH.C0=clerp(RH.C0,cf(1,-.5,-1)*angles(math.rad(-20),math.rad(90),math.rad(0)),.3)
  980. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,5)*euler(6*i,0,0),.5)
  981. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(30)),1)
  982. end
  983. end
  984. attack=false
  985. con:disconnect()
  986. scfr = nil
  987. pcall(function()
  988. hitconasdf:disconnect()
  989. end)
  990. end
  991.  
  992. function ContAttack()
  993. attack=true
  994. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,999999998,999999999,math.random(3,999999999),"Normal",RootPart,.2,1) end)
  995. hitconasdf = Hitbox.Touched:connect(function(hit)
  996. local hum12 = hit.Parent:FindFirstChild("Humanoid")
  997. if hum12 and not hum12:IsDescendantOf(Character) then
  998. so('http://roblox.com/asset/?id=154965973',Hitbox,1,1)
  999. for i = 1,10 do
  1000. BreakEffect(BrickColor.new("Hot pink"),hit.Parent.Torso.CFrame,0.5,math.random(5,20),0.5)
  1001. end
  1002. hitconasdf:disconnect()
  1003. end
  1004. end)
  1005. for i=1,4 do
  1006. swait()
  1007. for i=0,1,0.2 do
  1008. swait()
  1009. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(120),math.rad(0),math.rad(20)),.3)
  1010. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(-20),math.rad(-90)),.3)
  1011. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(-5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1012. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(120),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1013. handleweld.C0=clerp(handleweld.C0,cf(0,-0,.4)*angles(math.rad(70),math.rad(-10),math.rad(0)),.3)
  1014. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
  1015. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(50)),.3)
  1016. end
  1017. so("http://www.roblox.com/asset/?id=154965962",Hitbox,1,1)
  1018. so("http://www.roblox.com/asset/?id=231917758",Hitbox,1,1)
  1019. for i=0,1,0.2 do
  1020. swait()
  1021. local blcf = Hitbox.CFrame*CFrame.new(0,.3,0)
  1022. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1023. local h = 5
  1024. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1025. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1026. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1027. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1028. scfr = blcf
  1029. elseif not scfr then
  1030. scfr = blcf
  1031. end
  1032. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(110),math.rad(-90),math.rad(20)),.3)
  1033. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(-20),math.rad(-50)),.3)
  1034. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-120),math.rad(5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1035. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1036. handleweld.C0=clerp(handleweld.C0,cf(0,-0,0)*angles(math.rad(-60),math.rad(-10),math.rad(0)),.3)
  1037. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  1038. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(-50)),.3)
  1039. end
  1040. for i=0,1,0.2 do
  1041. swait()
  1042. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(90),math.rad(90)),.3)
  1043. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(-20),math.rad(-50)),.3)
  1044. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-130),math.rad(5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1045. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1046. handleweld.C0=clerp(handleweld.C0,cf(0,-0,0)*angles(math.rad(-30),math.rad(-10),math.rad(0)),.3)
  1047. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(70)),.3)
  1048. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(-50)),.3)
  1049. end
  1050. so("http://www.roblox.com/asset/?id=154965962",Hitbox,1,.9)
  1051. so("http://www.roblox.com/asset/?id=231917758",Hitbox,1,.9)
  1052. for i=0,1,0.2 do
  1053. swait()
  1054. local blcf = Hitbox.CFrame*CFrame.new(0,.3,0)
  1055. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1056. local h = 5
  1057. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1058. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1059. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1060. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1061. scfr = blcf
  1062. elseif not scfr then
  1063. scfr = blcf
  1064. end
  1065. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(-50),math.rad(90)),.3)
  1066. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(-20),math.rad(-90)),.3)
  1067. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(-5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1068. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(130),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1069. handleweld.C0=clerp(handleweld.C0,cf(0,-0,0)*angles(math.rad(-50),math.rad(10),math.rad(0)),.3)
  1070. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
  1071. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(50)),.3)
  1072. end
  1073. end
  1074. attack=false
  1075. con:disconnect()
  1076. scfr = nil
  1077. pcall(function()
  1078. hitconasdf:disconnect()
  1079. end)
  1080. end
  1081.  
  1082.  
  1083. function Sheathe()
  1084. attack = true
  1085. so("http://www.roblox.com/asset/?id=273797222",Hitbox,1,.9)
  1086. CurrentMode = "Sheathed"
  1087. for i = 0,1,0.1 do
  1088. swait()
  1089. handleweld.Part0 = Torso
  1090. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1091. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(-20)),.3)
  1092. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(190),math.rad(0),math.rad(0)),.3)
  1093. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(20),math.rad(-10)),.3)
  1094. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(-5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1095. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1096. handleweld.C0=clerp(handleweld.C0,cf(3,3,0.5)*angles(math.rad(90),math.rad(150),math.rad(90)),.3)
  1097. end
  1098. attack = false
  1099. end
  1100.  
  1101. function Unsheathe()
  1102. attack = true
  1103. CurrentMode = "Unsheathed"
  1104. so("http://www.roblox.com/asset/?id=239169404",Hitbox,1,.9)
  1105. for i = 0,1,0.1 do
  1106. swait()
  1107. handleweld.Part0 = RightArm
  1108. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
  1109. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  1110. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(200),math.rad(0),math.rad(0)),.3)
  1111. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(0),math.rad(-30),math.rad(-30)),.3)
  1112. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(-5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1113. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1114. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.3)
  1115. end
  1116. scfr = nil
  1117. attack = false
  1118. end
  1119.  
  1120. local Sit = false
  1121.  
  1122. mouse.Button1Down:connect(function()
  1123. if attack==false then
  1124. if attacktype==1 and CurrentMode == "Unsheathed" then
  1125. attack=true
  1126. attacktype=2
  1127. attackone()
  1128. elseif attacktype==2 and CurrentMode == "Unsheathed" then
  1129. attack=true
  1130. attacktype=1
  1131. attacktwo()
  1132. end
  1133. end
  1134. end)
  1135.  
  1136.  
  1137. mouse.KeyDown:connect(function(k)
  1138. k=k:lower()
  1139. if k=='q' then
  1140. if attack==false and CurrentMode == "Unsheathed" then
  1141. Stab()
  1142. end
  1143. elseif k=='e' then
  1144. if attack==false and CurrentMode == "Unsheathed" then
  1145. Spin()
  1146. end
  1147. elseif k=='r' then
  1148. if attack==false and CurrentMode == "Unsheathed" then
  1149. ContAttack()
  1150. end
  1151. elseif k=='f' then
  1152. if attack==false and CurrentMode == "Unsheathed" then
  1153. Sheathe()
  1154. elseif k=='f' then
  1155. if attack==false and Sit == false and CurrentMode == "Sheathed" then
  1156. Unsheathe()
  1157. end
  1158. end
  1159. elseif k=='t' then
  1160. if attack==false and Sit == false and CurrentMode == "Sheathed" then
  1161. Sit = true
  1162. Humanoid.WalkSpeed = 0
  1163. elseif k=='t' then
  1164. if attack==false and Sit == true and CurrentMode == "Sheathed" then
  1165. Sit = false
  1166. Humanoid.WalkSpeed = 16
  1167. end
  1168. end
  1169.  
  1170. end
  1171. end)
  1172.  
  1173.  
  1174. local sine = 0
  1175. local change = 1
  1176. local val = 0
  1177.  
  1178. while true do
  1179. swait()
  1180. sine = sine + change
  1181. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1182. local velderp=RootPart.Velocity.y
  1183. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1184. if equipped==true or equipped==false then
  1185. if attack==false then
  1186. idle=idle+1
  1187. else
  1188. idle=0
  1189. end
  1190. if idle>=500 then
  1191. if attack==false then
  1192. end
  1193. end
  1194. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1195. Anim="Jump"
  1196. if attack==false and Sit == false and CurrentMode == "Unsheathed" then
  1197. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1198. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1199. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(50),math.rad(0),math.rad(30)),.3)
  1200. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-40),math.rad(5),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1201. LH.C0=clerp(LH.C0,cf(-1,-.5,-1)*angles(math.rad(-20),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1202. handleweld.C0=clerp(handleweld.C0,cf(0,-0,.4)*angles(math.rad(85),math.rad(-10),math.rad(0)),.3)
  1203. end
  1204. if attack==false and Sit == false and CurrentMode == "Sheathed" then
  1205. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1206. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  1207. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(0),math.rad(30)),.3)
  1208. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(0),math.rad(0),math.rad(-30)),.3)
  1209. LH.C0=clerp(LH.C0,cf(-1,-1,-.2)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1210. RH.C0=clerp(RH.C0,cf(1,-1,-.2)*angles(math.rad(0),math.rad(90),math.rad(5))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1211. handleweld.C0=clerp(handleweld.C0,cf(3,3,0.5)*angles(math.rad(90),math.rad(150),math.rad(90)),.3)
  1212. end
  1213. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1214. Anim="Fall"
  1215. if attack==false and Sit == false and CurrentMode == "Unsheathed" then
  1216. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1217. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1218. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(-5),math.rad(0),math.rad(20)),.3)
  1219. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-40),math.rad(5),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1220. LH.C0=clerp(LH.C0,cf(-1,-.5,-1)*angles(math.rad(-20),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1221. handleweld.C0=clerp(handleweld.C0,cf(0,-0,.4)*angles(math.rad(85),math.rad(-10),math.rad(0)),.3)
  1222. end
  1223. if attack==false and Sit == false and CurrentMode == "Sheathed" then
  1224. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1225. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1226. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(0),math.rad(50)),.3)
  1227. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(0),math.rad(0),math.rad(-50)),.3)
  1228. LH.C0=clerp(LH.C0,cf(-1,-.5,-.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1229. RH.C0=clerp(RH.C0,cf(1,-1,-.5)*angles(math.rad(0),math.rad(90),math.rad(5))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1230. handleweld.C0=clerp(handleweld.C0,cf(3,3,0.5)*angles(math.rad(90),math.rad(150),math.rad(90)),.3)
  1231. end
  1232. elseif torvel<1 and hitfloor~=nil then
  1233. Anim="Idle"
  1234. if attack==false and Sit == false and CurrentMode == "Unsheathed" then
  1235. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-40)),.3)
  1236. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(40)),.3)
  1237. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(40),math.rad(0),math.rad(20)),.3)
  1238. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(20),math.rad(-10)),.3)
  1239. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(-5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1240. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1241. handleweld.C0=clerp(handleweld.C0,cf(0,-0,.4)*angles(math.rad(85),math.rad(-10),math.rad(0)),.3)
  1242. end
  1243. if attack==false and Sit == false and CurrentMode == "Sheathed" then
  1244. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1245. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(0)),.3)
  1246. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(0),math.rad(5)),.3)
  1247. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(0),math.rad(0),math.rad(-5)),.3)
  1248. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1249. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(5))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1250. handleweld.C0=clerp(handleweld.C0,cf(3,3,0.5)*angles(math.rad(90),math.rad(150),math.rad(90)),.3)
  1251. end
  1252. if attack==false and Sit == true and CurrentMode == "Sheathed" then
  1253. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2)*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1254. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1255. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(-10),math.rad(0),math.rad(5)),.3)
  1256. LW.C0=clerp(LW.C0,cf(-1.3,0.5,0)*euler(math.rad(90),math.rad(0),math.rad(30)),.3)
  1257. LH.C0=clerp(LH.C0,cf(-1,.7,-.5)*angles(math.rad(0),math.rad(-90),math.rad(-10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1258. RH.C0=clerp(RH.C0,cf(1,-.5,-.5)*angles(math.rad(0),math.rad(90),math.rad(70))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1259. handleweld.C0=clerp(handleweld.C0,cf(3,3,0.5)*angles(math.rad(90),math.rad(150),math.rad(90)),.3)
  1260. end
  1261. elseif torvel>2 and hitfloor~=nil then
  1262. Anim="Walk"
  1263. if attack==false and Sit == false and CurrentMode == "Unsheathed" then
  1264. change=3
  1265. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1266. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1267. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(-5),math.rad(0),math.rad(20)),.3)
  1268. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-30),math.rad(5),math.rad(-10)),.3)
  1269. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1270. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1271. handleweld.C0=clerp(handleweld.C0,cf(0,-0,0)*angles(math.rad(15),math.rad(-10),math.rad(0)),.3)
  1272. end
  1273. if attack==false and Sit == false and CurrentMode == "Sheathed" then
  1274. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1275. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1276. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(30*math.cos(sine/10)),math.rad(0),math.rad(5)),.3)
  1277. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-30*math.cos(sine/10)),math.rad(0),math.rad(-5)),.3)
  1278. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3)
  1279. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(5))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3)
  1280. handleweld.C0=clerp(handleweld.C0,cf(3,3,0.5)*angles(math.rad(90),math.rad(150),math.rad(90)),.3)
  1281. end
  1282. end
  1283. end
  1284. if #Effects>0 then
  1285. for e=1,#Effects do
  1286. if Effects[e]~=nil then
  1287. local Thing=Effects[e]
  1288. if Thing~=nil then
  1289. local Part=Thing[1]
  1290. local Mode=Thing[2]
  1291. local Delay=Thing[3]
  1292. local IncX=Thing[4]
  1293. local IncY=Thing[5]
  1294. local IncZ=Thing[6]
  1295. if Thing[1].Transparency<=1 then
  1296. if Thing[2]=="Block1" then
  1297. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1298. Mesh=Thing[1].Mesh
  1299. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1300. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1301. elseif Thing[2]=="Cylinder" then
  1302. Mesh=Thing[1].Mesh
  1303. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1304. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1305. elseif Thing[2]=="Blood" then
  1306. Mesh=Thing[7]
  1307. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  1308. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1309. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1310. elseif Thing[2]=="Elec" then
  1311. Mesh=Thing[1].Mesh
  1312. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  1313. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1314. elseif Thing[2]=="Disappear" then
  1315. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1316. end
  1317. else
  1318. Part.Parent=nil
  1319. table.remove(Effects,e)
  1320. end
  1321. end
  1322. end
  1323. end
  1324. end
  1325. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement