Advertisement
soins1

Untitled

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