Advertisement
Gametoy

female me

Jun 17th, 2017
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.88 KB | None | 0 0
  1. local Player = game.Players.localPlayer
  2. local Character = Player.Character
  3. local red = 255
  4. local green = 255
  5. local blue = 255
  6. local Humanoid = Character.Humanoid
  7. local mouse = Player:GetMouse()
  8. local m = Instance.new("Model", Character)
  9.  
  10. m.Name = "WeaponModel"
  11. local LeftArm = Character["Left Arm"]
  12. local RightArm = Character["Right Arm"]
  13. local LeftLeg = Character["Left Leg"]
  14. local RightLeg = Character["Right Leg"]
  15. local Head = Character.Head
  16. local Torso = Character.Torso
  17. local cam = game.Workspace.CurrentCamera
  18. local RootPart = Character.HumanoidRootPart
  19. local RootJoint = RootPart.RootJoint
  20. local equipped = false
  21. local attack = false
  22. local Anim = "Idle"
  23. local idle = 0
  24. local attacktype = 1
  25. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  26. local velocity = RootPart.Velocity.y
  27. local sine = 0
  28. local change = 1
  29. local grabbed = false
  30. local cn = CFrame.new
  31. local mr = math.rad
  32. local angles = CFrame.Angles
  33. local ud = UDim2.new
  34. local c3 = Color3.new
  35. local lim = 0
  36. local st = 0
  37. local necko = cn(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  38. local attacktype = 1
  39. local ZTarget, RocketTarget = nil, nil
  40. local euler = CFrame.fromEulerAnglesXYZ
  41. function clerp(a,b,t)
  42. local qa = {QuaternionFromCFrame(a)}
  43. local qb = {QuaternionFromCFrame(b)}
  44. local ax, ay, az = a.x, a.y, a.z
  45. local bx, by, bz = b.x, b.y, b.z
  46. local _t = 1-t
  47. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  48. end
  49.  
  50.  
  51.  
  52.  
  53. function QuaternionFromCFrame(cf)
  54. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  55. local trace = m00 + m11 + m22
  56. if trace > 0 then
  57. local s = math.sqrt(1 + trace)
  58. local recip = 0.5/s
  59. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  60. else
  61. local i = 0
  62. if m11 > m00 then
  63. i = 1
  64. end
  65. if m22 > (i == 0 and m00 or m11) then
  66. i = 2
  67. end
  68. if i == 0 then
  69. local s = math.sqrt(m00-m11-m22+1)
  70. local recip = 0.5/s
  71. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  72. elseif i == 1 then
  73. local s = math.sqrt(m11-m22-m00+1)
  74. local recip = 0.5/s
  75. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  76. elseif i == 2 then
  77. local s = math.sqrt(m22-m00-m11+1)
  78. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  79. end
  80. end
  81. end
  82.  
  83. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  84. local xs, ys, zs = x + x, y + y, z + z
  85. local wx, wy, wz = w*xs, w*ys, w*zs
  86. local xx = x*xs
  87. local xy = x*ys
  88. local xz = x*zs
  89. local yy = y*ys
  90. local yz = y*zs
  91. local zz = z*zs
  92. 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))
  93. end
  94.  
  95. function QuaternionSlerp(a, b, t)
  96. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  97. local startInterp, finishInterp;
  98. if cosTheta >= 0.0001 then
  99. if (1 - cosTheta) > 0.0001 then
  100. local theta = math.acos(cosTheta)
  101. local invSinTheta = 1/math.sin(theta)
  102. startInterp = math.sin((1-t)*theta)*invSinTheta
  103. finishInterp = math.sin(t*theta)*invSinTheta
  104. else
  105. startInterp = 1-t
  106. finishInterp = t
  107. end
  108. else
  109. if (1+cosTheta) > 0.0001 then
  110. local theta = math.acos(-cosTheta)
  111. local invSinTheta = 1/math.sin(theta)
  112. startInterp = math.sin((t-1)*theta)*invSinTheta
  113. finishInterp = math.sin(t*theta)*invSinTheta
  114. else
  115. startInterp = t-1
  116. finishInterp = t
  117. end
  118. end
  119. 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
  120. end
  121. rayCast = function(Position, Direction, Range, Ignore)
  122. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  123. end
  124. local v = game.Players.localPlayer
  125. local torso = v.Character.Torso
  126. wait(1)
  127. local p = Instance.new("Part", v.Character)
  128. p.Name = "kit"
  129. p.Anchored = true
  130. p.Transparency = 0
  131. p.Material = "Plastic"
  132. p.CanCollide = false
  133. p.TopSurface = 0
  134. p.BottomSurface = 0
  135. p.Size = Vector3.new(0.2, 0.2, 0.2)
  136. p.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  137. local msh = Instance.new("SpecialMesh", p)
  138. msh.Scale = Vector3.new(-2, 2, 2)
  139. msh.MeshId = "http://www.roblox.com/asset/?id=188635159"
  140. msh.TextureId = "http://www.roblox.com/asset/?id=188539332"
  141. msh.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  142. local pn = Instance.new("Part", v.Character.kit)
  143. pn.Name = "tail2"
  144. pn.Anchored = true
  145. pn.Transparency = 0
  146. pn.Material = "Plastic"
  147. pn.CanCollide = false
  148. pn.TopSurface = 0
  149. pn.BottomSurface = 0
  150. pn.Size = Vector3.new(5, 3, 3)
  151. pn.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  152. local mshn = Instance.new("SpecialMesh", pn)
  153. mshn.Scale = Vector3.new(2, 2, 2)
  154. mshn.MeshId = "http://www.roblox.com/asset/?id=188635159"
  155. mshn.TextureId = "http://www.roblox.com/asset/?id=188539332"
  156. mshn.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  157. local pn3 = Instance.new("Part", v.Character.kit)
  158. pn3.Name = "tail3"
  159. pn3.Anchored = true
  160. pn3.Transparency = 0
  161. pn3.Material = "Plastic"
  162. pn3.CanCollide = false
  163. pn3.TopSurface = 0
  164. pn3.BottomSurface = 0
  165. pn3.Size = Vector3.new(0.2, 0.2, 0.2)
  166. pn3.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  167. local mshn3 = Instance.new("SpecialMesh", pn3)
  168. mshn3.Scale = Vector3.new(2, 2, 2)
  169. mshn3.MeshId = "http://www.roblox.com/asset/?id=0"
  170. mshn3.TextureId = "http://www.roblox.com/asset/?id=0"
  171. mshn3.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  172. local pn4 = Instance.new("Part", v.Character.kit)
  173. pn4.Name = "tail4"
  174. pn4.Anchored = true
  175. pn4.Transparency = 0
  176. pn4.Material = "Plastic"
  177. pn4.CanCollide = false
  178. pn4.TopSurface = 0
  179. pn4.BottomSurface = 0
  180. pn4.Size = Vector3.new(0.2, 0.2, 0.2)
  181. pn4.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  182. local mshn4 = Instance.new("SpecialMesh", pn4)
  183. mshn4.Scale = Vector3.new(-2, 2, 2)
  184. mshn4.MeshId = "http://www.roblox.com/asset/?id=0"
  185. mshn4.TextureId = "http://www.roblox.com/asset/?id=0"
  186. mshn4.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  187. local pn5 = Instance.new("Part", v.Character.kit)
  188. pn5.Name = "tail5"
  189. pn5.Anchored = true
  190. pn5.Transparency = 0
  191. pn5.Material = "Plastic"
  192. pn5.CanCollide = false
  193. pn5.TopSurface = 0
  194. pn5.BottomSurface = 0
  195. pn5.Size = Vector3.new(0.2, 0.2, 0.2)
  196. pn5.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  197. local mshn5 = Instance.new("SpecialMesh", pn5)
  198. mshn5.Scale = Vector3.new(2, 2, 2)
  199. mshn5.MeshId = "http://www.roblox.com/asset/?id=0"
  200. mshn5.TextureId = "http://www.roblox.com/asset/?id=0"
  201. mshn5.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  202. local pn6 = Instance.new("Part", v.Character.kit)
  203. pn6.Name = "tail6"
  204. pn6.Anchored = true
  205. pn6.Transparency = 0
  206. pn6.Material = "Plastic"
  207. pn6.CanCollide = false
  208. pn6.TopSurface = 0
  209. pn6.BottomSurface = 0
  210. pn6.Size = Vector3.new(0.2, 0.2, 0.2)
  211. pn6.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  212. local mshn6 = Instance.new("SpecialMesh", pn6)
  213. mshn6.Scale = Vector3.new(2, 2, 2)
  214. mshn6.MeshId = "http://www.roblox.com/asset/?id=0"
  215. mshn6.TextureId = "http://www.roblox.com/asset/?id=0"
  216. mshn6.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  217. local pn7 = Instance.new("Part", v.Character.kit)
  218. pn7.Name = "tail7"
  219. pn7.Anchored = true
  220. pn7.Transparency = 0
  221. pn7.Material = "Plastic"
  222. pn7.CanCollide = false
  223. pn7.TopSurface = 0
  224. pn7.BottomSurface = 0
  225. pn7.Size = Vector3.new(0.2, 0.2, 0.2)
  226. pn7.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  227. local mshn7 = Instance.new("SpecialMesh", pn7)
  228. mshn7.Scale = Vector3.new(2, 2, 2)
  229. mshn7.MeshId = "http://www.roblox.com/asset/?id=0"
  230. mshn7.TextureId = "http://www.roblox.com/asset/?id=0"
  231. mshn7.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  232. local pn8 = Instance.new("Part", v.Character.kit)
  233. pn8.Name = "tail8"
  234. pn8.Anchored = true
  235. pn8.Transparency = 0
  236. pn8.Material = "Plastic"
  237. pn8.CanCollide = false
  238. pn8.TopSurface = 0
  239. pn8.BottomSurface = 0
  240. pn8.Size = Vector3.new(0.2, 0.2, 0.2)
  241. pn8.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  242. local mshn8 = Instance.new("SpecialMesh", pn8)
  243. mshn8.Scale = Vector3.new(-2, 2, 2)
  244. mshn8.MeshId = "http://www.roblox.com/asset/?id=0"
  245. mshn8.TextureId = "http://www.roblox.com/asset/?id=0"
  246. mshn8.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  247. local pn9 = Instance.new("Part", v.Character.kit)
  248. pn9.Name = "tail9"
  249. pn9.Anchored = true
  250. pn9.Transparency = 0
  251. pn9.Material = "Plastic"
  252. pn9.CanCollide = false
  253. pn9.TopSurface = 0
  254. pn9.BottomSurface = 0
  255. pn9.Size = Vector3.new(0.2, 0.2, 0.2)
  256. pn9.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  257. local mshn9 = Instance.new("SpecialMesh", pn9)
  258. mshn9.Scale = Vector3.new(-2, 2, 2)
  259. mshn9.MeshId = "http://www.roblox.com/asset/?id=0"
  260. mshn9.TextureId = "http://www.roblox.com/asset/?id=0"
  261. mshn9.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  262. local pn0 = Instance.new("Part", v.Character.kit)
  263. pn0.Name = "ears"
  264. pn0.Anchored = true
  265. pn0.Transparency = 0
  266. pn0.Material = "Plastic"
  267. pn0.CanCollide = false
  268. pn0.TopSurface = 0
  269. pn0.BottomSurface = 0
  270. pn0.Size = Vector3.new(0.2, 0.2, 0.2)
  271. pn0.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  272. local mshn0 = Instance.new("SpecialMesh", pn0)
  273. mshn0.Scale = Vector3.new(0.5, 0.5, 0.5)
  274. mshn0.MeshId = "http://www.roblox.com/asset/?id=361948302"
  275. mshn0.TextureId = "http://www.roblox.com/asset/?id=50657528"
  276. mshn0.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  277. p.Anchored = false
  278. local motor1 = Instance.new("Weld", p)
  279. motor1.Part0 = p
  280. motor1.Part1 = torso
  281. motor1.C0 = CFrame.new(2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  282. motor1.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  283. pn.Anchored = false
  284. local motor2 = Instance.new("Weld", pn)
  285. motor2.Part0 = pn
  286. motor2.Part1 = torso
  287. motor2.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  288. motor2.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  289. pn3.Anchored = false
  290. local motor3 = Instance.new("Weld", pn3)
  291. motor3.Part0 = pn3
  292. motor3.Part1 = torso
  293. motor3.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  294. motor3.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  295. pn4.Anchored = false
  296. local motor4 = Instance.new("Weld", pn4)
  297. motor4.Part0 = pn4
  298. motor4.Part1 = torso
  299. motor4.C0 = CFrame.new(2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  300. motor4.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  301. pn5.Anchored = false
  302. local motor5 = Instance.new("Weld", pn5)
  303. motor5.Part0 = pn5
  304. motor5.Part1 = torso
  305. motor5.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  306. motor5.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  307. pn6.Anchored = false
  308. local motor6 = Instance.new("Weld", pn6)
  309. motor6.Part0 = pn6
  310. motor6.Part1 = torso
  311. motor6.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  312. motor6.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  313. pn7.Anchored = false
  314. local motor7 = Instance.new("Weld", pn7)
  315. motor7.Part0 = pn7
  316. motor7.Part1 = torso
  317. motor7.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  318. motor7.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  319. pn8.Anchored = false
  320. local motor8 = Instance.new("Weld", pn8)
  321. motor8.Part0 = pn8
  322. motor8.Part1 = torso
  323. motor8.C0 = CFrame.new(2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  324. motor8.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  325. pn9.Anchored = false
  326. local motor9 = Instance.new("Weld", pn9)
  327. motor9.Part0 = pn9
  328. motor9.Part1 = torso
  329. motor9.C0 = CFrame.new(2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  330. motor9.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  331. pn0.Anchored = false
  332. local motor0 = Instance.new("Weld", pn0)
  333. motor0.Part0 = pn0
  334. motor0.Part1 = v.Character.Head
  335. motor0.C0 = CFrame.new(0, -0.8, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  336. game:GetService("RunService").Stepped:connect(function()
  337. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  338. velocity = RootPart.Velocity.y
  339. sine = sine + change
  340. local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  341. if equipped == true or equipped == false then
  342. if RootPart.Velocity.y > 1 and hit == nil then
  343. Anim = "Jump"
  344. if attack == false then
  345. 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)
  346. 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)
  347. 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)
  348. 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)
  349. 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)
  350. 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)
  351. 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)
  352. 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)
  353. 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)
  354. end
  355. else
  356. if RootPart.Velocity.y < -1 and hit == nil then
  357. Anim = "Fall"
  358. if attack == false then
  359. 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)
  360. 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)
  361. 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)
  362. 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)
  363. 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)
  364. 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)
  365. 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)
  366. 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)
  367. 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)
  368. end
  369. else
  370. if Torsovelocity < 1 and hit ~= nil then
  371. Anim = "Idle"
  372. if attack == false then
  373. change = 1
  374. 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)
  375. 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)
  376. 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)
  377. 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)
  378. 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)
  379. 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)
  380. 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)
  381. 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)
  382. 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)
  383. end
  384. else
  385. if Torsovelocity > 2 and hit ~= nil then
  386. Anim = "Walk"
  387. if attack == false then
  388. 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)
  389. 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)
  390. 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)
  391. 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)
  392. 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)
  393. 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)
  394. 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)
  395. 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)
  396. 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)
  397. end
  398. end
  399. end
  400. end
  401. end
  402. end
  403. end)
  404. ParticleSettings = {
  405. Lifetime = 1,
  406. Texture = 'rbxassetid://1209757190',
  407. --Color1 is for UpperBody and Accessories, Color2 is for Lower Body
  408. Color1 = ColorSequence.new(BrickColor.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b).Color,BrickColor.new('Black').Color),
  409. Color2 = ColorSequence.new(BrickColor.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b).Color,BrickColor.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b).Color),
  410. AllBody = true,
  411. UpperBodyOnly = false,
  412. LowerBodyOnly = false,
  413. Accessories = true,
  414. Extras = true,
  415. }
  416. TrailSettings = {
  417. Lifetime = 1,
  418. Texture = 'rbxassetid://1209757190',
  419. --Color1 is for UpperBody and Accessories, Color2 is for Lower Body
  420. Color1 = ColorSequence.new(BrickColor.new('Lime green').Color,BrickColor.new('Black').Color),
  421. Color2 = ColorSequence.new(BrickColor.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b).Color,BrickColor.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b).Color),
  422. AllBody = true,
  423. UpperBodyOnly = false,
  424. LowerBodyOnly = false,
  425. Accessories = true,
  426. Extras = true,
  427. }
  428. m = game:service'Players'.LocalPlayer:GetMouse()
  429. local p=game:service("Players").LocalPlayer
  430. Instance.new("ForceField", game.Players.LocalPlayer.Character). Visible = false
  431. local char=p.Character
  432. script.Parent=char
  433. local tor=char.Torso
  434. local hed=char.Head
  435. local hupart=char:FindFirstChild('HumanoidRootPart')
  436. local larm=char:FindFirstChild("Left Arm")
  437. local rarm=char:FindFirstChild("Right Arm")
  438. local lleg=char:FindFirstChild("Left Leg")
  439. local rleg=char:FindFirstChild("Right Leg")
  440. local hum=char.Humanoid
  441. local cam=workspace.CurrentCamera
  442. local root=char.HumanoidRootPart
  443. local mouse=p:GetMouse()
  444. local hb=game:service("RunService").Heartbeat
  445. local rs=game:service("RunService").Stepped
  446. hum.MaxHealth= math.huge
  447. hum.Health=hum.MaxHealth
  448. local Colorpart1 = Torso.BrickColor.r
  449. local Colorpart2 = Torso.BrickColor.g
  450. local Colorpart3 = Torso.BrickColor.b
  451. for i,v in pairs(char:GetChildren()) do
  452. if v.ClassName == "Accessory" then
  453. v:Destroy()
  454. end
  455. end
  456.  
  457.  
  458. local hat3 = Instance.new("Part",char)
  459. hat3.Transparency = 0.3
  460. hat3.CanCollide= false
  461. hat3.Name = 'aot'
  462. hat3.Size = Vector3.new(1,1,1)
  463. local light =Instance.new('PointLight',hat3)
  464. light.Color= Color3.new(255,255,255)
  465. light.Brightness = 1234
  466. light.Range = 5
  467. local image =Instance.new("SpecialMesh",hat3)
  468. image.Scale = Vector3.new(1,1,1)
  469. image.MeshId = 'http://www.roblox.com/asset/?id=1376459'
  470. image.TextureId ='rbxassetid://1982057222'
  471. image.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  472. local w = Instance.new("Weld",hat3)
  473. w.Part1=hat3
  474. w.Part0=tor
  475. w.C0=CFrame.new(0,4,0)
  476.  
  477. local hat4 = Instance.new("Part",char)
  478. hat4.Transparency = 0.2
  479. hat4.CanCollide= false
  480. hat4.Name = 'aot1'
  481. hat4.Size = Vector3.new(1,1,1)
  482. local image =Instance.new("SpecialMesh",hat4)
  483. image.Scale = Vector3.new(1, 1, 1)
  484. image.MeshId = 'http://www.roblox.com/asset/?id=1028713'
  485. image.TextureId ='rbxassetid://1982057222'
  486. image.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  487. local w = Instance.new("Weld",hat4)
  488. w.Part1=hat4
  489. w.Part0=hed
  490. w.C0=CFrame.new(0,.9,0)
  491.  
  492. local hat2 = Instance.new("Part",char)
  493. hat2.Transparency = 1
  494. hat2.CanCollide= false
  495. hat2.Size = Vector3.new(1,1,1)
  496. hat2.Name = 'r'
  497.  
  498. local w = Instance.new("Weld",hat2)
  499. w.Part1=hat2
  500. w.Part0=tor
  501. w.C0=CFrame.new(0,4.5,0)
  502.  
  503. local trail = Instance.new("Trail",char)
  504. trail.Color = TrailSettings.Color2
  505. trail.Lifetime = 0.5
  506. local attachment0 = Instance.new("Attachment",char.aot)
  507. attachment0.Name = "TrailAttachment0"
  508. local attachment1 = Instance.new("Attachment",char.r)
  509. attachment1.Name = "TrailAttachment1"
  510. trail.Attachment0 = attachment0
  511. trail.Attachment1 = attachment1
  512. local hat4 = Instance.new("Part",char)
  513. hat4.Transparency = 0
  514. hat4.CanCollide= false
  515. hat4.Name = 'aot1'
  516. hat4.Size = Vector3.new(1,1,1)
  517. local image =Instance.new("SpecialMesh",hat4)
  518. image.Scale = Vector3.new(1, 1, 1)
  519. image.MeshId = 'http://www.roblox.com/asset/?id=13070796'
  520. image.TextureId ='rbxassetid://13694600'
  521. local w = Instance.new("Weld",hat4)
  522. w.Part1=hat4
  523. w.Part0=hed
  524. w.C0=CFrame.new(0,-.4,0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement