Hydasi

Krystal Dance V2 Animation

Jul 2nd, 2020
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.66 KB | None | 0 0
  1. function LoadLibrary(a)
  2. return loadstring(game:HttpGet("https://pastebin.com/raw/UfzKgS6T", true))()
  3.  
  4. -----------------------------------------------
  5. --Krystal dance v2
  6. ----not cat dance
  7. -- ~Sugarie --
  8. ------------------------------------------------
  9.  
  10. wait(1/60)
  11. Effects = { }
  12. local Player = game:service'Players'.localPlayer
  13. local chara = workspace.CloneCharacter
  14. local Humanoid = chara:FindFirstChildOfClass("Humanoid")
  15. local Mouse = Player:GetMouse()
  16. local LeftArm = chara["Left Arm"]
  17. local RightArm = chara["Right Arm"]
  18. local LeftLeg = chara["Left Leg"]
  19. local RightLeg = chara["Right Leg"]
  20. local Head = chara.Head
  21. local Torso = chara.Torso
  22. local Camera = game.Workspace.CurrentCamera
  23. local RootPart = chara.HumanoidRootPart
  24. local RootJoint = RootPart.RootJoint
  25. local attack = false
  26. local Anim = 'Idle'
  27. local attacktype = 1
  28. local delays = false
  29. local play = true
  30. local targetted = nil
  31. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  32. local velocity = RootPart.Velocity.y
  33. local sine = 0
  34. local change = 1
  35. local doe = 0
  36. local Create = LoadLibrary("RbxUtility").Create
  37. Humanoid.WalkSpeed = 2
  38.  
  39. Humanoid.Animator.Parent = nil
  40. chara.Animate.Parent = nil
  41.  
  42. local newMotor = function(part0, part1, c0, c1)
  43. local w = Create('Motor'){
  44. Parent = part0,
  45. Part0 = part0,
  46. Part1 = part1,
  47. C0 = c0,
  48. C1 = c1,
  49. }
  50. return w
  51. end
  52.  
  53. function clerp(a, b, t)
  54. return a:lerp(b, t)
  55. end
  56.  
  57. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  58. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  59.  
  60. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  61. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  62. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  63. local LH = newe.new(0, 1.5, 0)
  64.  
  65. local rarmc1 = RW.C1
  66. local larmc1 = LW.C1
  67. local rlegc1 = RH.C1
  68. local llegc1 = LH.C1
  69.  
  70. local resetc1 = fals
  71.  
  72. function PlayAnimation
  73. if resetc1 e
  74. ArtificialHB = Instance.new("Bidfgfddsfdsf
  75. allowframeloss = false
  76. tossremainder = false
  77. lastframe = tick()
  78. script.Heartbeat:Fire()
  79. game:GetService("RunService").Heartbeat:connect(function(s, p)
  80. tf = tf + s
  81. if t
  82. else
  83. tf = tf - frame * math.floor(tf / frame)
  84. end
  85. end
  86. end)
  87. function swait(num)
  88. if num == 0 or num == nil then
  89. ArtificialHB.Event:wait()
  90. else
  91. for i = 0, num do
  92. ArtificialHB.Event:wait()
  93. end
  94. end
  95. end
  96.  
  97. function RemoveOutlines(part)
  98. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  99. end
  100.  
  101. sndid = "rbxassetid://176322684"
  102. sndpi = .7
  103. saun = Instance.new("Sound",Head)
  104. saun.Volume = 1
  105. saun.Pitch = sndpi
  106. saun.SoundId = sndid
  107. saun.Name = "a"
  108. saun.Looped = true
  109. saun:Play()
  110.  
  111. dant = 0
  112.  
  113. Mouse.KeyDown:connect(function(key)
  114. key=key:lower()
  115. if key=="e" then
  116. if dant == 0 then
  117. dant = 1
  118. sndid = "rbxassetid://448668887"
  119. sndpi = 1
  120. elseif dant == 1 then
  121. dant = 0
  122. sndid = "rbxassetid://176322684"
  123. sndpi = .7
  124. end
  125. saun.Pitch = sndpi
  126. saun.SoundId = sndid
  127. saun:Play()
  128. end
  129. end)
  130.  
  131. while true do
  132. if Head:FindFirstChild("a")==nil then
  133. saun = Instance.new("Sound",Head)
  134. saun.Volume = 1
  135. saun.Pitch = sndpi
  136. saun.SoundId = sndid
  137. saun.Name = "a"
  138. saun.Looped = true
  139. saun:Play()
  140. end
  141. if dant == 0 then
  142. for i = 0, 1, 0.25 do
  143. swait()
  144. PlayAnimationFromTable({
  145. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  146. CFrame.new(0, 1.4999938, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  147. CFrame.new(0.833580494, 1.12330246, 6.2584877e-07, -0.342020094, -1.63087847e-07, 0.939692676, 0.321394086, -0.939692557, 0.116977669, 0.883022249, 0.342020333, 0.321393758),
  148. CFrame.new(-0.833579302, 1.12330115, -1.49011612e-07, -0.342019886, 4.07719511e-08, -0.939692736, -0.321392894, -0.939693034, 0.116977319, -0.883022726, 0.342019141, 0.321393728),
  149. CFrame.new(0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  150. CFrame.new(-0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  151. }, .5, false)
  152. end
  153. for i = 0, 1, 0.25 do
  154. swait()
  155. PlayAnimationFromTable({
  156. CFrame.new(-0.268402338, -0.187939167, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1),
  157. CFrame.new(-0.409892142, 1.36144388, 0, 0.766044796, -0.642787218, 0, 0.642787218, 0.766044855, 0, 0, 0, 1),
  158. CFrame.new(0.535924554, 1.16478181, 3.87430191e-07, -0.431316972, 0.32139343, 0.843013644, 0.185034022, -0.883022308, 0.431316644, 0.883022249, 0.342020333, 0.321393758),
  159. CFrame.new(-1.03069234, 0.594579875, -2.38418579e-07, -0.211470842, 0.321393758, -0.923030972, -0.418988168, -0.883022726, -0.211470872, -0.883022726, 0.342019141, 0.321393728),
  160. CFrame.new(0.951213062, -1.54518354, 0, 0.866025686, -0.499999642, 0, 0.499999642, 0.866025686, 0, 0, 0, 1),
  161. CFrame.new(0.214191973, -1.8503952, 0, 0.766044796, -0.642787218, 0, 0.642787218, 0.766044855, 0, 0, 0, 1),
  162. }, .5, false)
  163. end
  164. for i = 0, 1, 0.25 do
  165. swait()
  166. PlayAnimationFromTable({
  167. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  168. CFrame.new(0, 1.4999938, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  169. CFrame.new(0.833580494, 1.12330246, 6.2584877e-07, -0.342020094, -1.63087847e-07, 0.939692676, 0.321394086, -0.939692557, 0.116977669, 0.883022249, 0.342020333, 0.321393758),
  170. CFrame.new(-0.833579302, 1.12330115, -1.49011612e-07, -0.342019886, 4.07719511e-08, -0.939692736, -0.321392894, -0.939693034, 0.116977319, -0.883022726, 0.342019141, 0.321393728),
  171. CFrame.new(0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  172. CFrame.new(-0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  173. }, .5, false)
  174. end
  175. for i = 0, 1, 0.25 do
  176. swait()
  177. PlayAnimationFromTable({
  178. CFrame.new(0.268400908, -0.187940732, 0, 0.939692855, -0.342019945, 0, 0.342019975, 0.939692795, 0, 0, 0, 1),
  179. CFrame.new(0.409947664, 1.36144304, 0, 0.766039729, 0.642798781, 0, -0.642787337, 0.766043961, 0, 0, 0, 1),
  180. CFrame.new(1.03070939, 0.594575524, -2.2649765e-06, -0.21146287, -0.321413547, 0.923025966, 0.418989599, -0.883016884, -0.21149224, 0.883023918, 0.342015505, 0.321394145),
  181. CFrame.new(-0.535904408, 1.16477537, -3.27825546e-07, -0.431322306, -0.321409196, -0.843005002, -0.185032129, -0.883013964, 0.431334615, -0.883019984, 0.342027217, 0.321392536),
  182. CFrame.new(-0.214235365, -1.8503921, 0, 0.766041398, 0.64279145, 0, -0.64279151, 0.766041279, 0, 0, 0, 1),
  183. CFrame.new(-0.965987146, -1.57677674, 0, 0.866024733, 0.500001609, 0, -0.500001609, 0.866024613, 0, 0, 0, 1),
  184. }, .5, false)
  185. end
  186. elseif dant == 1 then
  187. for i = 0, 1, 0.1 do
  188. swait()
  189. PlayAnimationFromTable({
  190. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  191. CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  192. CFrame.new(1.09999847, 1.1920929e-07, -0.600001514, 0, 0, 1, 0.173647985, 0.984807849, 0, -0.984807849, 0.173647985, 0),
  193. CFrame.new(-1.09999847, 1.1920929e-07, -0.600001514, 0, 0, -1, -0.173647985, 0.984807849, 0, 0.984807849, 0.173647985, 0),
  194. CFrame.new(0.5, -1.99999881, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  195. CFrame.new(-0.5, -1.99999881, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  196. }, .2, false)
  197. end
  198. for i = 0, 1, 0.1 do
  199. swait()
  200. PlayAnimationFromTable({
  201. CFrame.new(-0.0436433926, 0, -0.113613628, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698),
  202. CFrame.new(0, 1.49999809, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  203. CFrame.new(1.09998989, 1, -0.599998474, 0, 0, 1, 1, 0, 0, 0, 1, 0),
  204. CFrame.new(-1.10000229, 1, -0.599998474, 0, 0, -1, -1, 0, 0, 0, 1, 0),
  205. CFrame.new(0.499988556, -1.99999797, -3.81469727e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  206. CFrame.new(-0.500012398, -1.78038144, -0.819608092, 1, 0, 1.49011612e-08, 0, 0.499999046, -0.866025984, 0, 0.866026044, 0.499999046),
  207. }, .2, false)
  208. end
  209. for i = 0, 1, 0.1 do
  210. swait()
  211. PlayAnimationFromTable({
  212. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  213. CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  214. CFrame.new(1.09999847, 1.1920929e-07, -0.600001514, 0, 0, 1, 0.173647985, 0.984807849, 0, -0.984807849, 0.173647985, 0),
  215. CFrame.new(-1.09999847, 1.1920929e-07, -0.600001514, 0, 0, -1, -0.173647985, 0.984807849, 0, 0.984807849, 0.173647985, 0),
  216. CFrame.new(0.5, -1.99999881, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  217. CFrame.new(-0.5, -1.99999881, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  218. }, .2, false)
  219. end
  220. for i = 0, 1, 0.1 do
  221. swait()
  222. PlayAnimationFromTable({
  223. CFrame.new(0.261404335, 0, -0.167939946, 0.76604414, 0, 0.642788053, 0, 1, 0, -0.642788053, 0, 0.76604414),
  224. CFrame.new(0, 1.49999285, 0, 1.00000012, 0, 0, 0, 1, 0, 0, 0, 1.00000012),
  225. CFrame.new(1.10000622, 0.999999046, -0.599996626, 0, 0, 1.00000012, 1, 0, 0, 0, 1.00000012, 0),
  226. CFrame.new(-1.09999859, 0.999999046, -0.59999758, 0, 0, -1.00000012, -1, 0, 0, 0, 1.00000012, 0),
  227. CFrame.new(0.500000179, -1.78038287, -0.81961149, 1.00000012, -2.98023224e-08, 2.98023224e-08, 0, 0.499999046, -0.866025925, 0, 0.866025984, 0.499999106),
  228. CFrame.new(-0.500003874, -1.99999893, 3.81469772e-06, 1.00000012, 0, 0, 0, 1, 0, 0, 0, 1.00000012),
  229. }, .2, false)
  230. end
  231. end
  232. end
Add Comment
Please, Sign In to add comment