Advertisement
Guest User

Untitled

a guest
Mar 31st, 2015
354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 46.52 KB | None | 0 0
  1. Player=game:GetService("Players").LocalPlayer
  2. Character=Player.Character
  3. PlayerGui=Player.PlayerGui
  4. Backpack=Player.Backpack
  5. Torso=Character.Torso
  6. Head=Character.Head
  7. Humanoid=Character.Humanoid
  8. m=Instance.new('Model',Character)
  9. LeftArm=Character["Left Arm"]
  10. LeftLeg=Character["Left Leg"]
  11. RightArm=Character["Right Arm"]
  12. RightLeg=Character["Right Leg"]
  13. LS=Torso["Left Shoulder"]
  14. LH=Torso["Left Hip"]
  15. RS=Torso["Right Shoulder"]
  16. RH=Torso["Right Hip"]
  17. Neck=Torso.Neck
  18. it=Instance.new
  19. attacktype=1
  20. vt=Vector3.new
  21. cf=CFrame.new
  22. euler=CFrame.fromEulerAnglesXYZ
  23. angles=CFrame.Angles
  24. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  25. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  26. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  27. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  28. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  29. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  30. RootPart=Character.HumanoidRootPart
  31. RootJoint=RootPart.RootJoint
  32. RootCF=euler(-1.57,0,3.14)
  33. attack = false
  34. attackdebounce = false
  35. deb=false
  36. equipped=true
  37. hand=false
  38. MMouse=nil
  39. combo=0
  40. mana=0
  41. trispeed=.2
  42. attackmode='none'
  43. local idle=0
  44. local Anim="Idle"
  45. local Effects={}
  46. local gun=false
  47. local shoot=false
  48. player=nil
  49.  
  50. mouse=Player:GetMouse()
  51. --save shoulders
  52. RSH, LSH=nil, nil
  53. --welds
  54. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  55. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  56. LH=Torso["Left Hip"]
  57. RH=Torso["Right Hip"]
  58. TorsoColor=Torso.BrickColor
  59. function NoOutline(Part)
  60. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  61. end
  62. player=Player
  63. ch=Character
  64. RSH=ch.Torso["Right Shoulder"]
  65. LSH=ch.Torso["Left Shoulder"]
  66. --
  67. RSH.Parent=nil
  68. LSH.Parent=nil
  69. --
  70. RW.Name="Right Shoulder"
  71. RW.Part0=ch.Torso
  72. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  73. RW.C1=cf(0, 0.5, 0)
  74. RW.Part1=ch["Right Arm"]
  75. RW.Parent=ch.Torso
  76. --
  77. LW.Name="Left Shoulder"
  78. LW.Part0=ch.Torso
  79. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  80. LW.C1=cf(0, 0.5, 0)
  81. LW.Part1=ch["Left Arm"]
  82. LW.Parent=ch.Torso
  83.  
  84. local Stats=Instance.new("BoolValue")
  85. Stats.Name="Stats"
  86. Stats.Parent=Character
  87. local Atk=Instance.new("NumberValue")
  88. Atk.Name="Damage"
  89. Atk.Parent=Stats
  90. Atk.Value=1
  91. local Def=Instance.new("NumberValue")
  92. Def.Name="Defense"
  93. Def.Parent=Stats
  94. Def.Value=1
  95. local Speed=Instance.new("NumberValue")
  96. Speed.Name="Speed"
  97. Speed.Parent=Stats
  98. Speed.Value=1
  99. local Mvmt=Instance.new("NumberValue")
  100. Mvmt.Name="Movement"
  101. Mvmt.Parent=Stats
  102. Mvmt.Value=1
  103.  
  104. local donum=0
  105.  
  106.  
  107. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  108. local fp=it("Part")
  109. fp.formFactor=formfactor
  110. fp.Parent=parent
  111. fp.Reflectance=reflectance
  112. fp.Transparency=transparency
  113. fp.CanCollide=false
  114. fp.Locked=true
  115. fp.BrickColor=brickcolor
  116. fp.Name=name
  117. fp.Size=size
  118. fp.Position=Torso.Position
  119. NoOutline(fp)
  120. fp.Material="SmoothPlastic"
  121. fp:BreakJoints()
  122. return fp
  123. end
  124.  
  125. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  126. local mesh=it(Mesh)
  127. mesh.Parent=part
  128. if Mesh=="SpecialMesh" then
  129. mesh.MeshType=meshtype
  130. if meshid~="nil" then
  131. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  132. end
  133. end
  134. mesh.Offset=offset
  135. mesh.Scale=scale
  136. return mesh
  137. end
  138.  
  139. function weld(parent,part0,part1,c0)
  140. local weld=it("Weld")
  141. weld.Parent=parent
  142. weld.Part0=part0
  143. weld.Part1=part1
  144. weld.C0=c0
  145. return weld
  146. end
  147.  
  148. local Color1=Torso.BrickColor
  149.  
  150. local bodvel=Instance.new("BodyVelocity")
  151. local bg=Instance.new("BodyGyro")
  152.  
  153. function swait(num)
  154. if num==0 or num==nil then
  155. game:service'RunService'.Stepped:wait(0)
  156. else
  157. for i=0,num do
  158. game:service'RunService'.Stepped:wait(0)
  159. end
  160. end
  161. end
  162.  
  163.  
  164. so = function(id,par,vol,pit)
  165. coroutine.resume(coroutine.create(function()
  166. local sou = Instance.new("Sound",par or workspace)
  167. sou.Volume=vol
  168. sou.Pitch=pit or 1
  169. sou.SoundId=id
  170. swait()
  171. sou:play()
  172. game:GetService("Debris"):AddItem(sou,6)
  173. end))
  174. end
  175.  
  176. function clerp(a,b,t)
  177. local qa = {QuaternionFromCFrame(a)}
  178. local qb = {QuaternionFromCFrame(b)}
  179. local ax, ay, az = a.x, a.y, a.z
  180. local bx, by, bz = b.x, b.y, b.z
  181. local _t = 1-t
  182. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  183. end
  184.  
  185. function QuaternionFromCFrame(cf)
  186. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  187. local trace = m00 + m11 + m22
  188. if trace > 0 then
  189. local s = math.sqrt(1 + trace)
  190. local recip = 0.5/s
  191. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  192. else
  193. local i = 0
  194. if m11 > m00 then
  195. i = 1
  196. end
  197. if m22 > (i == 0 and m00 or m11) then
  198. i = 2
  199. end
  200. if i == 0 then
  201. local s = math.sqrt(m00-m11-m22+1)
  202. local recip = 0.5/s
  203. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  204. elseif i == 1 then
  205. local s = math.sqrt(m11-m22-m00+1)
  206. local recip = 0.5/s
  207. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  208. elseif i == 2 then
  209. local s = math.sqrt(m22-m00-m11+1)
  210. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  211. end
  212. end
  213. end
  214.  
  215. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  216. local xs, ys, zs = x + x, y + y, z + z
  217. local wx, wy, wz = w*xs, w*ys, w*zs
  218. local xx = x*xs
  219. local xy = x*ys
  220. local xz = x*zs
  221. local yy = y*ys
  222. local yz = y*zs
  223. local zz = z*zs
  224. 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))
  225. end
  226.  
  227. function QuaternionSlerp(a, b, t)
  228. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  229. local startInterp, finishInterp;
  230. if cosTheta >= 0.0001 then
  231. if (1 - cosTheta) > 0.0001 then
  232. local theta = math.acos(cosTheta)
  233. local invSinTheta = 1/math.sin(theta)
  234. startInterp = math.sin((1-t)*theta)*invSinTheta
  235. finishInterp = math.sin(t*theta)*invSinTheta
  236. else
  237. startInterp = 1-t
  238. finishInterp = t
  239. end
  240. else
  241. if (1+cosTheta) > 0.0001 then
  242. local theta = math.acos(-cosTheta)
  243. local invSinTheta = 1/math.sin(theta)
  244. startInterp = math.sin((t-1)*theta)*invSinTheta
  245. finishInterp = math.sin(t*theta)*invSinTheta
  246. else
  247. startInterp = t-1
  248. finishInterp = t
  249. end
  250. end
  251. 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
  252. end
  253.  
  254. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  255. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  256. end
  257.  
  258.  
  259. user=game:service'Players'.localPlayer
  260. char=user.Character
  261. mouse=user:GetMouse()
  262. m=Instance.new('Model',char)
  263. game:service'Lighting'.Outlines=false
  264.  
  265.  
  266. local Handle = Instance.new("Part", m)
  267. Handle:BreakJoints()
  268. Handle.TopSurface = "Smooth"
  269. Handle.Name = 'Handle'
  270. Handle.BottomSurface = "Smooth"
  271. Handle.FormFactor = "Custom" Handle.CanCollide = false
  272. Handle.BrickColor = BrickColor.new("Bright red")
  273. Handle.Size = Vector3.new(0.200000003, 0.600000143, 1)
  274. Handle.Transparency = 0 Handle.Reflectance = 0 local Handleweld = Instance.new("ManualWeld")
  275. Handleweld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
  276. Handleweld.Part1 = Handle Handleweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  277. Handleweld.C1 = CFrame.new(0.0123119354, -0.101894379, -1.04238629, -0.99999249, -3.16296064e-05, -7.61519459e-06, 7.6239744e-06, -4.36603978e-06, -0.999996424, 3.02437056e-05, -0.999994636, 4.51505184e-06)
  278. Handleweld.Parent = game.Players.LocalPlayer.Character["Right Arm"]
  279.  
  280. local HandleMesh = Instance.new("CylinderMesh",Handle)
  281. HandleMesh.Name = "Mesh"
  282. HandleMesh.Offset = Vector3.new(0, 0, 0)
  283. HandleMesh.Scale = Vector3.new(1, 1.5, 0.100000001)
  284.  
  285. local Part = Instance.new("Part", m)
  286. Part:BreakJoints()
  287. Part.TopSurface = "Smooth"
  288. Part.Name = 'Part'
  289. Part.BottomSurface = "Smooth"
  290. Part.FormFactor = "Custom" Part.CanCollide = false
  291. Part.BrickColor = BrickColor.new("Bright red")
  292. Part.Size = Vector3.new(0.200000003, 0.400000006, 0.400000006)
  293. Part.Reflectance = 0 Part.Transparency = 0 local Partweld = Instance.new("ManualWeld")
  294. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  295. Partweld.C1 = CFrame.new(-0.249811172, 0.399396658, -0.432449341, 0.865910232, 0.50017333, 1.17659147e-06, -1.30344306e-05, 2.04888893e-05, -0.99998939, -0.500169456, 0.865916908, 2.25871609e-05)
  296. Partweld.Parent = Part
  297. local PartMesh = Instance.new("SpecialMesh",Part)
  298. PartMesh.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  299. PartMesh.MeshType = Enum.MeshType.FileMesh PartMesh.Name = "Mesh"
  300. PartMesh.Offset = Vector3.new(0, 0, 0)
  301. PartMesh.Scale = Vector3.new(0.100000001, 0.25999999, 0.100000001)
  302.  
  303. local Part = Instance.new("Part", m)
  304. Part:BreakJoints()
  305. Part.TopSurface = "Smooth"
  306. Part.Name = 'Part'
  307. Part.BottomSurface = "Smooth"
  308. Part.FormFactor = "Custom" Part.CanCollide = false
  309. Part.BrickColor = BrickColor.new("Bright red")
  310. Part.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  311. Part.Reflectance = 0 Part.Transparency = 0 local Partweld = Instance.new("ManualWeld")
  312. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  313. Partweld.C1 = CFrame.new(-3.07559967e-05, 0.599258423, 9.53674316e-06, -6.35111282e-05, -8.71689826e-06, -0.99998951, 1.48341051e-05, 0.999992788, -9.00047962e-06, 0.99998498, -1.48519975e-05, -6.07394177e-05)
  314. Partweld.Parent = Part
  315. local PartMesh = Instance.new("SpecialMesh",Part)
  316. PartMesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  317. PartMesh.MeshType = Enum.MeshType.FileMesh PartMesh.Name = "Mesh"
  318. PartMesh.Offset = Vector3.new(0, 0, 0)
  319. PartMesh.Scale = Vector3.new(0.280000001, 0.280000001, 0.5)
  320.  
  321. local Part = Instance.new("Part", m)
  322. Part:BreakJoints()
  323. Part.TopSurface = "Smooth"
  324. Part.Name = 'Part'
  325. Part.BottomSurface = "Smooth"
  326. Part.FormFactor = "Custom" Part.CanCollide = false
  327. Part.BrickColor = BrickColor.new("Really black")
  328. Part.Size = Vector3.new(0.200000003, 0.80000037, 0.200000003)
  329. Part.Reflectance = 0 Part.Transparency = 0 local Partweld = Instance.new("ManualWeld")
  330. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  331. Partweld.C1 = CFrame.new(0.000123977661, -5.8923111, -3.0040741e-05, -0.99998498, 8.61155058e-09, -1.38593168e-06, -8.61155058e-09, 0.999992847, -1.48787407e-07, -1.38593168e-06, 1.48787407e-07, -0.99998951)
  332. Partweld.Parent = Part
  333. local PartMesh = Instance.new("SpecialMesh",Part)
  334. PartMesh.MeshId = ""
  335. PartMesh.MeshType = Enum.MeshType.Wedge PartMesh.Name = "Mesh"
  336. PartMesh.Offset = Vector3.new(0, 0, 0)
  337. PartMesh.Scale = Vector3.new(0.400000006, 1.68499994, 1.25999999)
  338.  
  339. local Part = Instance.new("Part", m)
  340. Part:BreakJoints()
  341. Part.TopSurface = "Smooth"
  342. Part.Name = 'Part'
  343. Part.BottomSurface = "Smooth"
  344. Part.FormFactor = "Custom" Part.CanCollide = false
  345. Part.BrickColor = BrickColor.new("Bright red")
  346. Part.Size = Vector3.new(0.200000003, 0.600000024, 0.200000003)
  347. Part.Reflectance = 0 Part.Transparency = 0 local Partweld = Instance.new("ManualWeld")
  348. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  349. Partweld.C1 = CFrame.new(-1.71661377e-05, -0.998729706, 1.93119049e-05, 0.99998498, -8.61155058e-09, 1.38593168e-06, -8.61155058e-09, 0.999992847, -1.48787407e-07, 1.38593168e-06, -1.48787407e-07, 0.99998951)
  350. Partweld.Parent = Part
  351. local PartMesh = Instance.new("BlockMesh",Part)
  352. PartMesh.Name = "Mesh"
  353. PartMesh.Offset = Vector3.new(0, 0, 0)
  354. PartMesh.Scale = Vector3.new(0.449999988, 1.10000002, 0.150000006)
  355.  
  356. local Part = Instance.new("Part", m)
  357. Part:BreakJoints()
  358. Part.TopSurface = "Smooth"
  359. Part.Name = 'Part'
  360. Part.BottomSurface = "Smooth"
  361. Part.FormFactor = "Custom" Part.CanCollide = false
  362. Part.BrickColor = BrickColor.new("Really black")
  363. Part.Size = Vector3.new(0.200000003, 1.80000019, 0.200000003)
  364. Part.Reflectance = 0 Part.Transparency = 0 local Partweld = Instance.new("ManualWeld")
  365. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  366. Partweld.C1 = CFrame.new(-7.05718994e-05, -2.79658508, 1.50203705e-05, 0.99998498, -8.61155058e-09, 1.38593168e-06, -8.61155058e-09, 0.999992847, -1.48787407e-07, 1.38593168e-06, -1.48787407e-07, 0.99998951)
  367. Partweld.Parent = Part
  368. local PartMesh = Instance.new("BlockMesh",Part)
  369. PartMesh.Name = "Mesh"
  370. PartMesh.Offset = Vector3.new(0, 0, 0)
  371. PartMesh.Scale = Vector3.new(0.400000006, 2.70000005, 1.25)
  372.  
  373. local Part = Instance.new("Part", m)
  374. Part:BreakJoints()
  375. Part.TopSurface = "Smooth"
  376. Part.Name = 'Part'
  377. Part.BottomSurface = "Smooth"
  378. Part.FormFactor = "Custom" Part.CanCollide = false
  379. Part.BrickColor = BrickColor.new("Bright red")
  380. Part.Size = Vector3.new(1, 0.200000003, 0.400000036)
  381. Part.Reflectance = 0 Part.Transparency = 0 local Partweld = Instance.new("ManualWeld")
  382. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  383. Partweld.C1 = CFrame.new(-1.1920929e-06, 5.7220459e-06, -0.499408722, -6.35111282e-05, -8.71689826e-06, -0.99998951, -0.99998498, 9.16634235e-09, 6.07395486e-05, -8.61291483e-09, 0.999992788, -9.00003033e-06)
  384. Partweld.Parent = Part
  385. local PartMesh = Instance.new("CylinderMesh",Part)
  386. PartMesh.Name = "Mesh"
  387. PartMesh.Offset = Vector3.new(0, 0, 0)
  388. PartMesh.Scale = Vector3.new(1, 0.899999976, 0.899999976)
  389.  
  390. local Part = Instance.new("Part", m)
  391. Part:BreakJoints()
  392. Part.TopSurface = "Smooth"
  393. Part.Name = 'Part'
  394. Part.BottomSurface = "Smooth"
  395. Part.FormFactor = "Custom" Part.CanCollide = false
  396. Part.BrickColor = BrickColor.new("Bright red")
  397. Part.Size = Vector3.new(0.200000033, 0.200000003, 0.400000006)
  398. Part.Reflectance = 0 Part.Transparency = 0 local Partweld = Instance.new("ManualWeld")
  399. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  400. Partweld.C1 = CFrame.new(-1.1920929e-06, 5.7220459e-06, -0.499408722, -6.35111282e-05, -8.71689826e-06, -0.99998951, -0.99998498, 9.16634235e-09, 6.07395486e-05, -8.61291483e-09, 0.999992788, -9.00003033e-06)
  401. Partweld.Parent = Part
  402. local PartMesh = Instance.new("CylinderMesh",Part)
  403. PartMesh.Name = "Mesh"
  404. PartMesh.Offset = Vector3.new(0, 0, 0)
  405. PartMesh.Scale = Vector3.new(1, 1.10000002, 0.25)
  406.  
  407. local Part = Instance.new("Part", m)
  408. Part:BreakJoints()
  409. Part.TopSurface = "Smooth"
  410. Part.Name = 'Part'
  411. Part.BottomSurface = "Smooth"
  412. Part.FormFactor = "Custom" Part.CanCollide = false
  413. Part.BrickColor = BrickColor.new("Bright red")
  414. Part.Size = Vector3.new(0.200000003, 0.200000003, 0.400000006)
  415. Part.Reflectance = 0 Part.Transparency = 0 local Partweld = Instance.new("ManualWeld")
  416. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  417. Partweld.C1 = CFrame.new(-0.353210449, -0.399423361, -0.353027344, 0.706925392, 0.707272351, 9.96809831e-07, -2.79798551e-05, 2.69560824e-05, -0.99998951, -0.707266808, 0.706930995, 3.66166132e-05)
  418. Partweld.Parent = Part
  419. local PartMesh = Instance.new("SpecialMesh",Part)
  420. PartMesh.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  421. PartMesh.MeshType = Enum.MeshType.FileMesh PartMesh.Name = "Mesh"
  422. PartMesh.Offset = Vector3.new(0, 0, 0)
  423. PartMesh.Scale = Vector3.new(0.100000001, 0.25999999, 0.100000001)
  424.  
  425. local Part = Instance.new("Part", m)
  426. Part:BreakJoints()
  427. Part.TopSurface = "Smooth"
  428. Part.Name = 'Part'
  429. Part.BottomSurface = "Smooth"
  430. Part.FormFactor = "Custom" Part.CanCollide = false
  431. Part.BrickColor = BrickColor.new("Bright red")
  432. Part.Size = Vector3.new(0.200000003, 0.800000012, 0.200000003)
  433. Part.Reflectance = 0 Part.Transparency = 0 local Partweld = Instance.new("ManualWeld")
  434. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  435. Partweld.C1 = CFrame.new(-5.7220459e-06, -1.1920929e-06, -0.499404907, 0.99998498, -8.61155058e-09, 1.38593168e-06, -1.38592986e-06, -8.77697676e-06, -0.99998951, -8.62564775e-09, 0.999992847, -9.04473382e-06)
  436. Partweld.Parent = Part
  437. local PartMesh = Instance.new("CylinderMesh",Part)
  438. PartMesh.Name = "Mesh"
  439. PartMesh.Offset = Vector3.new(0, 0, 0)
  440. PartMesh.Scale = Vector3.new(1, 0.860000014, 0.349999994)
  441.  
  442. local Part = Instance.new("Part", m)
  443. Part:BreakJoints()
  444. Part.TopSurface = "Smooth"
  445. Part.Name = 'Part'
  446. Part.BottomSurface = "Smooth"
  447. Part.FormFactor = "Custom" Part.CanCollide = false
  448. Part.BrickColor = BrickColor.new("Really black")
  449. Part.Size = Vector3.new(0.200000003, 0.400000006, 0.200000003)
  450. Part.Reflectance = 0 Part.Transparency = 0 local Partweld = Instance.new("ManualWeld")
  451. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  452. Partweld.C1 = CFrame.new(0, -0.39940536, -0.499397278, 0.99998498, -8.61155058e-09, 1.38593168e-06, -1.38592986e-06, -8.77697676e-06, -0.99998951, -8.62564775e-09, 0.999992847, -9.04473382e-06)
  453. Partweld.Parent = Part
  454. local PartMesh = Instance.new("SpecialMesh",Part)
  455. PartMesh.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  456. PartMesh.MeshType = Enum.MeshType.FileMesh PartMesh.Name = "Mesh"
  457. PartMesh.Offset = Vector3.new(0, 0, 0)
  458. PartMesh.Scale = Vector3.new(0.100000001, 0.25999999, 0.100000001)
  459.  
  460. local Part = Instance.new("Part", m)
  461. Part:BreakJoints()
  462. Part.TopSurface = "Smooth"
  463. Part.Name = 'Part'
  464. Part.BottomSurface = "Smooth"
  465. Part.FormFactor = "Custom" Part.CanCollide = false
  466. Part.BrickColor = BrickColor.new("Really black")
  467. Part.Size = Vector3.new(0.400000006, 0.200000003, 0.200000003)
  468. Part.Reflectance = 0 Part.Transparency = 0 local Partweld = Instance.new("ManualWeld")
  469. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  470. Partweld.C1 = CFrame.new(0.499408722, 3.24249268e-05, 0.000199556351, -7.73533029e-05, -0.999992728, -0.000388200919, 0.99998492, -7.72523927e-05, -0.000302863016, 0.000305603549, -0.000388563407, 0.99998939)
  471. Partweld.Parent = Part
  472. local PartMesh = Instance.new("SpecialMesh",Part)
  473. PartMesh.MeshId = "http://www.roblox.com/asset/?id=16606212"
  474. PartMesh.MeshType = Enum.MeshType.FileMesh PartMesh.Name = "Mesh"
  475. PartMesh.Offset = Vector3.new(0, 0, 0)
  476. PartMesh.Scale = Vector3.new(0.0500000007, 0.0599999987, 0.219999999)
  477.  
  478. local Part = Instance.new("Part", m)
  479. Part:BreakJoints()
  480. Part.TopSurface = "Smooth"
  481. Part.Name = 'Part'
  482. Part.BottomSurface = "Smooth"
  483. Part.FormFactor = "Custom" Part.CanCollide = false
  484. Part.BrickColor = BrickColor.new("Really black")
  485. Part.Size = Vector3.new(0.600000024, 0.200000003, 0.400000006)
  486. Part.Reflectance = 0 Part.Transparency = 0 local Partweld = Instance.new("ManualWeld")
  487. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  488. Partweld.C1 = CFrame.new(-1.1920929e-06, 5.7220459e-06, -0.499408722, -6.35111282e-05, -8.71689826e-06, -0.99998951, -0.99998498, 9.16634235e-09, 6.07395486e-05, -8.61291483e-09, 0.999992788, -9.00003033e-06)
  489. Partweld.Parent = Part
  490. local PartMesh = Instance.new("CylinderMesh",Part)
  491. PartMesh.Name = "Mesh"
  492. PartMesh.Offset = Vector3.new(0, 0, 0)
  493. PartMesh.Scale = Vector3.new(1, 1, 0.5)
  494.  
  495. local Part = Instance.new("Part", m)
  496. Part:BreakJoints()
  497. Part.TopSurface = "Smooth"
  498. Part.Name = 'Part'
  499. Part.BottomSurface = "Smooth"
  500. Part.FormFactor = "Custom" Part.CanCollide = false
  501. Part.BrickColor = BrickColor.new("Bright red")
  502. Part.Size = Vector3.new(0.200000003, 0.400000006, 0.200000003)
  503. Part.Reflectance = 0 Part.Transparency = 0 local Partweld = Instance.new("ManualWeld")
  504. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  505. Partweld.C1 = CFrame.new(-1.53779984e-05, 2.67028809e-05, 0.299648285, -6.35111282e-05, -8.71689826e-06, -0.99998951, 0.99998498, -8.36862455e-08, -6.07395486e-05, -6.59101715e-08, -0.999992788, 9.00003306e-06)
  506. Partweld.Parent = Part
  507. local PartMesh = Instance.new("SpecialMesh",Part)
  508. PartMesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  509. PartMesh.MeshType = Enum.MeshType.FileMesh PartMesh.Name = "Mesh"
  510. PartMesh.Offset = Vector3.new(0, 0, 0)
  511. PartMesh.Scale = Vector3.new(0.200000003, 0.200000003, 0.400000006)
  512.  
  513. local Part = Instance.new("Part", m)
  514. Part:BreakJoints()
  515. Part.TopSurface = "Smooth"
  516. Part.Name = 'Part'
  517. Part.BottomSurface = "Smooth"
  518. Part.FormFactor = "Custom" Part.CanCollide = false
  519. Part.BrickColor = BrickColor.new("Bright red")
  520. Part.Size = Vector3.new(0.600000024, 0.400000036, 0.400000006)
  521. Part.Reflectance = 0 Part.Transparency = 0 local Partweld = Instance.new("ManualWeld")
  522. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  523. Partweld.C1 = CFrame.new(-1.06096268e-05, 1.33514404e-05, 0.199748993, -6.35111282e-05, -8.71689826e-06, -0.99998951, 0.99998498, -8.36862455e-08, -6.07395486e-05, -6.59101715e-08, -0.999992788, 9.00003306e-06)
  524. Partweld.Parent = Part
  525. local PartMesh = Instance.new("SpecialMesh",Part)
  526. PartMesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  527. PartMesh.MeshType = Enum.MeshType.FileMesh PartMesh.Name = "Mesh"
  528. PartMesh.Offset = Vector3.new(0, 0, 0)
  529. PartMesh.Scale = Vector3.new(0.200000003, 0.200000003, 0.400000006)
  530.  
  531. local Part = Instance.new("Part", m)
  532. Part:BreakJoints()
  533. Part.TopSurface = "Smooth"
  534. Part.Name = 'Part'
  535. Part.BottomSurface = "Smooth"
  536. Part.FormFactor = "Custom" Part.CanCollide = false
  537. Part.BrickColor = BrickColor.new("Really black")
  538. Part.Size = Vector3.new(0.200000003, 0.600000024, 0.200000003)
  539. Part.Reflectance = 0 Part.Transparency = 0 local Partweld = Instance.new("ManualWeld")
  540. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  541. Partweld.C1 = CFrame.new(-1.90734863e-06, 0, 0, 0.99998498, -8.61155058e-09, 1.38593168e-06, -8.61155058e-09, 0.999992847, -1.48787407e-07, 1.38593168e-06, -1.48787407e-07, 0.99998951)
  542. Partweld.Parent = Part
  543. local PartMesh = Instance.new("BlockMesh",Part)
  544. PartMesh.Name = "Mesh"
  545. PartMesh.Offset = Vector3.new(0, 0, 0)
  546. PartMesh.Scale = Vector3.new(0.5, 1.5, 0.150000006)
  547.  
  548. local Part = Instance.new("Part", m)
  549. Part:BreakJoints()
  550. Part.TopSurface = "Smooth"
  551. Part.Name = 'Part'
  552. Part.BottomSurface = "Smooth"
  553. Part.FormFactor = "Custom" Part.CanCollide = false
  554. Part.BrickColor = BrickColor.new("Really black")
  555. Part.Size = Vector3.new(0.200000003, 0.400000006, 0.200000003)
  556. Part.Reflectance = 0 Part.Transparency = 0 local Partweld = Instance.new("ManualWeld")
  557. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  558. Partweld.C1 = CFrame.new(-2.0980835e-05, 0.399411321, -0.499404907, 0.99998498, -8.61155058e-09, 1.38593168e-06, -1.38592986e-06, -8.77697676e-06, -0.99998951, -8.62564775e-09, 0.999992847, -9.04473382e-06)
  559. Partweld.Parent = Part
  560. local PartMesh = Instance.new("SpecialMesh",Part)
  561. PartMesh.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  562. PartMesh.MeshType = Enum.MeshType.FileMesh PartMesh.Name = "Mesh"
  563. PartMesh.Offset = Vector3.new(0, 0, 0)
  564. PartMesh.Scale = Vector3.new(0.100000001, 0.25999999, 0.100000001)
  565.  
  566. local hitbox = Instance.new("Part", m)
  567. hitbox:BreakJoints()
  568. hitbox.TopSurface = "Smooth"
  569. hitbox.Name = 'hitbox'
  570. hitbox.BottomSurface = "Smooth"
  571. hitbox.FormFactor = "Custom" hitbox.CanCollide = false
  572. hitbox.BrickColor = BrickColor.new("Royal purple")
  573. hitbox.Size = Vector3.new(0.200000003, 5.80000019, 0.400000006)
  574. hitbox.Reflectance = 0 hitbox.Transparency = 1 local hitboxweld = Instance.new("ManualWeld")
  575. hitboxweld.Part0 = Handle hitboxweld.Part1 = hitbox hitboxweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  576. hitboxweld.C1 = CFrame.new(-0.0100803375, -3.59560394, -0.0413378477, 0.99998498, -8.61155058e-09, 1.38593168e-06, -8.61155058e-09, 0.999992847, -1.48787407e-07, 1.38593168e-06, -1.48787407e-07, 0.99998951)
  577. hitboxweld.Parent = hitbox
  578. local tip = Instance.new("Part", m)
  579. tip:BreakJoints()
  580. tip.TopSurface = "Smooth"
  581. tip.Name = 'tip'
  582. tip.BottomSurface = "Smooth"
  583. tip.FormFactor = "Custom" tip.CanCollide = false
  584. tip.BrickColor = BrickColor.new("Royal purple")
  585. tip.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  586. tip.Reflectance = 0 tip.Transparency = 1 local tipweld = Instance.new("ManualWeld")
  587. tipweld.Part0 = Handle tipweld.Part1 = tip tipweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  588. tipweld.C1 = CFrame.new(-0.01014328, -6.39224243, 0.0585107803, 0.99998498, -8.61155058e-09, 1.38593168e-06, -8.61155058e-09, 0.999992847, -1.48787407e-07, 1.38593168e-06, -1.48787407e-07, 0.99998951)
  589. tipweld.Parent = tip
  590.  
  591. local function weldBetween(a, b, name)
  592. local weld = Instance.new("ManualWeld")
  593. weld.Part0 = a
  594. weld.Part1 = b
  595. weld.C0 = CFrame.new()
  596. weld.C1 = b.CFrame:inverse() * a.CFrame
  597. weld.Parent = a
  598. weld.Name=name or 'weldb1'
  599. weld.Parent=m
  600. return weld;
  601. end
  602.  
  603.  
  604.  
  605. rings=Instance.new('Model',Character)
  606.  
  607. ring=function(way,way2,where,vector,rv1,rv2,rv3,c1,c2)
  608. local rng = Instance.new("Part", rings)
  609. rng.Anchored = true
  610. rng.BrickColor = BrickColor.new("Bright blue")
  611. rng.CanCollide = false
  612. rng.FormFactor = 3
  613. rng.Name = "Ring"
  614. rng.Size = Vector3.new(1, 1, 1)
  615. rng.Transparency = .5
  616. rng.TopSurface = 0
  617. rng.BottomSurface = 0
  618. rng.CFrame = where.CFrame * CFrame.Angles(math.rad(way), math.rad(way2), 0)
  619. local rngm = Instance.new("SpecialMesh", rng)
  620. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  621. rngm.Scale = vector--10,10,1
  622. for i = 1, 20, 1 do
  623. rngm.Scale = Vector3.new(rv1 + i*c1, rv2 + i*c2, rv3)--(10 + i*2, 10 + i*2, 1)
  624. rng.Transparency = i/20
  625. swait()
  626. end
  627. wait()
  628. rng:destroy''
  629. end
  630.  
  631. player=game.Players.localPlayer
  632. char=player.Character
  633. Effects={}
  634. vt=Vector3.new
  635. cf=CFrame.new
  636. euler=CFrame.fromEulerAnglesXYZ
  637. m=Instance.new("Model",char)
  638.  
  639. function dmgstart(dmg,what)
  640. hitcon = what.Touched:connect(function(hit)
  641. local hum = hit.Parent:FindFirstChild("Humanoid")
  642. if hum and not hum:IsDescendantOf(Character) then
  643. hum:TakeDamage(dmg)
  644. end
  645. end)
  646. end
  647.  
  648. function dmgstop()
  649. hitcon:disconnect()
  650. end
  651.  
  652. mouse.Button1Down:connect(function()
  653. if equipped==true and hand==false then
  654. if attacktype==1 then
  655. attackone()
  656. elseif attacktype==2 then
  657. attacktwo()
  658. elseif attacktype==3 then
  659. attackthree()
  660. end
  661. end
  662. end)
  663.  
  664. mouse.KeyDown:connect(function(k)
  665. k=k:lower()
  666. if k=='q' then
  667. if attack==false then
  668. spin()
  669. end
  670. elseif k=='f' then
  671. if attack==false then
  672. boom()
  673. end
  674. end
  675. end)
  676.  
  677. function spin()
  678. attack=true
  679. dmgstart(5,hitbox)
  680. for i=0,1,0.2 do
  681. swait()
  682. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.45)
  683. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.45)
  684. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.45)
  685. LW.C0=clerp(LW.C0,cf(0,0.5,-0.7)*euler(1.5,-1.5,0)*euler(.7,0,0),.45)
  686. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45)
  687. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45)
  688. end
  689. for i=0,1,0.15 do
  690. so("http://roblox.com/asset/?id=161006212",hitbox,1,1)
  691. swait()
  692. local blcf = hitbox.CFrame*CFrame.new(0,.5,0)
  693. if scfr and (hitbox.Position-scfr.p).magnitude > .1 then
  694. local h = 5
  695. 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)
  696. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  697. 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)
  698. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  699. scfr = blcf
  700. elseif not scfr then
  701. scfr = blcf
  702. end
  703. for i=0,1,0.1 do
  704. swait()
  705. local blcf = hitbox.CFrame*CFrame.new(0,.5,0)
  706. if scfr and (hitbox.Position-scfr.p).magnitude > .1 then
  707. local h = 5
  708. 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)
  709. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  710. 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)
  711. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  712. scfr = blcf
  713. elseif not scfr then
  714. scfr = blcf
  715. end
  716. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(-.5,0,0),.3)
  717. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.3)
  718. RootJoint.C0=RootCF*euler(0,0,6.6*i)
  719. end
  720. end
  721. dmgstop()
  722. attack=false
  723. end
  724.  
  725. function attackone()
  726. if attack==false and attacktype==1 then
  727. attacktype=2
  728. attack=true
  729. dmgstart(5,hitbox)
  730. for i=0,1,0.2 do
  731. swait()
  732. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,.5),.4)
  733. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.5),.4)
  734. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2,0,1),.4)
  735. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  736. LW.C0=clerp(LW.C0,cf(-1.3,0.5,-.3)*euler(.4,0,.2)*euler(0,-.2,0),.4)
  737. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  738. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.5,0),.4)
  739. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.5,0),.4)
  740. end
  741. so("http://roblox.com/asset/?id=161006212",hitbox,1,.7)
  742. hitconasdf = hitbox.Touched:connect(function(hit)
  743. local hum12 = hit.Parent:FindFirstChild("Humanoid")
  744. if hum12 and not hum12:IsDescendantOf(Character) then
  745. so('http://roblox.com/asset/?id=220025675',hitbox,1,3)
  746. hitconasdf:disconnect()
  747. end
  748. end)
  749. for i=0,1,0.3 do
  750. swait()
  751. local blcf = hitbox.CFrame*CFrame.new(0,.5,0)
  752. if scfr and (hitbox.Position-scfr.p).magnitude > .1 then
  753. local h = 5
  754. 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)
  755. if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
  756. 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)
  757. if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
  758. scfr = blcf
  759. elseif not scfr then
  760. scfr = blcf
  761. end
  762. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.5)*euler(.2,0,0),.4)
  763. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.5),.4)
  764. RW.C0=clerp(RW.C0,cf(1.2,0.5,-.3)*euler(.2,0,-.2)*euler(0,-.5,0),.4)
  765. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  766. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-.2),.4)
  767. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  768. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.5,0),.4)
  769. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.5,0),.4)
  770. end
  771. for i=0,1,0.2 do
  772. swait()
  773. local blcf = hitbox.CFrame*CFrame.new(0,.5,0)
  774. if scfr and (hitbox.Position-scfr.p).magnitude > .1 then
  775. local h = 5
  776. 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)
  777. if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
  778. 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)
  779. if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
  780. scfr = blcf
  781. elseif not scfr then
  782. scfr = blcf
  783. end
  784. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.5)*euler(.2,0,0),.4)
  785. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.5),.4)
  786. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(.6,0,-1)*euler(0,-.7,0),.4)
  787. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  788. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-.2),.4)
  789. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  790. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.5,0),.4)
  791. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.5,0),.4)
  792. end
  793. pcall(function()
  794. hitconasdf:disconnect()
  795. end)
  796. dmgstop()
  797. attack=false
  798. end
  799. end
  800.  
  801. function attacktwo()
  802. if attack==false and attacktype==2 then
  803. attacktype=3
  804. attack=true
  805. dmgstart(5,hitbox)
  806. for i=0,1,0.2 do
  807. swait()
  808. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.7)*euler(.2,0,0),.4)
  809. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.7),.4)
  810. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(1.57,0,-1)*euler(0,1.2,0),.4)
  811. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  812. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.8,0,-.4),.4)
  813. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  814. RH.C0=clerp(RH.C0,cf(.8,-1,.2)*euler(0,1.57,0)*euler(0,-.7,0),.4)
  815. LH.C0=clerp(LH.C0,cf(-.8,-1,.2)*euler(0,-1.57,0)*euler(0,-.7,0),.4)
  816. end
  817. so("http://roblox.com/asset/?id=161006212",hitbox,1,.8)
  818. hitconasdf = hitbox.Touched:connect(function(hit)
  819. local hum12 = hit.Parent:FindFirstChild("Humanoid")
  820. if hum12 and not hum12:IsDescendantOf(Character) then
  821. so('http://roblox.com/asset/?id=220025675',hitbox,1,3)
  822. hitconasdf:disconnect()
  823. end
  824. end)
  825. for i=0,1,0.3 do
  826. swait()
  827. local blcf = hitbox.CFrame*CFrame.new(0,.5,0)
  828. if scfr and (hitbox.Position-scfr.p).magnitude > .1 then
  829. local h = 5
  830. 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)
  831. if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
  832. 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)
  833. if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
  834. scfr = blcf
  835. elseif not scfr then
  836. scfr = blcf
  837. end
  838. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5)*euler(0,0,0),.4)
  839. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.5),.4)
  840. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.3,0,1)*euler(0,1.6,0),.4)
  841. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  842. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.2),.4)
  843. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  844. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.5,0),.4)
  845. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.5,0),.4)
  846. end
  847. for i=0,1,0.2 do
  848. swait()
  849. local blcf = hitbox.CFrame*CFrame.new(0,.5,0)
  850. if scfr and (hitbox.Position-scfr.p).magnitude > .1 then
  851. local h = 5
  852. 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)
  853. if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
  854. 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)
  855. if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
  856. scfr = blcf
  857. elseif not scfr then
  858. scfr = blcf
  859. end
  860. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5)*euler(.1,0,0),.4)
  861. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.5),.4)
  862. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1,0,.8)*euler(0,1.3,0),.4)
  863. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  864. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.2),.4)
  865. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  866. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.5,0),.4)
  867. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.5,0),.4)
  868. end
  869. pcall(function()
  870. hitconasdf:disconnect()
  871. end)
  872. dmgstop()
  873. attack=false
  874. end
  875. end
  876.  
  877. function attackthree()
  878. if attack==false and attacktype==3 then
  879. attacktype=1
  880. attack=true
  881. dmgstart(5,hitbox)
  882. for i=0,1,0.2 do
  883. swait()
  884. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.2),.4)
  885. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.3),.4)
  886. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1,0,1.2)*euler(0,-2,0),.4)
  887. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  888. LW.C0=clerp(LW.C0,cf(-1.4,0.5,-.2)*euler(.7,0,.1)*euler(0,-.4,0),.4)
  889. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  890. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.3,0),.4)
  891. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.3,0),.4)
  892. end
  893. so("http://roblox.com/asset/?id=161006212",hitbox,1,.9)
  894. hitconasdf = hitbox.Touched:connect(function(hit)
  895. local hum12 = hit.Parent:FindFirstChild("Humanoid")
  896. if hum12 and not hum12:IsDescendantOf(Character) then
  897. so('http://roblox.com/asset/?id=220025675',hitbox,1,3)
  898. hitconasdf:disconnect()
  899. end
  900. end)
  901. for i=0,1,0.1 do
  902. swait()
  903. local blcf = hitbox.CFrame*CFrame.new(0,.5,0)
  904. if scfr and (hitbox.Position-scfr.p).magnitude > .1 then
  905. local h = 5
  906. 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)
  907. if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
  908. 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)
  909. if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
  910. scfr = blcf
  911. elseif not scfr then
  912. scfr = blcf
  913. end
  914. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,-.6),.35)
  915. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.6),.35)
  916. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.2,0,-1.2)*euler(0,-1.2,0),.35)
  917. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.35)
  918. LW.C0=clerp(LW.C0,cf(-1.4,0.5,-.2)*euler(-.4,0,-.7)*euler(0,0,0),.35)
  919. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.35)
  920. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.6,0),.35)
  921. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.6,0),.35)
  922. end
  923. pcall(function()
  924. hitconasdf:disconnect()
  925. end)
  926. dmgstop()
  927. attack=false
  928. end
  929. end
  930.  
  931. function boom()
  932. attack=true
  933. for i=0,3,0.2 do
  934. swait()
  935. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.2),.4)
  936. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(math.rad(0),math.rad(0),math.rad(0)),.4)
  937. RW.C0=clerp(RW.C0,cf(1, 1, -.5)*euler(math.rad(145),math.rad(180),math.rad(45)),.4)
  938. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(math.rad(0),math.rad(0),math.rad(0)),.4)
  939. LW.C0=clerp(LW.C0,cf(-1, 1, -.5)*euler(math.rad(145),math.rad(0),math.rad(45)),.4)
  940. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(math.rad(0),math.rad(0),math.rad(0)),.4)
  941. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),.4)
  942. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),.4)
  943. end
  944. for i=0,1,0.07 do
  945. swait()
  946. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1+(0.04/2),0,0),.4)
  947. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)*euler(0.1,0,0),.4)
  948. RW.C0=clerp(RW.C0,cf(1, 1, -.5)*euler(math.rad(90),math.rad(180),math.rad(45)),.4)
  949. LW.C0=clerp(LW.C0,cf(-1, 1, -.5)*euler(math.rad(90),math.rad(0),math.rad(45)),.4)
  950. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.4)
  951. LH.C0=clerp(LH.C0,cf(-1.1,0.4,-0.8)*euler(-0.05,-1.57,0),.4)
  952. end
  953. attack=false
  954. end
  955.  
  956. local function CFrameFromTopBack(at, top, back)
  957. local right = top:Cross(back)
  958. return CFrame.new(at.x, at.y, at.z,
  959. right.x, top.x, back.x,
  960. right.y, top.y, back.y,
  961. right.z, top.z, back.z)
  962. end
  963.  
  964. function Triangle(a, b, c)
  965. local edg1 = (c-a):Dot((b-a).unit)
  966. local edg2 = (a-b):Dot((c-b).unit)
  967. local edg3 = (b-c):Dot((a-c).unit)
  968. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  969. a, b, c = a, b, c
  970. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  971. a, b, c = b, c, a
  972. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  973. a, b, c = c, a, b
  974. else
  975. assert(false, "unreachable")
  976. end
  977.  
  978. local len1 = (c-a):Dot((b-a).unit)
  979. local len2 = (b-a).magnitude - len1
  980. local width = (a + (b-a).unit*len1 - c).magnitude
  981.  
  982. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  983.  
  984. local list = {}
  985.  
  986. if len1 > 0.01 then
  987. local w1 = Instance.new('WedgePart', m)
  988. game:GetService("Debris"):AddItem(w1,5)
  989. w1.Material = "SmoothPlastic"
  990. w1.FormFactor = 'Custom'
  991. w1.BrickColor = BrickColor.new("Really black")
  992. w1.Transparency = 0
  993. w1.Reflectance = 0
  994. w1.Material = "SmoothPlastic"
  995. w1.CanCollide = false
  996. NoOutline(w1)
  997. local sz = Vector3.new(0.2, width, len1)
  998. w1.Size = sz
  999. local sp = Instance.new("SpecialMesh",w1)
  1000. sp.MeshType = "Wedge"
  1001. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1002. w1:BreakJoints()
  1003. w1.Anchored = true
  1004. w1.Parent = workspace
  1005. w1.Transparency = 0.7
  1006. table.insert(Effects,{w1,"Disappear",.01})
  1007. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1008. table.insert(list,w1)
  1009. end
  1010.  
  1011. if len2 > 0.01 then
  1012. local w2 = Instance.new('WedgePart', m)
  1013. game:GetService("Debris"):AddItem(w2,5)
  1014. w2.Material = "SmoothPlastic"
  1015. w2.FormFactor = 'Custom'
  1016. w2.BrickColor = BrickColor.new("Really black")
  1017. w2.Transparency = 0
  1018. w2.Reflectance = 0
  1019. w2.Material = "SmoothPlastic"
  1020. w2.CanCollide = false
  1021. NoOutline(w2)
  1022. local sz = Vector3.new(0.2, width, len2)
  1023. w2.Size = sz
  1024. local sp = Instance.new("SpecialMesh",w2)
  1025. sp.MeshType = "Wedge"
  1026. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1027. w2:BreakJoints()
  1028. w2.Anchored = true
  1029. w2.Parent = workspace
  1030. w2.Transparency = 0.7
  1031. table.insert(Effects,{w2,"Disappear",.01})
  1032. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1033. table.insert(list,w2)
  1034. end
  1035. return unpack(list)
  1036. end
  1037.  
  1038. function NoOutline(Part)
  1039. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1040. end
  1041.  
  1042.  
  1043. if #Effects>0 then
  1044. --table.insert(Effects,{prt,"Block1",delay})
  1045. for e=1,#Effects do
  1046. if Effects[e]~=nil then
  1047. --for j=1,#Effects[e] do
  1048. local Thing=Effects[e]
  1049. if Thing~=nil then
  1050. local Part=Thing[1]
  1051. local Mode=Thing[2]
  1052. local Delay=Thing[3]
  1053. local IncX=Thing[4]
  1054. local IncY=Thing[5]
  1055. local IncZ=Thing[6]
  1056. if Thing[1].Transparency<=1 then
  1057. if Thing[2]=="Block1" then
  1058. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1059. Mesh=Thing[1].Mesh
  1060. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1061. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1062. elseif Thing[2]=="Cylinder" then
  1063. Mesh=Thing[1].Mesh
  1064. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1065. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1066. elseif Thing[2]=="Blood" then
  1067. Mesh=Thing[1].Mesh
  1068. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  1069. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1070. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1071. elseif Thing[2]=="Elec" then
  1072. Mesh=Thing[1].Mesh
  1073. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  1074. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1075. elseif Thing[2]=="Disappear" then
  1076. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1077. end
  1078. else
  1079. Part.Parent=nil
  1080. table.remove(Effects,e)
  1081. end
  1082. end
  1083. --end
  1084. end
  1085. end
  1086. end
  1087.  
  1088. idleanim=.4
  1089.  
  1090. while true do
  1091. swait()
  1092. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1093. local velderp=RootPart.Velocity.y
  1094. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1095. if equipped==true or equipped==false then
  1096. if attack==false then
  1097. idle=idle+1
  1098. else
  1099. idle=0
  1100. end
  1101. if idle>=500 then
  1102. if attack==false then
  1103. --Sheath()
  1104. end
  1105. end
  1106. if Anim~='Fly' then
  1107. pcall(function()
  1108. RightLeg.Transparency=0
  1109. LeftLeg.Transparency=0
  1110. m.fakerleg:destroy()
  1111. m.fakelleg:destroy()
  1112. end)
  1113. end
  1114. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1115. Anim="Jump"
  1116. if attack==false then
  1117. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  1118. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1119. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1120. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,0.5),.3)
  1121. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1122. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
  1123. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1124. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  1125. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  1126. end
  1127. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1128. Anim="Fall"
  1129. if attack==false then
  1130. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
  1131. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1132. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1133. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.3,0,0.2),.3)
  1134. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1135. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3)
  1136. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1137. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  1138. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  1139. end
  1140. elseif torvel<1 and hitfloor~=nil then
  1141. Anim="Idle"
  1142. if attack==false then
  1143. --[[Neck.C0=clerp(Neck.C0,necko*angles(math.rad(-10),0,0),.3)
  1144. Neck.C1=clerp(Neck.C1,necko2*angles(0,0,0),.3)
  1145. RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(15),0,0),.3)
  1146. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(0,0,0.1),.3)
  1147. RW.C1=clerp(LW.C1,cf(0,0.5,0)*angles(0,0,0),.3)
  1148. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),0,math.rad(45)),.3)
  1149. LW.C1=clerp(LW.C1,cf(0,0.5,0)*angles(0,0,0),.3)
  1150. RH.C0=clerp(RH.C0,cf(1,-.5,-.5)*angles(math.rad(15),math.rad(90),0),.3)
  1151. RH.C1=clerp(RH.C1,RHC1,.3)
  1152. LH.C0=clerp(LH.C0,cf(1,-.5,0)*angles(math.rad(15),math.rad(-90),0),.3)
  1153. LH.C1=clerp(LH.C1,LHC1,.3)]]
  1154. idleanim=.4
  1155. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5-idleanim)*euler(0.4+(idleanim/2),0,-0.4),.3)
  1156. --RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1157. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-idleanim/2,0,0.4),.3)
  1158. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(-25),math.rad(-35),math.rad(45)),.3)
  1159. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(90),math.rad(0),math.rad(45)),.3)
  1160. RH.C0=clerp(RH.C0,cf(1,-1,-idleanim)*euler(-0.2-(idleanim/2),1.57,0),.3)
  1161. LH.C0=clerp(LH.C0,cf(-1,-.5+idleanim,0)*euler(0.5+(idleanim/2),-1.2,0)*euler(-.2,0,0),.3)
  1162. end
  1163. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  1164. Anim="Walk"
  1165. if attack==false then
  1166. idleanim=-1
  1167. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0.4,0,0),.3)
  1168. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  1169. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(-35),math.rad(45)),.3)
  1170. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(0),math.rad(35),math.rad(-45)),.3)
  1171. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.2,1.57,0),.3)
  1172. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0.5,-1.57,0)*euler(0,0,0),.3)
  1173. end
  1174. elseif torvel>=22 and hitfloor~=nil then
  1175. Anim="Run"
  1176. if attack==false then
  1177. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,0),.3)
  1178. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  1179. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(-35),math.rad(-35),math.rad(45)),.3)
  1180. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-35),math.rad(35),math.rad(-45)),.3)
  1181. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.2,1.57,0),.3)
  1182. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0.5,-1.57,0)*euler(0,0,0),.3)
  1183. end
  1184. end
  1185. end
  1186. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement