soins1

Untitled

Oct 27th, 2017
213
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. p = game.Players.LocalPlayer
  411. char = p.Character
  412. local txt = Instance.new("BillboardGui", char)
  413. txt.Adornee = char .Head
  414. txt.Name = "_status"
  415. txt.Size = UDim2.new(2, 0, 1.2, 0)
  416. txt.StudsOffset = Vector3.new(-9, 8, 0)
  417. local text = Instance.new("TextLabel", txt)
  418. text.Size = UDim2.new(10, 0, 7, 0)
  419. text.FontSize = "Size24"
  420. text.TextScaled = true
  421. text.TextTransparency = 0
  422. text.BackgroundTransparency = 1
  423. text.TextTransparency = 0
  424. text.TextStrokeTransparency = 0
  425. text.Font = "Cartoon"
  426. text.TextStrokeColor3 = Color3.new(0,0,.50)
  427.  
  428. v=Instance.new("Part")
  429. v.Name = "ColorBrick"
  430. v.Parent=p.Character
  431. v.FormFactor="Symmetric"
  432. v.Anchored=true
  433. v.CanCollide=false
  434. v.BottomSurface="Smooth"
  435. v.TopSurface="Smooth"
  436. v.Size=Vector3.new(10,5,3)
  437. v.Transparency=1
  438. v.BrickColor=BrickColor.new(CV)
  439. v.Transparency=1
  440. text.TextColor3 = Color3.new(0,0,.50)
  441. v.Shape="Block"
  442. text.Text = "Chilled Fox"
  443. p = game.Players.LocalPlayer
  444. char = p.Character
  445. local txt = Instance.new("BillboardGui", char)
  446. txt.Adornee = char .Head
  447. txt.Name = "_status"
  448. txt.Size = UDim2.new(2, 0, 1.2, 0)
  449. txt.StudsOffset = Vector3.new(-9, 8, 0)
  450. local text = Instance.new("TextLabel", txt)
  451. text.Size = UDim2.new(10, 0, 7, 0)
  452. text.FontSize = "Size24"
  453. text.TextScaled = true
  454. text.TextTransparency = 0
  455. text.BackgroundTransparency = 1
  456. text.TextTransparency = 0
  457. text.TextStrokeTransparency = 0
  458. text.Font = "Cartoon"
  459. text.TextStrokeColor3 = Color3.new(0,0,.50)
  460.  
  461. v=Instance.new("Part")
  462. v.Name = "ColorBrick"
  463. v.Parent=p.Character
  464. v.FormFactor="Symmetric"
  465. v.Anchored=true
  466. v.CanCollide=false
  467. v.BottomSurface="Smooth"
  468. v.TopSurface="Smooth"
  469. v.Size=Vector3.new(10,5,3)
  470. v.Transparency=1
  471. v.BrickColor=BrickColor.new(CV)
  472. v.Transparency=1
  473. text.TextColor3 = Color3.new(0,0,.50)
  474. v.Shape="Block"
  475. text.Text = "Chilled Fox"
  476.  
  477. Player=game:GetService("Players").LocalPlayer
  478. local WEEB = Instance.new("Sound",Torso)
  479. WEEB.Volume=0
  480. WEEB.Pitch=0
  481. WEEB.SoundId="http://www.roblox.com/asset/?id=1009682087"
  482. WEEB.Looped=true
  483. wait()
  484. WEEB:play()
  485. Character=Player.Character
  486. PlayerGui=Player.PlayerGui
  487. Backpack=Player.Backpack
  488. Torso=Character.Torso
  489. Head=Character.Head
  490. Humanoid=Character.Humanoid
  491. m=Instance.new('Model',Character)
  492. LeftArm=Character["Left Arm"]
  493. LeftLeg=Character["Left Leg"]
  494. RightArm=Character["Right Arm"]
  495. RightLeg=Character["Right Leg"]
  496. LS=Torso["Left Shoulder"]
  497. LH=Torso["Left Hip"]
  498. RS=Torso["Right Shoulder"]
  499. RH=Torso["Right Hip"]
  500. Neck=Torso.Neck
  501. it=Instance.new
  502. attacktype=1
  503. vt=Vector3.new
  504. cf=CFrame.new
  505. euler=CFrame.fromEulerAnglesXYZ
  506. angles=CFrame.Angles
  507. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  508. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  509. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  510. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  511. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  512. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  513. RootPart=Character.HumanoidRootPart
  514. RootJoint=RootPart.RootJoint
  515. RootCF=euler(-1.57,0,3.14)
  516. attack = false
  517. attackdebounce = false
  518. deb=false
  519. equipped=true
  520. hand=false
  521. MMouse=nil
  522. combo=0
  523. mana=0
  524. cam=workspace.CurrentCamera
  525. RocketTarget=nil
  526. Targetting=false
  527. trispeed=.2
  528. attackmode='none'
  529. local idle=0
  530. local Anim="Idle"
  531. local Effects={}
  532. local gun=false
  533. local shoot=false
  534. local issprinting=false
  535. local memeing=false
  536. player=nil
  537. mouse=Player:GetMouse()
  538. --save shoulders
  539. RSH, LSH=nil, nil
  540. --welds
  541. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  542. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  543. LH=Torso["Left Hip"]
  544. RH=Torso["Right Hip"]
  545. TorsoColor=Torso.BrickColor
  546. function NoOutline(Part)
  547. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  548. end
  549. player=Player
  550. ch=Character
  551. RSH=ch.Torso["Right Shoulder"]
  552. LSH=ch.Torso["Left Shoulder"]
  553. --
  554. RSH.Parent=nil
  555. LSH.Parent=nil
  556. --
  557. RW.Name="Right Shoulder"
  558. RW.Part0=ch.Torso
  559. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  560. RW.C1=cf(0, 0.5, 0)
  561. RW.Part1=ch["Right Arm"]
  562. RW.Parent=ch.Torso
  563. --
  564. LW.Name="Left Shoulder"
  565. LW.Part0=ch.Torso
  566. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  567. LW.C1=cf(0, 0.5, 0)
  568. LW.Part1=ch["Left Arm"]
  569. LW.Parent=ch.Torso
  570.  
  571. if Humanoid:findFirstChild("Animate") then
  572. Humanoid:findFirstChild("Animate"):Destroy()
  573. elseif Character:findFirstChild("Animate") then
  574. Character:findFirstChild("Animate"):Destroy()
  575. end
  576.  
  577.  
  578. local WEEB = Instance.new("Sound",Torso)
  579. WEEB.Volume=0
  580. WEEB.Pitch=0
  581. WEEB.SoundId="http://www.roblox.com/asset/?id=1120289188"
  582. WEEB.Looped=true
  583. wait()
  584. WEEB:play()
  585.  
  586.  
  587. local Stats=Instance.new("BoolValue")
  588. Stats.Name="Stats"
  589. Stats.Parent=Character
  590. local Atk=Instance.new("NumberValue")
  591. Atk.Name="Damage"
  592. Atk.Parent=Stats
  593. Atk.Value=1
  594. local Def=Instance.new("NumberValue")
  595. Def.Name="Defense"
  596. Def.Parent=Stats
  597. Def.Value=1
  598. local Speed=Instance.new("NumberValue")
  599. Speed.Name="Speed"
  600. Speed.Parent=Stats
  601. Speed.Value=1
  602. local Mvmt=Instance.new("NumberValue")
  603. Mvmt.Name="Movement"
  604. Mvmt.Parent=Stats
  605. Mvmt.Value=1
  606.  
  607.  
  608. local donum=0
  609.  
  610. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  611. local fp=it("Part")
  612. fp.formFactor=formfactor
  613. fp.Parent=parent
  614. fp.Reflectance=reflectance
  615. fp.Transparency=transparency
  616. fp.CanCollide=false
  617. fp.Locked=true
  618. fp.BrickColor=brickcolor
  619. fp.Name=name
  620. fp.Size=size
  621. fp.Position=Torso.Position
  622. NoOutline(fp)
  623. fp.Material="SmoothPlastic"
  624. fp:BreakJoints()
  625. return fp
  626. end
  627.  
  628. function part2(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
  629. local fp = Instance.new("Part")
  630. fp.formFactor = formfactor
  631. fp.Parent = parent
  632. fp.Reflectance = reflectance
  633. fp.Transparency = transparency
  634. fp.CanCollide = false
  635. fp.Locked = true
  636. fp.BrickColor = BrickColor.new(tostring(brickcolor))
  637. fp.Name = name
  638. fp.Size = size
  639. fp.Position = Character.Torso.Position
  640. fp.Material = material
  641.  
  642. NoOutline(fp)
  643. return fp
  644. end
  645.  
  646. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  647. local mesh=it(Mesh)
  648. mesh.Parent=part
  649. if Mesh=="SpecialMesh" then
  650. mesh.MeshType=meshtype
  651. mesh.MeshId=meshid
  652. end
  653. mesh.Offset=offset
  654. mesh.Scale=scale
  655. return mesh
  656. end
  657.  
  658. function weld(parent,part0,part1,c0)
  659. local weld=it("Weld")
  660. weld.Parent=parent
  661. weld.Part0=part0
  662. weld.Part1=part1
  663. weld.C0=c0
  664. return weld
  665. end
  666.  
  667. function weld2(parent, part0, part1, c0, c1)
  668. local Weld = Instance.new("Weld")
  669. Weld.Parent = parent
  670. Weld.Part0 = part0
  671. Weld.Part1 = part1
  672. Weld.C0 = c0
  673. Weld.C1 = c1
  674.  
  675. return Weld
  676. end
  677.  
  678. local Color1=Torso.BrickColor
  679.  
  680. local bodvel=Instance.new("BodyVelocity")
  681. local bg=Instance.new("BodyGyro")
  682.  
  683. ArtificialHB = Instance.new("BindableEvent", script)
  684. ArtificialHB.Name = "Heartbeat"
  685.  
  686. script:WaitForChild("Heartbeat")
  687.  
  688. frame = 1 / 60
  689. tf = 0
  690. allowframeloss = true
  691. tossremainder = false
  692. lastframe = tick()
  693. script.Heartbeat:Fire()
  694.  
  695. game:GetService("RunService").Heartbeat:connect(function(s, p)
  696. tf = tf + s
  697. if tf >= frame then
  698. if allowframeloss then
  699. script.Heartbeat:Fire()
  700. lastframe = tick()
  701. else
  702. for i = 1, math.floor(tf / frame) do
  703. script.Heartbeat:Fire()
  704. end
  705. lastframe = tick()
  706. end
  707. if tossremainder then
  708. tf = 0
  709. else
  710. tf = tf - frame * math.floor(tf / frame)
  711. end
  712. end
  713. end)
  714.  
  715. function swait(num)
  716. if num == 0 or num == nil then
  717. ArtificialHB.Event:wait()
  718. else
  719. for i = 0, num do
  720. ArtificialHB.Event:wait()
  721. end
  722. end
  723. end
  724.  
  725.  
  726. so = function(id,par,vol,pit)
  727. coroutine.resume(coroutine.create(function()
  728. local sou = Instance.new("Sound",par or workspace)
  729. sou.Volume=vol
  730. sou.Pitch=pit or 1
  731. sou.SoundId=id
  732. swait()
  733. sou:play()
  734. game:GetService("Debris"):AddItem(sou,6)
  735. end))
  736. end
  737.  
  738. function clerp(a,b,t)
  739. local qa = {QuaternionFromCFrame(a)}
  740. local qb = {QuaternionFromCFrame(b)}
  741. local ax, ay, az = a.x, a.y, a.z
  742. local bx, by, bz = b.x, b.y, b.z
  743. local _t = 1-t
  744. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  745. end
  746.  
  747. function QuaternionFromCFrame(cf)
  748. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  749. local trace = m00 + m11 + m22
  750. if trace > 0 then
  751. local s = math.sqrt(1 + trace)
  752. local recip = 0.5/s
  753. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  754. else
  755. local i = 0
  756. if m11 > m00 then
  757. i = 1
  758. end
  759. if m22 > (i == 0 and m00 or m11) then
  760. i = 2
  761. end
  762. if i == 0 then
  763. local s = math.sqrt(m00-m11-m22+1)
  764. local recip = 0.5/s
  765. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  766. elseif i == 1 then
  767. local s = math.sqrt(m11-m22-m00+1)
  768. local recip = 0.5/s
  769. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  770. elseif i == 2 then
  771. local s = math.sqrt(m22-m00-m11+1)
  772. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  773. end
  774. end
  775. end
  776.  
  777. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  778. local xs, ys, zs = x + x, y + y, z + z
  779. local wx, wy, wz = w*xs, w*ys, w*zs
  780. local xx = x*xs
  781. local xy = x*ys
  782. local xz = x*zs
  783. local yy = y*ys
  784. local yz = y*zs
  785. local zz = z*zs
  786. 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))
  787. end
  788.  
  789. function QuaternionSlerp(a, b, t)
  790. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  791. local startInterp, finishInterp;
  792. if cosTheta >= 0.0001 then
  793. if (1 - cosTheta) > 0.0001 then
  794. local theta = math.acos(cosTheta)
  795. local invSinTheta = 1/math.sin(theta)
  796. startInterp = math.sin((1-t)*theta)*invSinTheta
  797. finishInterp = math.sin(t*theta)*invSinTheta
  798. else
  799. startInterp = 1-t
  800. finishInterp = t
  801. end
  802. else
  803. if (1+cosTheta) > 0.0001 then
  804. local theta = math.acos(-cosTheta)
  805. local invSinTheta = 1/math.sin(theta)
  806. startInterp = math.sin((t-1)*theta)*invSinTheta
  807. finishInterp = math.sin(t*theta)*invSinTheta
  808. else
  809. startInterp = t-1
  810. finishInterp = t
  811. end
  812. end
  813. 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
  814. end
  815.  
  816. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  817. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  818. end
  819.  
  820. Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) --bm1
  821. if hit.Parent == nil then
  822. return
  823. end
  824. local h = hit.Parent:FindFirstChild("Humanoid")
  825. for _, v in pairs(hit.Parent:children()) do
  826. if v:IsA("Humanoid") then
  827. h = v
  828. end
  829. end
  830. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  831. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  832. if hit.Parent.DebounceHit.Value == true then
  833. return
  834. end
  835. end
  836. if h.MaxHealth >= math.huge then
  837. hit:BreakJoints()
  838. end
  839. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  840. return
  841. end]]
  842. -- hs(hit,1.2)
  843. local c = Instance.new("ObjectValue")
  844. c.Name = "creator"
  845. c.Value = game:service("Players").LocalPlayer
  846. c.Parent = h
  847.  
  848. game:GetService("Debris"):AddItem(c, .5)
  849. if HitSound ~= nil and HitPitch ~= nil then
  850. so(HitSound, hit, 1, HitPitch)
  851. end
  852. local Damage = math.random(minim, maxim)
  853. -- h:TakeDamage(Damage)
  854. local blocked = false
  855. local block = hit.Parent:findFirstChild("Block")
  856. if block ~= nil then
  857. if block.className == "IntValue" then
  858. if block.Value > 0 then
  859. blocked = true
  860. block.Value = block.Value - 1
  861. print(block.Value)
  862. end
  863. end
  864. end
  865. if blocked == false then
  866. -- h:TakeDamage(Damage)
  867. h.Health = h.Health - Damage
  868. if Damage ~= 0 then
  869. 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)
  870. end
  871. else
  872. h.Health = h.Health - (Damage / 2)
  873. if Damage ~=0 then
  874. 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)
  875. end
  876. end
  877. if Type == "Knockdown" then
  878. local hum = hit.Parent.Humanoid
  879. hum.PlatformStand = true
  880. coroutine.resume(coroutine.create(function(HHumanoid)
  881. swait(1)
  882. HHumanoid.PlatformStand = false
  883. end), hum)
  884. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  885. local bodvol = Instance.new("BodyVelocity")
  886. bodvol.velocity = angle * knockback
  887. bodvol.P = 5000
  888. bodvol.maxForce = Vector3.new(8e+003, 8e+003, 8e+003)
  889. bodvol.Parent = hit
  890.  
  891. local rl = Instance.new("BodyAngularVelocity")
  892. rl.P = 3000
  893. rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000
  894. rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  895. rl.Parent = hit
  896.  
  897. game:GetService("Debris"):AddItem(bodvol, .5)
  898. game:GetService("Debris"):AddItem(rl, .5)
  899. elseif Type == "Plat" then
  900. local hum = hit.Parent.Humanoid
  901. hum.PlatformStand = true
  902. coroutine.resume(coroutine.create(function(HHumanoid)
  903. swait(2)
  904. HHumanoid.PlatformStand = false
  905. end), hum)
  906.  
  907. local rl = Instance.new("BodyAngularVelocity")
  908. rl.P = 3000
  909. rl.maxTorque = Vector3.new(100, 100, 100) * 500
  910. rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  911. rl.Parent = hit
  912.  
  913. game:GetService("Debris"):AddItem(rl, .5)
  914. elseif Type == "Normal" then
  915. local vp = Instance.new("BodyVelocity")
  916. vp.P = 500
  917. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  918. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  919.  
  920. if knockback > 0 then
  921. vp.Parent = hit.Parent.Torso
  922. end
  923. game:GetService("Debris"):AddItem(vp, .5)
  924. elseif Type == "Up" then
  925. local bodyVelocity = Instance.new("BodyVelocity")
  926. bodyVelocity.velocity = vt(0, 20, 0)
  927. bodyVelocity.P = 5000
  928. bodyVelocity.maxForce = Vector3.new(8e+003, 8e+003, 8e+003)
  929. bodyVelocity.Parent = hit
  930.  
  931. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  932. elseif Type == "Snare" then
  933. local bp = Instance.new("BodyPosition")
  934. bp.P = 2000
  935. bp.D = 100
  936. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  937. bp.position = hit.Parent.Torso.Position
  938. bp.Parent = hit.Parent.Torso
  939. game:GetService("Debris"):AddItem(bp, 1)
  940.  
  941. elseif Type == "Freeze" then
  942. local BodPos = Instance.new("BodyPosition")
  943. BodPos.P = 50000
  944. BodPos.D = 1000
  945. BodPos.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  946. BodPos.position = hit.Parent.Torso.Position
  947. BodPos.Parent = hit.Parent.Torso
  948.  
  949. local BodGy = Instance.new("BodyGyro")
  950. BodGy.maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge
  951. BodGy.P = 20e+003
  952. BodGy.Parent = hit.Parent.Torso
  953. BodGy.cframe = hit.Parent.Torso.CFrame
  954.  
  955. hit.Parent.Torso.Anchored = true
  956. coroutine.resume(coroutine.create(function(Part)
  957. swait(1.5)
  958. Part.Anchored = false
  959. end), hit.Parent.Torso)
  960. game:GetService("Debris"):AddItem(BodPos, 3)
  961. game:GetService("Debris"):AddItem(BodGy, 3)
  962.  
  963.  
  964. elseif Type=="Target" then
  965. if Targetting==false then
  966. ZTarget=hit.Parent.Torso
  967. coroutine.resume(coroutine.create(function(Part)
  968. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  969. swait(5)
  970. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  971. end),ZTarget)
  972. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  973. targetgui=Instance.new("BillboardGui")
  974. targetgui.Parent=ZTarget
  975. targetgui.Size=UDim2.new(10,100,10,100)
  976. targ=Instance.new("ImageLabel")
  977. targ.Parent=targetgui
  978. targ.BackgroundTransparency=1
  979. targ.Image="rbxassetid://4834067"
  980. targ.Size=UDim2.new(1,0,1,0)
  981. cam.CameraType="Scriptable"
  982. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  983. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  984. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  985. Targetting=true
  986. RocketTarget=ZTarget
  987. for i=1,Property do
  988. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  989. swait()
  990. end
  991. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  992. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  993. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  994. end
  995. Targetting=false
  996. RocketTarget=nil
  997. targetgui.Parent=nil
  998. cam.CameraType="Custom"
  999. end
  1000. end
  1001.  
  1002. local debounce = Instance.new("BoolValue")
  1003. debounce.Name = "DebounceHit"
  1004. debounce.Parent = hit.Parent
  1005. debounce.Value = true
  1006. game:GetService("Debris"):AddItem(debounce, Delay)
  1007. c = Instance.new("ObjectValue")
  1008. c.Name = "creator"
  1009. c.Value = Player
  1010. c.Parent = h
  1011. game:GetService("Debris"):AddItem(c, .5)
  1012. end
  1013. end
  1014.  
  1015. function ShowDamage2(Pos, Text, Time, Color)
  1016. local Rate = (1 / 30)
  1017. local Pos = (Pos or Vector3.new(0, 0, 0))
  1018. local Text = (Text or "")
  1019. local Time = (Time or 2)
  1020. local Color = (Color or Color3.new(1, 0, 0))
  1021. local EffectPart = part2("Custom", workspace, "Neon", 0, 1, BrickColor.new(Color), "Effect", vt(0, 0, 0))
  1022. EffectPart.Anchored = true
  1023. local BillboardGui = Instance.new("BillboardGui")
  1024. BillboardGui.Size = UDim2.new(3, 0, 3, 0)
  1025. BillboardGui.Adornee = EffectPart
  1026. BillboardGui.Parent = EffectPart
  1027.  
  1028. local TextLabel = Instance.new("TextLabel")
  1029. TextLabel.BackgroundTransparency = 1
  1030. TextLabel.Size = UDim2.new(1, 0, 1, 0)
  1031. TextLabel.Text = Text
  1032. TextLabel.TextColor3 = Color
  1033. TextLabel.TextScaled = true
  1034. TextLabel.Font = Enum.Font.ArialBold
  1035. TextLabel.Parent = BillboardGui
  1036.  
  1037. game.Debris:AddItem(EffectPart, (Time + 0.1))
  1038. EffectPart.Parent = game:GetService("Workspace")
  1039. delay(0, function()
  1040. local Frames = (Time / Rate)
  1041. for Frame = 1, Frames do
  1042. wait(Rate)
  1043. local Percent = (Frame / Frames)
  1044. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1045. TextLabel.TextTransparency = Percent
  1046. end
  1047. if EffectPart and EffectPart.Parent then
  1048. EffectPart:Destroy()
  1049. end
  1050. end)
  1051. end
  1052.  
  1053. function BlastEffect(brickcolor, cframe, x1, y1, z1, x2, y2, z2)
  1054. local prt = part2(3, workspace, "Neon", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1055. prt.Anchored = true
  1056. prt.CFrame = cframe
  1057. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  1058. coroutine.resume(coroutine.create(function()
  1059. for i = 0, 1, 0.05 do
  1060. wait()
  1061. prt.Transparency = i
  1062. msh.Scale = msh.Scale + vt(x2, y2, z2)
  1063. end
  1064. prt.Parent = nil
  1065. end))
  1066. end
  1067.  
  1068. function weld(parent, part0, part1, c0, c1)
  1069. local Weld = Instance.new("Weld")
  1070. Weld.Parent = parent
  1071. Weld.Part0 = part0
  1072. Weld.Part1 = part1
  1073. Weld.C0 = c0
  1074. Weld.C1 = c1
  1075.  
  1076. return Weld
  1077. end
  1078.  
  1079. function MagniDamage(Hit, Part, magni, mindam, maxdam, knock, Type)
  1080. for _, c in pairs(workspace:children()) do
  1081. local hum = c:findFirstChild("Humanoid")
  1082. if hum ~= nil then
  1083. local head = c:findFirstChild("Torso")
  1084. if head ~= nil then
  1085. local targ = head.Position - Part.Position
  1086. local mag = targ.magnitude
  1087. if mag <= magni and c.Name ~= Player.Name then
  1088. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, .2, 1, 3)
  1089. end
  1090. end
  1091. end
  1092. end
  1093. end
  1094.  
  1095. function MagicCircle(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1096. local prt = part2(3, workspace, "Neon", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1097. prt.Anchored = true
  1098. prt.CFrame = cframe
  1099. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  1100. game:GetService("Debris"):AddItem(prt, 2)
  1101. coroutine.resume(coroutine.create(function(Part, Mesh)
  1102. for i = 0, 1, delay do
  1103. swait()
  1104. Part.CFrame = Part.CFrame
  1105. Part.Transparency = i
  1106. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1107. end
  1108. Part.Parent = nil
  1109. end), prt, msh)
  1110. end
  1111.  
  1112. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1113. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt())
  1114. prt.Anchored=true
  1115. prt.CFrame=cframe
  1116. local msh = mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1117. game:GetService("Debris"):AddItem(prt,2)
  1118. coroutine.resume(coroutine.create(function(Part,Mesh)
  1119. for i=0,1,delay do
  1120. swait()
  1121. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1122. Part.Transparency=i
  1123. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1124. end
  1125. Part.Parent=nil
  1126. end),prt,msh)
  1127. end
  1128.  
  1129.  
  1130. user=game:service'Players'.localPlayer
  1131. char=user.Character
  1132. mouse=user:GetMouse()
  1133.  
  1134.  
  1135. local function weldBetween(a, b, name)
  1136. local weld = Instance.new("ManualWeld")
  1137. weld.Part0 = a
  1138. weld.Part1 = b
  1139. weld.C0 = CFrame.new()
  1140. weld.C1 = b.CFrame:inverse() * a.CFrame
  1141. weld.Parent = a
  1142. weld.Name=name or 'weldb1'
  1143. weld.Parent=m
  1144. return weld;
  1145. end
  1146.  
  1147.  
  1148. player=game.Players.localPlayer
  1149. char=player.Character
  1150. Effects={}
  1151. vt=Vector3.new
  1152. cf=CFrame.new
  1153. euler=CFrame.fromEulerAnglesXYZ
  1154. m=Instance.new("Model",char)
  1155.  
  1156. mouse.Button1Down:connect(function()
  1157. print("NEIN")
  1158. end)
  1159.  
  1160. local mdel = false
  1161.  
  1162. mouse.KeyDown:connect(function(k)
  1163. k=k:lower()
  1164. if k=='f' then
  1165. if attack==false then
  1166. ToggleMemes()
  1167. end
  1168. end
  1169. end)
  1170.  
  1171. function ToggleMemes()
  1172. if memeing == true and mdel == false then
  1173. memeing = false
  1174. issprinting=false
  1175. Humanoid.WalkSpeed = 15
  1176. mdel = true
  1177. for i = 1,0,-0.1 do
  1178. wait(0.05)
  1179. WEEB.Volume = i
  1180. end
  1181. WEEB.Pitch = 0
  1182. mdel = false
  1183. elseif memeing == false and mdel == false then
  1184. memeing = true
  1185. issprinting=true
  1186. Humanoid.WalkSpeed=13
  1187. WEEB.Pitch = 1
  1188. mdel = true
  1189. for i = 0,1,.1 do
  1190. wait(0.05)
  1191. WEEB.Volume = i
  1192. end
  1193. mdel = false
  1194. end
  1195. end
  1196.  
  1197. local function CFrameFromTopBack(at, top, back)
  1198. local right = top:Cross(back)
  1199. return CFrame.new(at.x, at.y, at.z,
  1200. right.x, top.x, back.x,
  1201. right.y, top.y, back.y,
  1202. right.z, top.z, back.z)
  1203. end
  1204.  
  1205. function Triangle(a, b, c)
  1206. local edg1 = (c-a):Dot((b-a).unit)
  1207. local edg2 = (a-b):Dot((c-b).unit)
  1208. local edg3 = (b-c):Dot((a-c).unit)
  1209. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1210. a, b, c = a, b, c
  1211. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1212. a, b, c = b, c, a
  1213. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1214. a, b, c = c, a, b
  1215. else
  1216. assert(false, "unreachable")
  1217. end
  1218.  
  1219. local len1 = (c-a):Dot((b-a).unit)
  1220. local len2 = (b-a).magnitude - len1
  1221. local width = (a + (b-a).unit*len1 - c).magnitude
  1222.  
  1223. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1224.  
  1225. local list = {}
  1226.  
  1227. if len1 > 0.01 then
  1228. local w1 = Instance.new('WedgePart', m)
  1229. game:GetService("Debris"):AddItem(w1,5)
  1230. w1.Material = "SmoothPlastic"
  1231. w1.FormFactor = 'Custom'
  1232. w1.BrickColor = TorsoColor
  1233. w1.Transparency = 0
  1234. w1.Reflectance = 0
  1235. w1.Material = "SmoothPlastic"
  1236. w1.CanCollide = false
  1237. NoOutline(w1)
  1238. local sz = Vector3.new(0.2, width, len1)
  1239. w1.Size = sz
  1240. local sp = Instance.new("SpecialMesh",w1)
  1241. sp.MeshType = "Wedge"
  1242. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1243. w1:BreakJoints()
  1244. w1.Anchored = true
  1245. w1.Parent = workspace
  1246. w1.Transparency = 0.7
  1247. table.insert(Effects,{w1,"Disappear",.01})
  1248. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1249. table.insert(list,w1)
  1250. end
  1251.  
  1252. if len2 > 0.01 then
  1253. local w2 = Instance.new('WedgePart', m)
  1254. game:GetService("Debris"):AddItem(w2,5)
  1255. w2.Material = "SmoothPlastic"
  1256. w2.FormFactor = 'Custom'
  1257. w2.BrickColor = TorsoColor
  1258. w2.Transparency = 0
  1259. w2.Reflectance = 0
  1260. w2.Material = "SmoothPlastic"
  1261. w2.CanCollide = false
  1262. NoOutline(w2)
  1263. local sz = Vector3.new(0.2, width, len2)
  1264. w2.Size = sz
  1265. local sp = Instance.new("SpecialMesh",w2)
  1266. sp.MeshType = "Wedge"
  1267. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1268. w2:BreakJoints()
  1269. w2.Anchored = true
  1270. w2.Parent = workspace
  1271. w2.Transparency = 0.7
  1272. table.insert(Effects,{w2,"Disappear",.01})
  1273. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1274. table.insert(list,w2)
  1275. end
  1276. return unpack(list)
  1277. end
  1278.  
  1279. function NoOutline(Part)
  1280. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1281. end
  1282.  
  1283. local sine = 0
  1284. local change = 1
  1285. local val = 0
  1286.  
  1287. if #Effects>0 then
  1288. --table.insert(Effects,{prt,"Block1",delay})
  1289. for e=1,#Effects do
  1290. if Effects[e]~=nil then
  1291. --for j=1,#Effects[e] do
  1292. local Thing=Effects[e]
  1293. if Thing~=nil then
  1294. local Part=Thing[1]
  1295. local Mode=Thing[2]
  1296. local Delay=Thing[3]
  1297. local IncX=Thing[4]
  1298. local IncY=Thing[5]
  1299. local IncZ=Thing[6]
  1300. if Thing[1].Transparency<=1 then
  1301. if Thing[2]=="Block1" then
  1302. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1303. Mesh=Thing[1].Mesh
  1304. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1305. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1306. elseif Thing[2]=="Cylinder" then
  1307. Mesh=Thing[1].Mesh
  1308. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1309. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1310. elseif Thing[2]=="Blood" then
  1311. Mesh=Thing[1].Mesh
  1312. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  1313. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1314. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1315. elseif Thing[2]=="Elec" then
  1316. Mesh=Thing[1].Mesh
  1317. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  1318. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1319. elseif Thing[2]=="Disappear" then
  1320. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1321. end
  1322. else
  1323. Part.Parent=nil
  1324. table.remove(Effects,e)
  1325. end
  1326. end
  1327. --end
  1328. end
  1329. end
  1330. end
  1331.  
  1332. cn = CFrame.new
  1333. local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1334. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  1335. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  1336. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  1337.  
  1338. local mananum=0
  1339. while true do
  1340. swait()
  1341. sine = sine + change
  1342. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1343. local velderp=RootPart.Velocity.y
  1344. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1345. if equipped==true or equipped==false then
  1346. if attack==false then
  1347. idle=idle+1
  1348. else
  1349. idle=0
  1350. end
  1351. if idle>=500 then
  1352. if attack==false then
  1353. --Sheath()
  1354. end
  1355. end
  1356. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1357. Anim="Jump"
  1358. if attack==false then
  1359. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  1360. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1361. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1362. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,0.5),.3)
  1363. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1364. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
  1365. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1366. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.3)
  1367. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.3)
  1368. end
  1369. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1370. Anim="Fall"
  1371. if attack==false then
  1372. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
  1373. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1374. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1375. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.3,0,0.2),.3)
  1376. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1377. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3)
  1378. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1379. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.3)
  1380. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.3)
  1381. end
  1382. elseif torvel<1 and hitfloor~=nil then
  1383. Anim="Idle"
  1384. if attack==false then
  1385. 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)
  1386. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(-5)), .3)
  1387. 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)
  1388. 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)
  1389. 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)
  1390. 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)
  1391. end
  1392. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  1393. Anim="Walk"
  1394. if attack==false then
  1395. 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)
  1396. 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)
  1397. 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)
  1398. 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)
  1399. 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)
  1400. 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)
  1401. end
  1402. elseif torvel>=22 and issprinting==true and hitfloor~=nil then
  1403. Anim="Run"
  1404. if attack==false then
  1405. 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)
  1406. 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)
  1407. 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)
  1408. 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)
  1409. 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)
  1410. 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)
  1411. end
  1412. end
  1413. end
  1414. end
Advertisement
Add Comment
Please, Sign In to add comment