scriptss

FE KRYSTAL DANCE

Aug 7th, 2020
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 34.85 KB | None | 0 0
  1. math.randomseed(tick())
  2. Player = game.Players.LocalPlayer
  3. Character = Player.Character
  4. hum = Character.Humanoid
  5. LeftArm = Character["Left Arm"]
  6. LeftLeg = Character["Left Leg"]
  7. RightArm = Character["Right Arm"]
  8. RightLeg = Character["Right Leg"]
  9. Root = Character["HumanoidRootPart"]
  10. Torso = Character["Torso"]
  11. Neck = Torso["Neck"]
  12. mouse = Player:GetMouse()
  13. walking = false
  14. jumping = false
  15. attacking = false
  16. firsttime = false
  17. tauntdebounce = false
  18. position = nil
  19. MseGuide = true
  20. running = false
  21. settime = 0
  22. sine = 0
  23. t = 0
  24. ws = 18
  25. change = 1
  26. combo1 = true
  27. dancing = false
  28. equip = false
  29. dgs = 75
  30. combo2 = false
  31. switch1 = true
  32. switch2 = false
  33. firsttime2 = false
  34. combo3 = false
  35. gunallowance = false
  36. shooting = false
  37. RunSrv = game:GetService("RunService")
  38. RenderStepped = game:GetService("RunService").RenderStepped
  39. removeuseless = game:GetService("Debris")
  40.  
  41. screenGui = Instance.new("ScreenGui")
  42. screenGui.Parent = script.Parent
  43.  
  44. local TORSOLERP = Instance.new("ManualWeld")
  45. TORSOLERP.Parent = Root
  46. TORSOLERP.Part0 = Torso
  47. TORSOLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  48.  
  49. local ROOTLERP = Instance.new("ManualWeld")
  50. ROOTLERP.Parent = Root
  51. ROOTLERP.Part0 = Root
  52. ROOTLERP.Part1 = Torso
  53. ROOTLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  54.  
  55. local RIGHTARMLERP = Instance.new("ManualWeld")
  56. RIGHTARMLERP.Parent = RightArm
  57. RIGHTARMLERP.Part0 = RightArm
  58. RIGHTARMLERP.Part1 = Torso
  59. RIGHTARMLERP.C0 = CFrame.new(-1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  60.  
  61. local LEFTARMLERP = Instance.new("ManualWeld")
  62. LEFTARMLERP.Parent = LeftArm
  63. LEFTARMLERP.Part0 = LeftArm
  64. LEFTARMLERP.Part1 = Torso
  65. LEFTARMLERP.C0 = CFrame.new(1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  66.  
  67. local RIGHTLEGLERP = Instance.new("ManualWeld")
  68. RIGHTLEGLERP.Parent = RightLeg
  69. RIGHTLEGLERP.Part0 = RightLeg
  70. RIGHTLEGLERP.Part1 = Torso
  71. RIGHTLEGLERP.C0 = CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  72.  
  73. local LEFTLEGLERP = Instance.new("ManualWeld")
  74. LEFTLEGLERP.Parent = LeftLeg
  75. LEFTLEGLERP.Part0 = LeftLeg
  76. LEFTLEGLERP.Part1 = Torso
  77. LEFTLEGLERP.C0 = CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  78.  
  79. local function weldBetween(a, b)
  80. local weld = Instance.new("ManualWeld", a)
  81. weld.Part0 = a
  82. weld.Part1 = b
  83. weld.C0 = a.CFrame:inverse() * b.CFrame
  84. return weld
  85. end
  86.  
  87. coroutine.wrap(function()
  88. while wait() do
  89. hum.WalkSpeed = ws
  90. end
  91. end)()
  92.  
  93. coroutine.wrap(function()
  94. for i, v in pairs(Character:GetChildren()) do
  95. if v.Name == "Animate" then
  96. v:Remove()
  97. end
  98. end
  99. end)()
  100.  
  101. ArtificialHB = Instance.new("BindableEvent", script)
  102. ArtificialHB.Name = "Heartbeat"
  103. script:WaitForChild("Heartbeat")
  104.  
  105. frame = 1 / 60
  106. tf = 0
  107. allowframeloss = false
  108. tossremainder = false
  109.  
  110. lastframe = tick()
  111. script.Heartbeat:Fire()
  112.  
  113. game:GetService("RunService").Heartbeat:connect(function(s, p)
  114. tf = tf + s
  115. if tf >= frame then
  116. if allowframeloss then
  117. script.Heartbeat:Fire()
  118. lastframe = tick()
  119. else
  120. for i = 1, math.floor(tf / frame) do
  121. script.Heartbeat:Fire()
  122. end
  123. lastframe = tick()
  124. end
  125. if tossremainder then
  126. tf = 0
  127. else
  128. tf = tf - frame * math.floor(tf / frame)
  129. end
  130. end
  131. end)
  132.  
  133. function swait(num)
  134. if num == 0 or num == nil then
  135. game:service("RunService").Stepped:wait()
  136. else
  137. for i = 0, num do
  138. game:service("RunService").Stepped:wait()
  139. end
  140. end
  141. end
  142.  
  143. mouse.KeyDown:connect(function(Press)
  144. Press = Press:lower()
  145. if Press == 'k' then
  146. if dancing then
  147. dancing = false
  148. else
  149. dancing = true
  150. ws = 0
  151. change = .5
  152. attacking = true
  153. lol90 = 0
  154. coroutine.wrap(function()
  155. while dancing do
  156. lol90 = lol90 + 11
  157. ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(1 * math.sin(sine / 10), .1 + .8 * math.sin(sine / 3), 0) * CFrame.Angles(math.rad(0), math.rad(0 * math.sin(sine / 8)), math.rad(8 * math.sin(sine / 7))), .25)
  158. ROOTLERP.C1 = ROOTLERP.C1:lerp(CFrame.new(0 * math.sin(sine / 14), 0, 0) * CFrame.Angles(math.rad(0), math.rad(lol90), 0), .25)
  159. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.4, 1.45, 0) * CFrame.Angles(math.rad(180), math.rad(-5 * math.sin(sine / 3)), math.rad(-6 * math.sin(sine / 3))), 0.25)
  160. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.4, 1.45, 0) * CFrame.Angles(math.rad(180), math.rad(5 * math.sin(sine / 3)), math.rad(6 * math.sin(sine / 3))), 0.25)
  161. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 , 0) * CFrame.Angles(0, math.rad(0), math.rad(-10 + 5 * math.sin(sine / 3))), 0.25)
  162. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, 0) * CFrame.Angles(0, math.rad(0), math.rad(10 - 5 * math.sin(sine / 3))), 0.25)
  163. swait(0)
  164. end
  165. ws = 18
  166. ROOTLERP.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  167. attacking = false
  168. end)()
  169. end
  170. end
  171. end)
  172.  
  173. mouse.KeyDown:connect(function(Press)
  174. Press = Press:lower()
  175. if Press == 'j' then
  176. if dancing then
  177. dancing = false
  178. else
  179. dancing = true
  180. ws = 7
  181. change = .5
  182. attacking = true
  183. g1 = Instance.new("BodyGyro", Root)
  184. g1.D = 175
  185. g1.P = 20000
  186. g1.MaxTorque = Vector3.new(0, 0, 0)
  187. robuxpile = Instance.new("Part", Torso)
  188. robuxpile.Size = Vector3.new(1, 1, 1)
  189. robuxpile.CFrame = LeftArm.CFrame
  190. robuxpile.CanCollide = false
  191. robuxpileweld = Instance.new("Weld", robuxpile)
  192. robuxpileweld.Part0 = robuxpile
  193. robuxpileweld.Part1 = Torso
  194. robuxpileweld.C0 = robuxpile.CFrame:inverse() * LeftArm.CFrame * CFrame.new(1, -.7, 1.5)
  195. mrobuxpile = Instance.new("SpecialMesh", robuxpile)
  196. mrobuxpile.MeshType = "FileMesh"
  197. mrobuxpile.Scale = Vector3.new(0.85, .85, .9)
  198. mrobuxpile.MeshId, mrobuxpile.TextureId = 'http://www.roblox.com/asset/?id=1285245', 'http://www.roblox.com/asset/?id=8587344'
  199. coroutine.wrap(function()
  200. coroutine.wrap(function()
  201. while wait(.085) do
  202. if not dancing then
  203. break
  204. end
  205. local robux = Instance.new("Part", Torso)
  206. robux.CFrame = robuxpile.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  207. robux.CanCollide = false
  208. robux.Size = Vector3.new(1, 1, 1)
  209. removeuseless:AddItem(robux, 6)
  210. mrobux = Instance.new("SpecialMesh", robux)
  211. mrobux.MeshType = "FileMesh"
  212. mrobux.Scale = Vector3.new(1.25, 1.25, 1.25)
  213. mrobux.MeshId, mrobux.TextureId = 'http://www.roblox.com/asset/?id=667285348', 'http://www.roblox.com/asset/?id=665939136'
  214. bov = Instance.new("BodyVelocity", robux)
  215. bov.maxForce = Vector3.new(99999, 99999, 99999)
  216. robux.CFrame = CFrame.new(robux.Position, mouse.Hit.p) * CFrame.Angles(math.rad(math.random(-5, 5)), math.rad(0), math.rad(math.random(-180, 180)))
  217. bov.velocity = robux.CFrame.lookVector * math.random(40, 100)
  218. removeuseless:AddItem(bov, .15)
  219. end
  220. end)()
  221. while dancing do
  222. ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(0, -.3, 0) * CFrame.Angles(math.rad(20), math.rad(0 * math.sin(sine / 8)), math.rad(0)), .25)
  223. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1, .5 + .5 * math.sin(sine / 2), .5) * CFrame.Angles(math.rad(-97), math.rad(40 - 20 * math.sin(sine / 2)), math.rad(0)), 0.25)
  224. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1, .5, .5) * CFrame.Angles(math.rad(-87), math.rad(-20), math.rad(0)), 0.25)
  225. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 , .5) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(-10)), 0.25)
  226. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, .5) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(10)), 0.25)
  227. swait(0)
  228. end
  229. ws = 18
  230. removeuseless:AddItem(g1, 0)
  231. robuxpile:Remove()
  232. attacking = false
  233. end)()
  234. end
  235. end
  236. end)
  237.  
  238. mouse.KeyDown:connect(function(Press)
  239. Press = Press:lower()
  240. if Press == 'h' then
  241. if dancing then
  242. dancing = false
  243. else
  244. dancing = true
  245. ws = 0
  246. change = .5
  247. attacking = true
  248. coroutine.wrap(function()
  249. while dancing do
  250. for i = 1, 15 do
  251. if not dancing then
  252. break
  253. end
  254. ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(.5, -.4 + .1 * math.sin(sine / 4), 0) * CFrame.Angles(math.rad(0), math.rad(20 * math.sin(sine / 8)), math.rad(20)), .25)
  255. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.9, .65 + .4 * math.sin(sine / 12), 1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine / 12)), math.rad(50 + 3 * math.sin(sine / 12)), math.rad(3 - 1 * math.sin(sine / 12))), .3)
  256. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.9, .65 + .4 * math.sin(sine / 12), 1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine / 12)), math.rad(-50 - 3 * math.sin(sine / 12)), math.rad(-3 + 1 * math.sin(sine / 12))), .3)
  257. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(0.25, 2.05, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-35)), 0.25)
  258. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.31, 2.05, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(14)), 0.25)
  259. swait(0)
  260. end
  261. for i = 1, 15 do
  262. if not dancing then
  263. break
  264. end
  265. ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(0, -.1 * math.sin(sine / 4), 0) * CFrame.Angles(math.rad(0), math.rad(20 * math.sin(sine / 8)), math.rad(0)), .25)
  266. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.9, .65 + .4 * math.sin(sine / 12), 1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine / 12)), math.rad(50 + 3 * math.sin(sine / 12)), math.rad(3 - 1 * math.sin(sine / 12))), .3)
  267. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.9, .65 + .4 * math.sin(sine / 12), 1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine / 12)), math.rad(-50 - 3 * math.sin(sine / 12)), math.rad(-3 + 1 * math.sin(sine / 12))), .3)
  268. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.25, .7, 1.5) * CFrame.Angles(math.rad(72), math.rad(25), math.rad(-2)), 0.25)
  269. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, 0) * CFrame.Angles(0, math.rad(0), math.rad(10)), 0.25)
  270. swait(0)
  271. end
  272. for i = 1, 15 do
  273. if not dancing then
  274. break
  275. end
  276. ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(-.5, -.4 + .1 * math.sin(sine / 4), 0) * CFrame.Angles(math.rad(0), math.rad(20 * math.sin(sine / 8)), math.rad(-20)), .25)
  277. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.9, .65 + .4 * math.sin(sine / 12), 1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine / 12)), math.rad(50 + 3 * math.sin(sine / 12)), math.rad(3 - 1 * math.sin(sine / 12))), .3)
  278. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.9, .65 + .4 * math.sin(sine / 12), 1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine / 12)), math.rad(-50 - 3 * math.sin(sine / 12)), math.rad(-3 + 1 * math.sin(sine / 12))), .3)
  279. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 , 0) * CFrame.Angles(0, math.rad(0), math.rad(-10)), 0.25)
  280. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(-0.25, 2.05, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(35)), 0.25)
  281. swait(0)
  282. end
  283. for i = 1, 15 do
  284. if not dancing then
  285. break
  286. end
  287. ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(-.5, -.1, 0) * CFrame.Angles(math.rad(0), math.rad(20 * math.sin(sine / 8)), math.rad(0)), .25)
  288. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.9, .65 + .4 * math.sin(sine / 12), 1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine / 12)), math.rad(50 + 3 * math.sin(sine / 12)), math.rad(3 - 1 * math.sin(sine / 12))), .3)
  289. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.9, .65 + .4 * math.sin(sine / 12), 1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine / 12)), math.rad(-50 - 3 * math.sin(sine / 12)), math.rad(-3 + 1 * math.sin(sine / 12))), .3)
  290. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.31, 2.05, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-14)), 0.3)
  291. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.25, .7, 1.5) * CFrame.Angles(math.rad(72), math.rad(-25), math.rad(-2)), 0.25)
  292. swait(0)
  293. end
  294. swait(0)
  295. end
  296. ws = 18
  297. attacking = false
  298. end)()
  299. end
  300. end
  301. end)
  302.  
  303. mouse.KeyDown:connect(function(Press)
  304. Press = Press:lower()
  305. if Press == 'g' then
  306. if dancing then
  307. dancing = false
  308. else
  309. dancing = true
  310. ws = 0
  311. change = .5
  312. attacking = true
  313. coroutine.wrap(function()
  314. coroutine.wrap(function()
  315. while dancing do
  316. ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(2 * math.sin(sine / 9), -.4 + .1 * math.sin(sine / 3), 0) * CFrame.Angles(math.rad(0), math.rad(20 * math.sin(sine / 9)), 0), .25)
  317. swait(0)
  318. end
  319. end)()
  320. while dancing do
  321. for i = 1, 28 do
  322. if not dancing then
  323. break
  324. end
  325. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.9, .65 + .4 * math.sin(sine / 12), 1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine / 12)), math.rad(50 + 3 * math.sin(sine / 12)), math.rad(3 - 1 * math.sin(sine / 12))), .2)
  326. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.2, 1.5, 0) * CFrame.Angles(math.rad(180 - 7 * math.sin(sine / 3)), math.rad(7 * math.sin(sine / 3)), math.rad(7 * math.sin(sine / 3))), 0.2)
  327. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, .7, 1) * CFrame.Angles(math.rad(75 - 10 * math.sin(sine / 2)), math.rad(0), math.rad(0)), 0.25)
  328. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.31, 2.05, -.1) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-2)), 0.3)
  329. swait(0)
  330. end
  331. for i = 1, 28 do
  332. if not dancing then
  333. break
  334. end
  335. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.9, .65 + .4 * math.sin(sine / 12), 1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine / 12)), math.rad(50 + 3 * math.sin(sine / 12)), math.rad(3 - 1 * math.sin(sine / 12))), .2)
  336. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.2, 1.5, 0) * CFrame.Angles(math.rad(180 - 7 * math.sin(sine / 3)), math.rad(7 * math.sin(sine / 3)), math.rad(7 * math.sin(sine / 3))), 0.2)
  337. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.31, 2.05, .1) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-8)), 0.25)
  338. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, .7, 1.1) * CFrame.Angles(math.rad(75 - 10 * math.sin(sine / 2)), math.rad(0), math.rad(-2)), 0.25)
  339. swait(0)
  340. end
  341. swait(0)
  342. end
  343. ws = 18
  344. attacking = false
  345. end)()
  346. end
  347. end
  348. end)
  349.  
  350. mouse.KeyDown:connect(function(Press)
  351. Press = Press:lower()
  352. if Press == 'f' then
  353. if dancing then
  354. dancing = false
  355. else
  356. dancing = true
  357. ws = 7
  358. change = .5
  359. attacking = true
  360. coroutine.wrap(function()
  361. while dancing do
  362. ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(0, -.4, 0) * CFrame.Angles(math.rad(20 + 5 * math.sin(sine / 2)), math.rad(10 * math.sin(sine / 4)), 0), .25)
  363. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5, .89 - .4 * -math.sin(sine / 2), .49) * CFrame.Angles(math.rad(-70 + 20 * -math.sin(sine / 2)), 0, math.rad(0)), .25)
  364. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5, .89 - .4 * math.sin(sine / 2), .49) * CFrame.Angles(math.rad(-70 + 20 * math.sin(sine / 2)), 0, math.rad(0)), .25)
  365. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.33, 2, -.2 + .3 * math.sin(sine / 2)) * CFrame.Angles(math.rad(-20 - 20 * -math.sin(sine / 2)), math.rad(0), math.rad(-8)), 0.25)
  366. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.33, 2.0, -.2 - .3 * math.sin(sine / 2)) * CFrame.Angles(math.rad(-20 - 20 * math.sin(sine / 2)), math.rad(0), math.rad(8)), 0.25)
  367. swait(0)
  368. end
  369. ws = 18
  370. attacking = false
  371. end)()
  372. end
  373. end
  374. end)
  375.  
  376. mouse.KeyDown:connect(function(Press)
  377. Press = Press:lower()
  378. if Press == 'p' then
  379. if dancing then
  380. dancing = false
  381. else
  382. dancing = true
  383. ws = 0
  384. change = .5
  385. attacking = true
  386. barrelspin = 0
  387. barrol = Instance.new("Part", Torso)
  388. barrol.Size = Vector3.new(1, 1, 1)
  389. barrol.CFrame = Torso.CFrame
  390. barrol.CanCollide = false
  391. barrolweld = Instance.new("Weld", barrol)
  392. barrolweld.Part0 = barrol
  393. barrolweld.Part1 = Torso
  394. barrolweld.C0 = barrol.CFrame:inverse() * Torso.CFrame * CFrame.new(0, 0, 0)
  395. mbarrol = Instance.new("SpecialMesh", barrol)
  396. mbarrol.MeshType = "FileMesh"
  397. mbarrol.Scale = Vector3.new(1.05, .95, 1.05)
  398. mbarrol.MeshId, mbarrol.TextureId = 'http://www.roblox.com/asset/?id=29873142', 'http://www.roblox.com/asset/?id=31082268'
  399. coroutine.wrap(function()
  400. while dancing do
  401. ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(5 * math.sin(sine / 8), -1.8, 0) * CFrame.Angles(math.rad(-90), math.rad(180 * math.sin(sine / 8)), 0), .25)
  402. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5, 1.5, 0) * CFrame.Angles(math.rad(180), 0, math.rad(0)), .25)
  403. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5, 1.5, 0) * CFrame.Angles(math.rad(180), 0, math.rad(0)), .25)
  404. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(.5, 2, 0) * CFrame.Angles(0, 0, 0), .25)
  405. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.5, 2, 0) * CFrame.Angles(0, 0, 0), .25)
  406. swait(0)
  407. end
  408. ws = 18
  409. barrol:Destroy()
  410. attacking = false
  411. end)()
  412. end
  413. end
  414. end)
  415.  
  416. mouse.KeyDown:connect(function(Press)
  417. Press = Press:lower()
  418. if Press == 'q' then
  419. if dancing then
  420. dancing = false
  421. else
  422. dancing = true
  423. ws = 0
  424. change = .5
  425. spinningmove = 0
  426. attacking = true
  427. coroutine.wrap(function()
  428. while dancing do
  429. spinningmove = spinningmove + 10
  430. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.52, 1.9, -.35) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)), .2)
  431. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.52, 1.9, .35) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), .2)
  432. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(.2 * math.sin(sine / 3), -.52, .2 * math.sin(sine / 4)) * CFrame.Angles(math.rad(180), math.rad(spinningmove), math.rad(15 * math.sin(sine / 9))), .2)
  433. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.4, 1.45, 0) * CFrame.Angles(math.rad(180), math.rad(-1), math.rad(-3 * math.sin(sine / 2))), 0.3)
  434. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.4, 1.45, 0) * CFrame.Angles(math.rad(180), math.rad(1), math.rad(3 * math.sin(sine / 2))), 0.3)
  435. swait(0)
  436. end
  437. ws = 18
  438. attacking = false
  439. end)()
  440. end
  441. end
  442. end)
  443.  
  444.  
  445. mouse.KeyDown:connect(function(Press)
  446. Press = Press:lower()
  447. if Press == 'u' then
  448. if dancing then
  449. dancing = false
  450. else
  451. dancing = true
  452. ws = 7
  453. change = .5
  454. attacking = true
  455. coroutine.wrap(function()
  456. while dancing do
  457. for i = 1, 17 do
  458. if not dancing then
  459. break
  460. end
  461. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.52, 1.5, -.5) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)), .2)
  462. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.52, 1.2, .55) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), .2)
  463. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.8 + .1 * math.sin(sine / 3), 0) * CFrame.Angles(math.rad(22 - 2 * math.sin(sine / 3)), math.rad(0), math.rad(0)), .2)
  464. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1, -.2, .4) * CFrame.Angles(math.rad(-87 + .01 * math.sin(sine / 9)), math.rad(80 - 3 * math.sin(sine / 9)), math.rad(0)), 0.3)
  465. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.7, -.2, .4) * CFrame.Angles(math.rad(-87 - .01 * math.sin(sine / 9)), math.rad(-88 + .7 * math.sin(sine / 9)), math.rad(0)), 0.3)
  466. swait(0)
  467. end
  468. for i = 1, 17 do
  469. if not dancing then
  470. break
  471. end
  472. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.52, 1.2, .55) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), .2)
  473. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.52, 1.5, -.5) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)), .2)
  474. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.8 + .1 * math.sin(sine / 3), 0) * CFrame.Angles(math.rad(22 - 2 * math.sin(sine / 3)), math.rad(0), math.rad(0)), .2)
  475. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1, -.2, .4) * CFrame.Angles(math.rad(-87 + .01 * math.sin(sine / 9)), math.rad(80 - 3 * math.sin(sine / 9)), math.rad(0)), 0.3)
  476. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.7, -.2, .4) * CFrame.Angles(math.rad(-87 - .01 * math.sin(sine / 9)), math.rad(-88 + .7 * math.sin(sine / 9)), math.rad(0)), 0.3)
  477. swait(0)
  478. end
  479. swait(0)
  480. end
  481. ws = 18
  482. attacking = false
  483. end)()
  484. end
  485. end
  486. end)
  487.  
  488. mouse.KeyDown:connect(function(Press)
  489. Press = Press:lower()
  490. if Press == 'y' then
  491. if dancing then
  492. dancing = false
  493. else
  494. dancing = true
  495. ws = 0
  496. change = .5
  497. walkforward = 0
  498. walkrotation = 0
  499. attacking = true
  500. coroutine.wrap(function()
  501. while dancing do
  502. for i = 1, 100 do
  503. if not dancing then
  504. break
  505. end
  506. walkforward = walkforward + .1
  507. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.31, 2.05 , .1 * math.sin(sine / 4)) * CFrame.Angles(math.rad(10 * math.sin(sine / 4)), math.rad(0), math.rad(-8)), 0.3)
  508. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.31, 2.05, -.15 * math.sin(sine / 4)) * CFrame.Angles(math.rad(-10 * math.sin(sine / 4)), math.rad(0), math.rad(8)), 0.3)
  509. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  510. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5, 0, 0) * CFrame.Angles(0, 0, math.rad(0)), .3)
  511. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5, 0, 0) * CFrame.Angles(0, 0, math.rad(0)), .3)
  512. swait(0)
  513. end
  514. for i = 1, 50 do
  515. if not dancing then
  516. break
  517. end
  518. walkrotation = walkrotation + 15
  519. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0), math.rad(walkrotation), math.rad(-0)), .2)
  520. swait(0)
  521. end
  522. walkrotation = 0
  523. for i = 1, 100 do
  524. if not dancing then
  525. break
  526. end
  527. walkforward = walkforward - .1
  528. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.31, 2 , .1 * math.sin(sine / 4)) * CFrame.Angles(math.rad(10 * math.sin(sine / 4)), math.rad(0), math.rad(-8)), 0.3)
  529. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.31, 2, -.15 * math.sin(sine / 4)) * CFrame.Angles(math.rad(-10 * math.sin(sine / 4)), math.rad(0), math.rad(8)), 0.3)
  530. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0), math.rad(-180), math.rad(-0)), .2)
  531. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.3, .7, .2) * CFrame.Angles(math.rad(220), math.rad(0), math.rad(-30)), 0.4)
  532. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5, 0, 0) * CFrame.Angles(0, 0, math.rad(0)), .3)
  533. swait(0)
  534. end
  535. for i = 1, 50 do
  536. if not dancing then
  537. break
  538. end
  539. walkrotation = walkrotation + 15
  540. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5, 0, 0) * CFrame.Angles(0, 0, math.rad(0)), .1)
  541. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0), math.rad(walkrotation), math.rad(-0)), .2)
  542. swait(0)
  543. end
  544. walkrotation = 0
  545. swait(0)
  546. end
  547. ws = 18
  548. attacking = false
  549. end)()
  550. end
  551. end
  552. end)
  553.  
  554. mouse.KeyDown:connect(function(Press)
  555. Press = Press:lower()
  556. if Press == 't' then
  557. if dancing then
  558. dancing = false
  559. else
  560. dancing = true
  561. ws = 0
  562. change = .5
  563. attacking = true
  564. coroutine.wrap(function()
  565. while dancing do
  566. for i = 1, 20 do
  567. if not dancing then
  568. break
  569. end
  570. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.33, 2 , .05) * CFrame.Angles(math.rad(3), math.rad(0), math.rad(-8)), 0.2)
  571. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.33, 2.0, -.05) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(8)), 0.2)
  572. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(0), math.rad(0 * math.sin(sine / 4)), math.rad(15)), .2)
  573. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(.5, 1.98, .05) * CFrame.Angles(0, 0, math.rad(-140)), .2)
  574. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1, 1.3, .05) * CFrame.Angles(0, 0, math.rad(50)), .2)
  575. swait(0)
  576. end
  577. for i = 1, 20 do
  578. if not dancing then
  579. break
  580. end
  581. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.33, 2, .05) * CFrame.Angles(math.rad(3), math.rad(0), math.rad(-8)), 0.2)
  582. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.33, 2.0, -.05) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(8)), 0.2)
  583. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(0), math.rad(0 * math.sin(sine / 4)), math.rad(-15)), .2)
  584. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1, 1.4, .05) * CFrame.Angles(0, 0, math.rad(-50)), .2)
  585. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(-.6, 2, .05) * CFrame.Angles(0, 0, math.rad(140)), .2)
  586. swait(0)
  587. end
  588. swait(0)
  589. end
  590. ws = 18
  591. attacking = false
  592. end)()
  593. end
  594. end
  595. end)
  596.  
  597. mouse.KeyDown:connect(function(Press)
  598. Press = Press:lower()
  599. if Press == 'e' then
  600. if dancing then
  601. dancing = false
  602. else
  603. dancing = true
  604. ws = 0
  605. change = .5
  606. attacking = true
  607. coroutine.wrap(function()
  608. while dancing do
  609. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 , 0) * CFrame.Angles(0, math.rad(0), math.rad(-10)), 0.1)
  610. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, 0) * CFrame.Angles(0, math.rad(0), math.rad(10)), 0.1)
  611. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(0), math.rad(0 * math.sin(sine / 4)), math.rad(15 * math.sin(sine / 4))), .2)
  612. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.3 + .3 * math.sin(sine / 3.5), .5 * -math.sin(sine / 3.5), .1) * CFrame.Angles(math.rad(0 * math.sin(sine / 2)), 0, math.rad(30 * math.sin(sine / 3.5))), .2)
  613. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.3 + .3 * math.sin(sine / 3.5), .5 * math.sin(sine / 3.5), .1) * CFrame.Angles(math.rad(0 * math.sin(sine / 2)), 0, math.rad(30 * math.sin(sine / 3.5))), .2)
  614. swait(0)
  615. end
  616. ws = 18
  617. attacking = false
  618. end)()
  619. end
  620. end
  621. end)
  622.  
  623. mouse.KeyDown:connect(function(Press)
  624. Press = Press:lower()
  625. if Press == 'r' then
  626. if dancing then
  627. dancing = false
  628. else
  629. ws = 7
  630. recordbaby = 0
  631. dancing = true
  632. change = .5
  633. attacking = true
  634. coroutine.wrap(function()
  635. while dancing do
  636. recordbaby = recordbaby + 10
  637. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.27, 2 , .1 * math.sin(sine / 4)) * CFrame.Angles(math.rad(10 * math.sin(sine / 4)), math.rad(0), math.rad(-8)), 0.3)
  638. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.27, 2.0, -.1 * math.sin(sine / 4)) * CFrame.Angles(math.rad(-10 * math.sin(sine / 4)), math.rad(0), math.rad(8)), 0.3)
  639. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(.5 * math.sin(sine / 5), -.2, .5 * math.sin(sine / 4)) * CFrame.Angles(math.rad(0), math.rad(recordbaby), math.rad(0)), .3)
  640. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.5, 1.98, 0) * CFrame.Angles(0, 0, math.rad(-90)), .3)
  641. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.5, 1.98, 0) * CFrame.Angles(0, 0, math.rad(90)), .3)
  642. swait(0)
  643. end
  644. ws = 18
  645. attacking = false
  646. end)()
  647. end
  648. end
  649. end)
  650.  
  651. function ray(pos, dir, rang, ignoredesc)
  652. return workspace:FindPartOnRay(Ray.new(pos, dir.unit * rang), ignoredesc)
  653. end
  654.  
  655. function ray2(startpos, endpos, distance, ignore)
  656. local dir = CFrame.new(startpos, endpos).lookVector
  657. return ray(startpos, dir, distance, ignore)
  658. end
  659.  
  660. checks1 = coroutine.wrap(function()
  661. while true do
  662. hf = ray(Root.Position, (CFrame.new(Root.Position, Root.Position + Vector3.new(0, -1, 0))).lookVector, 3 * 3, Character)
  663. if Root.Velocity.y > 10 then
  664. position = "Jump"
  665. elseif Root.Velocity.y < -6 then
  666. position = "Falling"
  667. elseif Root.Velocity.Magnitude < 2 then
  668. position = "Idle"
  669. elseif Root.Velocity.Magnitude > 2 then
  670. position = "Walking"
  671. elseif Root.Velocity.Magnitude > 20 then
  672. position = "Running"
  673. else
  674. end
  675. swait(0)
  676. end
  677. end)
  678. checks1()
  679.  
  680. function ray(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  681. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  682. end
  683.  
  684. function ray2(StartPos, EndPos, Distance, Ignore)
  685. local DIRECTION = CFrame.new(StartPos, EndPos).lookVector
  686. return ray(StartPos, DIRECTION, Distance, Ignore)
  687. end
  688.  
  689. OrgnC0 = Neck.C0
  690. local movelimbs = coroutine.wrap(function()
  691. while RunSrv.RenderStepped:wait() do
  692. TrsoLV = Torso.CFrame.lookVector
  693. Dist = nil
  694. Diff = nil
  695. end
  696. end)
  697. movelimbs()
  698.  
  699. local anims = coroutine.wrap(function()
  700. while true do
  701. settime = 0.05
  702. sine = sine + change
  703. if position == "Jump" and attacking == false then
  704. change = 1
  705. spin = false
  706. for _, v in pairs(Torso:GetChildren()) do
  707. if v:IsA("Sound") then
  708. v:Remove()
  709. end
  710. end
  711. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), .1)
  712. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), 0, 0), .1)
  713. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), .4)
  714. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  715. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.4, .1, -.2) * CFrame.Angles(math.rad(20), math.rad(-3), math.rad(-4)), 0.2)
  716. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.2)
  717. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.2)
  718. elseif position == "Falling" and attacking == false then
  719. change = 1
  720. spin = false
  721. for _, v in pairs(Torso:GetChildren()) do
  722. if v:IsA("Sound") then
  723. v:Remove()
  724. end
  725. end
  726. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)), 0.15)
  727. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), .1)
  728. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), 0, 0), .1)
  729. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), .4)
  730. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(4), math.rad(0)), 0.2)
  731. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(-4), math.rad(0)), 0.2)
  732. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5, .94 + .02 * math.sin(sine / 12), -0) * CFrame.Angles(math.rad(28 + 5 * math.sin(sine / 12)), math.rad(0), math.rad(45)), 0.2)
  733. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5, .94 + .02 * math.sin(sine / 12), -0) * CFrame.Angles(math.rad(28 + 5 * math.sin(sine / 12)), math.rad(0), math.rad(-45)), 0.2)
  734. elseif position == "Walking" and attacking == false and running == false then
  735. change = 1.2
  736. walking = true
  737. spin = false
  738. for _, v in pairs(Torso:GetChildren()) do
  739. if v:IsA("Sound") then
  740. v:Remove()
  741. end
  742. end
  743. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5 + Root.RotVelocity.Y / 85, .35, -.5 * math.sin(sine / 11)) * CFrame.Angles(math.rad(35 * math.sin(sine / 11)), math.rad(0 * math.sin(sine / 11)), math.rad(-10 + Root.RotVelocity.Y / 10, math.sin(-20 * math.sin(sine / 4)))), .3)
  744. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5 + Root.RotVelocity.Y / 85, .45, .5 * math.sin(sine / 11)) * CFrame.Angles(math.rad(-55 * math.sin(sine / 11)), math.rad(-5 * math.sin(sine / 8)), math.rad(10 + Root.RotVelocity.Y / 10, math.sin(20 * math.sin(sine / 4)))), .3)
  745. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.15 * 0.6 * -math.sin(sine / 5.5), 0) * CFrame.Angles(math.rad(10), math.rad(12 * -math.sin(sine / 11)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(25 * math.cos(sine / 10))), 0.3)
  746. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.92 - 0.35 * math.cos(sine / 11) / 2.8, -.2 + 0.2 - math.sin(sine / 11) / 3.4) * CFrame.Angles(math.rad(25 - 25) + -math.sin(sine / 11) / 2.3, math.rad(0) * math.cos(sine / 1), math.rad(0), math.cos(-15 * 25 * math.cos(sine / 11))), 0.3)
  747. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.92 + 0.35 * math.cos(sine / 11) / 2.8, -.2 + 0.2 + math.sin(sine / 11) / 3.4) * CFrame.Angles(math.rad(25 - 25) - -math.sin(sine / 11) / 2.3, math.rad(0) * math.cos(sine / 1), math.rad(0) , math.cos(-15 * 25 * math.cos(sine / 11))), 0.3)
  748. elseif position == "Idle" and attacking == false and running == false then
  749. change = .5
  750. spin = true
  751. for _, v in pairs(Torso:GetChildren()) do
  752. if v:IsA("Sound") then
  753. v:Remove()
  754. end
  755. end
  756. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine / 12), 0) * CFrame.Angles(math.rad(6 * -math.sin(sine / 12)), math.rad(0), math.rad(0)), .1)
  757. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5, .27 + .02 * math.sin(sine / 12), .20 * -math.sin(sine / 12)) * CFrame.Angles(math.rad(20 * math.sin(sine / 12)), math.rad(0), math.rad(10)), 0.1)
  758. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5, .27 + .02 * math.sin(sine / 12), .20 * -math.sin(sine / 12)) * CFrame.Angles(math.rad(20 * math.sin(sine / 12)), math.rad(0), math.rad(-10)), 0.1)
  759. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 - .1 * math.sin(sine / 12), 0) * CFrame.Angles(math.rad(6 * -math.sin(sine / 12)), math.rad(0), math.rad(-10)), 0.1)
  760. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0 - .1 * math.sin(sine / 12), 0) * CFrame.Angles(math.rad(6 * -math.sin(sine / 12)), math.rad(0), math.rad(10)), 0.1)
  761. elseif position == "Running" and attacking == false then
  762. change = 1
  763. for _, v in pairs(Torso:GetChildren()) do
  764. if v:IsA("Sound") then
  765. v:Remove()
  766. end
  767. end
  768. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  769. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(-1.24 + .6 * math.sin(sine / 4) / 1.4, 0.54, 0 - 0.8 * math.sin(sine / 4)) * CFrame.Angles(math.rad(6 + 140 * math.sin(sine / 4) / 1.2), math.rad(0), math.rad(20 + 70 * math.sin(sine / 4))), 0.3)
  770. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  771. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(-20 - 0 * math.sin(sine / 4)), math.rad(0 + 6 * math.sin(sine / 4)), math.rad(0) + Root.RotVelocity.Y / 30, math.sin(10 * math.sin(sine / 4))), 0.3)
  772. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0, 0, -.2 + .5 * -math.sin(sine / 4)), .3)
  773. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.6 + 0.1 * math.sin(sine / 4), .7 * -math.sin(sine / 4)) * CFrame.Angles(math.rad(15 + -50 * math.sin(sine / 4)), 0, 0), .3)
  774. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0, 0, -.2 + .5 * math.sin(sine / 4)), .3)
  775. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.6 - 0.1 * math.sin(sine / 4), .7 * math.sin(sine / 4)) * CFrame.Angles(math.rad(15 + 50 * math.sin(sine / 4)), 0, 0), .3)
  776. end
  777. game:GetService("RunService").Heartbeat:wait()
  778. end
  779. end)
  780. anims()
Add Comment
Please, Sign In to add comment