Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.13 KB | None | 0 0
  1. -----------------------------------------------
  2. --DANCE TO THE BEAT, WAVE YOUR HANDS TOGETHER--
  3. ------------------------------------------------
  4. --I wanted to make something like Heavy Dance.--
  5. -- ~Sugarie --
  6. ------------------------------------------------
  7.  
  8. wait(1/60)
  9. Effects = { }
  10. local Player = game:service'Players'.localPlayer
  11. local chara = Player.Character
  12. local Humanoid = chara:FindFirstChildOfClass("Humanoid")
  13. local Mouse = Player:GetMouse()
  14. local LeftArm = chara["Left Arm"]
  15. local RightArm = chara["Right Arm"]
  16. local LeftLeg = chara["Left Leg"]
  17. local RightLeg = chara["Right Leg"]
  18. local Head = chara.Head
  19. local Torso = chara.Torso
  20. local Camera = game.Workspace.CurrentCamera
  21. local RootPart = chara.HumanoidRootPart
  22. local RootJoint = RootPart.RootJoint
  23. local attack = false
  24. local Anim = 'Idle'
  25. local attacktype = 1
  26. local delays = false
  27. local play = true
  28. local targetted = nil
  29. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  30. local velocity = RootPart.Velocity.y
  31. local sine = 0
  32. local change = 1
  33. local doe = 0
  34. local Create = LoadLibrary("RbxUtility").Create
  35. Humanoid.WalkSpeed = 2
  36.  
  37. Humanoid.Animator.Parent = nil
  38. chara.Animate.Parent = nil
  39.  
  40. local newMotor = function(part0, part1, c0, c1)
  41. local w = Create('Motor'){
  42. Parent = part0,
  43. Part0 = part0,
  44. Part1 = part1,
  45. C0 = c0,
  46. C1 = c1,
  47. }
  48. return w
  49. end
  50.  
  51. function clerp(a, b, t)
  52. return a:lerp(b, t)
  53. end
  54.  
  55. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  56. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  57.  
  58. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  59. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  60. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  61. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  62. RootJoint.C1 = CFrame.new(0, 0, 0)
  63. RootJoint.C0 = CFrame.new(0, 0, 0)
  64. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  65. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  66.  
  67. local rarmc1 = RW.C1
  68. local larmc1 = LW.C1
  69. local rlegc1 = RH.C1
  70. local llegc1 = LH.C1
  71.  
  72. local resetc1 = false
  73.  
  74. function PlayAnimationFromTable(table, speed, bool)
  75. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  76. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  77. RW.C0 = clerp(RW.C0, table[3], speed)
  78. LW.C0 = clerp(LW.C0, table[4], speed)
  79. RH.C0 = clerp(RH.C0, table[5], speed)
  80. LH.C0 = clerp(LH.C0, table[6], speed)
  81. if bool == true then
  82. if resetc1 == false then
  83. resetc1 = true
  84. RootJoint.C1 = RootJoint.C1
  85. Torso.Neck.C1 = Torso.Neck.C1
  86. RW.C1 = rarmc1
  87. LW.C1 = larmc1
  88. RH.C1 = rlegc1
  89. LH.C1 = llegc1
  90. end
  91. end
  92. end
  93.  
  94. ArtificialHB = Instance.new("BindableEvent", script)
  95. ArtificialHB.Name = "Heartbeat"
  96. script:WaitForChild("Heartbeat")
  97. frame = 0.03333333333333
  98. tf = 0
  99. allowframeloss = false
  100. tossremainder = false
  101. lastframe = tick()
  102. script.Heartbeat:Fire()
  103. game:GetService("RunService").Heartbeat:connect(function(s, p)
  104. tf = tf + s
  105. if tf >= frame then
  106. if allowframeloss then
  107. script.Heartbeat:Fire()
  108. lastframe = tick()
  109. else
  110. for i = 1, math.floor(tf / frame) do
  111. script.Heartbeat:Fire()
  112. end
  113. lastframe = tick()
  114. end
  115. if tossremainder then
  116. tf = 0
  117. else
  118. tf = tf - frame * math.floor(tf / frame)
  119. end
  120. end
  121. end)
  122. function swait(num)
  123. if num == 0 or num == nil then
  124. ArtificialHB.Event:wait()
  125. else
  126. for i = 0, num do
  127. ArtificialHB.Event:wait()
  128. end
  129. end
  130. end
  131.  
  132. function RemoveOutlines(part)
  133. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  134. end
  135.  
  136. sndid = "rbxassetid://176322684"
  137. sndpi = .7
  138. saun = Instance.new("Sound",Head)
  139. saun.Volume = 1
  140. saun.Pitch = sndpi
  141. saun.SoundId = sndid
  142. saun.Name = "a"
  143. saun.Looped = true
  144. saun:Play()
  145.  
  146. dant = 0
  147.  
  148. Mouse.KeyDown:connect(function(key)
  149. key=key:lower()
  150. if key=="e" then
  151. if dant == 0 then
  152. dant = 1
  153. sndid = "rbxassetid://448668887"
  154. sndpi = 1
  155. elseif dant == 1 then
  156. dant = 0
  157. sndid = "rbxassetid://176322684"
  158. sndpi = .7
  159. end
  160. saun.Pitch = sndpi
  161. saun.SoundId = sndid
  162. saun:Play()
  163. end
  164. end)
  165.  
  166. while true do
  167. if Head:FindFirstChild("a")==nil then
  168. saun = Instance.new("Sound",Head)
  169. saun.Volume = 1
  170. saun.Pitch = sndpi
  171. saun.SoundId = sndid
  172. saun.Name = "a"
  173. saun.Looped = true
  174. saun:Play()
  175. end
  176. if dant == 0 then
  177. for i = 0, 1, 0.25 do
  178. swait()
  179. PlayAnimationFromTable({
  180. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  181. CFrame.new(0, 1.4999938, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  182. 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),
  183. 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),
  184. CFrame.new(0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  185. CFrame.new(-0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  186. }, .5, false)
  187. end
  188. for i = 0, 1, 0.25 do
  189. swait()
  190. PlayAnimationFromTable({
  191. CFrame.new(-0.268402338, -0.187939167, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1),
  192. CFrame.new(-0.409892142, 1.36144388, 0, 0.766044796, -0.642787218, 0, 0.642787218, 0.766044855, 0, 0, 0, 1),
  193. 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),
  194. 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),
  195. CFrame.new(0.951213062, -1.54518354, 0, 0.866025686, -0.499999642, 0, 0.499999642, 0.866025686, 0, 0, 0, 1),
  196. CFrame.new(0.214191973, -1.8503952, 0, 0.766044796, -0.642787218, 0, 0.642787218, 0.766044855, 0, 0, 0, 1),
  197. }, .5, false)
  198. end
  199. for i = 0, 1, 0.25 do
  200. swait()
  201. PlayAnimationFromTable({
  202. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  203. CFrame.new(0, 1.4999938, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  204. 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),
  205. 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),
  206. CFrame.new(0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  207. CFrame.new(-0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  208. }, .5, false)
  209. end
  210. for i = 0, 1, 0.25 do
  211. swait()
  212. PlayAnimationFromTable({
  213. CFrame.new(0.268400908, -0.187940732, 0, 0.939692855, -0.342019945, 0, 0.342019975, 0.939692795, 0, 0, 0, 1),
  214. CFrame.new(0.409947664, 1.36144304, 0, 0.766039729, 0.642798781, 0, -0.642787337, 0.766043961, 0, 0, 0, 1),
  215. 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),
  216. 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),
  217. CFrame.new(-0.214235365, -1.8503921, 0, 0.766041398, 0.64279145, 0, -0.64279151, 0.766041279, 0, 0, 0, 1),
  218. CFrame.new(-0.965987146, -1.57677674, 0, 0.866024733, 0.500001609, 0, -0.500001609, 0.866024613, 0, 0, 0, 1),
  219. }, .5, false)
  220. end
  221. elseif dant == 1 then
  222. for i = 0, 1, 0.1 do
  223. swait()
  224. PlayAnimationFromTable({
  225. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  226. CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  227. CFrame.new(1.09999847, 1.1920929e-07, -0.600001514, 0, 0, 1, 0.173647985, 0.984807849, 0, -0.984807849, 0.173647985, 0),
  228. CFrame.new(-1.09999847, 1.1920929e-07, -0.600001514, 0, 0, -1, -0.173647985, 0.984807849, 0, 0.984807849, 0.173647985, 0),
  229. CFrame.new(0.5, -1.99999881, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  230. CFrame.new(-0.5, -1.99999881, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  231. }, .2, false)
  232. end
  233. for i = 0, 1, 0.1 do
  234. swait()
  235. PlayAnimationFromTable({
  236. CFrame.new(-0.0436433926, 0, -0.113613628, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698),
  237. CFrame.new(0, 1.49999809, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  238. CFrame.new(1.09998989, 1, -0.599998474, 0, 0, 1, 1, 0, 0, 0, 1, 0),
  239. CFrame.new(-1.10000229, 1, -0.599998474, 0, 0, -1, -1, 0, 0, 0, 1, 0),
  240. CFrame.new(0.499988556, -1.99999797, -3.81469727e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  241. CFrame.new(-0.500012398, -1.78038144, -0.819608092, 1, 0, 1.49011612e-08, 0, 0.499999046, -0.866025984, 0, 0.866026044, 0.499999046),
  242. }, .2, false)
  243. end
  244. for i = 0, 1, 0.1 do
  245. swait()
  246. PlayAnimationFromTable({
  247. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  248. CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  249. CFrame.new(1.09999847, 1.1920929e-07, -0.600001514, 0, 0, 1, 0.173647985, 0.984807849, 0, -0.984807849, 0.173647985, 0),
  250. CFrame.new(-1.09999847, 1.1920929e-07, -0.600001514, 0, 0, -1, -0.173647985, 0.984807849, 0, 0.984807849, 0.173647985, 0),
  251. CFrame.new(0.5, -1.99999881, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  252. CFrame.new(-0.5, -1.99999881, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  253. }, .2, false)
  254. end
  255. for i = 0, 1, 0.1 do
  256. swait()
  257. PlayAnimationFromTable({
  258. CFrame.new(0.261404335, 0, -0.167939946, 0.76604414, 0, 0.642788053, 0, 1, 0, -0.642788053, 0, 0.76604414),
  259. CFrame.new(0, 1.49999285, 0, 1.00000012, 0, 0, 0, 1, 0, 0, 0, 1.00000012),
  260. CFrame.new(1.10000622, 0.999999046, -0.599996626, 0, 0, 1.00000012, 1, 0, 0, 0, 1.00000012, 0),
  261. CFrame.new(-1.09999859, 0.999999046, -0.59999758, 0, 0, -1.00000012, -1, 0, 0, 0, 1.00000012, 0),
  262. 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),
  263. CFrame.new(-0.500003874, -1.99999893, 3.81469772e-06, 1.00000012, 0, 0, 0, 1, 0, 0, 0, 1.00000012),
  264. }, .2, false)
  265. end
  266. end
  267. end
  268. RAW Paste Data
  269.  
  270. -----------------------------------------------
  271. --DANCE TO THE BEAT, WAVE YOUR HANDS TOGETHER--
  272. ------------------------------------------------
  273. --I wanted to make something like Heavy Dance.--
  274. -- ~Sugarie --
  275. ------------------------------------------------
  276.  
  277. wait(1/60)
  278. Effects = { }
  279. local Player = game:service'Players'.localPlayer
  280. local chara = Player.Character
  281. local Humanoid = chara:FindFirstChildOfClass("Humanoid")
  282. local Mouse = Player:GetMouse()
  283. local LeftArm = chara["Left Arm"]
  284. local RightArm = chara["Right Arm"]
  285. local LeftLeg = chara["Left Leg"]
  286. local RightLeg = chara["Right Leg"]
  287. local Head = chara.Head
  288. local Torso = chara.Torso
  289. local Camera = game.Workspace.CurrentCamera
  290. local RootPart = chara.HumanoidRootPart
  291. local RootJoint = RootPart.RootJoint
  292. local attack = false
  293. local Anim = 'Idle'
  294. local attacktype = 1
  295. local delays = false
  296. local play = true
  297. local targetted = nil
  298. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  299. local velocity = RootPart.Velocity.y
  300. local sine = 0
  301. local change = 1
  302. local doe = 0
  303. local Create = LoadLibrary("RbxUtility").Create
  304. Humanoid.WalkSpeed = 2
  305.  
  306. Humanoid.Animator.Parent = nil
  307. chara.Animate.Parent = nil
  308.  
  309. local newMotor = function(part0, part1, c0, c1)
  310. local w = Create('Motor'){
  311. Parent = part0,
  312. Part0 = part0,
  313. Part1 = part1,
  314. C0 = c0,
  315. C1 = c1,
  316. }
  317. return w
  318. end
  319.  
  320. function clerp(a, b, t)
  321. return a:lerp(b, t)
  322. end
  323.  
  324. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  325. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  326.  
  327. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  328. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  329. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  330. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  331. RootJoint.C1 = CFrame.new(0, 0, 0)
  332. RootJoint.C0 = CFrame.new(0, 0, 0)
  333. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  334. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  335.  
  336. local rarmc1 = RW.C1
  337. local larmc1 = LW.C1
  338. local rlegc1 = RH.C1
  339. local llegc1 = LH.C1
  340.  
  341. local resetc1 = false
  342.  
  343. function PlayAnimationFromTable(table, speed, bool)
  344. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  345. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  346. RW.C0 = clerp(RW.C0, table[3], speed)
  347. LW.C0 = clerp(LW.C0, table[4], speed)
  348. RH.C0 = clerp(RH.C0, table[5], speed)
  349. LH.C0 = clerp(LH.C0, table[6], speed)
  350. if bool == true then
  351. if resetc1 == false then
  352. resetc1 = true
  353. RootJoint.C1 = RootJoint.C1
  354. Torso.Neck.C1 = Torso.Neck.C1
  355. RW.C1 = rarmc1
  356. LW.C1 = larmc1
  357. RH.C1 = rlegc1
  358. LH.C1 = llegc1
  359. end
  360. end
  361. end
  362.  
  363. ArtificialHB = Instance.new("BindableEvent", script)
  364. ArtificialHB.Name = "Heartbeat"
  365. script:WaitForChild("Heartbeat")
  366. frame = 0.03333333333333
  367. tf = 0
  368. allowframeloss = false
  369. tossremainder = false
  370. lastframe = tick()
  371. script.Heartbeat:Fire()
  372. game:GetService("RunService").Heartbeat:connect(function(s, p)
  373. tf = tf + s
  374. if tf >= frame then
  375. if allowframeloss then
  376. script.Heartbeat:Fire()
  377. lastframe = tick()
  378. else
  379. for i = 1, math.floor(tf / frame) do
  380. script.Heartbeat:Fire()
  381. end
  382. lastframe = tick()
  383. end
  384. if tossremainder then
  385. tf = 0
  386. else
  387. tf = tf - frame * math.floor(tf / frame)
  388. end
  389. end
  390. end)
  391. function swait(num)
  392. if num == 0 or num == nil then
  393. ArtificialHB.Event:wait()
  394. else
  395. for i = 0, num do
  396. ArtificialHB.Event:wait()
  397. end
  398. end
  399. end
  400.  
  401. function RemoveOutlines(part)
  402. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  403. end
  404.  
  405. sndid = "rbxassetid://176322684"
  406. sndpi = .7
  407. saun = Instance.new("Sound",Head)
  408. saun.Volume = 1
  409. saun.Pitch = sndpi
  410. saun.SoundId = sndid
  411. saun.Name = "a"
  412. saun.Looped = true
  413. saun:Play()
  414.  
  415. dant = 0
  416.  
  417. Mouse.KeyDown:connect(function(key)
  418. key=key:lower()
  419. if key=="e" then
  420. if dant == 0 then
  421. dant = 1
  422. sndid = "rbxassetid://448668887"
  423. sndpi = 1
  424. elseif dant == 1 then
  425. dant = 0
  426. sndid = "rbxassetid://176322684"
  427. sndpi = .7
  428. end
  429. saun.Pitch = sndpi
  430. saun.SoundId = sndid
  431. saun:Play()
  432. end
  433. end)
  434.  
  435. while true do
  436. if Head:FindFirstChild("a")==nil then
  437. saun = Instance.new("Sound",Head)
  438. saun.Volume = 1
  439. saun.Pitch = sndpi
  440. saun.SoundId = sndid
  441. saun.Name = "a"
  442. saun.Looped = true
  443. saun:Play()
  444. end
  445. if dant == 0 then
  446. for i = 0, 1, 0.25 do
  447. swait()
  448. PlayAnimationFromTable({
  449. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  450. CFrame.new(0, 1.4999938, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  451. 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),
  452. 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),
  453. CFrame.new(0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  454. CFrame.new(-0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  455. }, .5, false)
  456. end
  457. for i = 0, 1, 0.25 do
  458. swait()
  459. PlayAnimationFromTable({
  460. CFrame.new(-0.268402338, -0.187939167, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1),
  461. CFrame.new(-0.409892142, 1.36144388, 0, 0.766044796, -0.642787218, 0, 0.642787218, 0.766044855, 0, 0, 0, 1),
  462. 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),
  463. 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),
  464. CFrame.new(0.951213062, -1.54518354, 0, 0.866025686, -0.499999642, 0, 0.499999642, 0.866025686, 0, 0, 0, 1),
  465. CFrame.new(0.214191973, -1.8503952, 0, 0.766044796, -0.642787218, 0, 0.642787218, 0.766044855, 0, 0, 0, 1),
  466. }, .5, false)
  467. end
  468. for i = 0, 1, 0.25 do
  469. swait()
  470. PlayAnimationFromTable({
  471. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  472. CFrame.new(0, 1.4999938, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  473. 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),
  474. 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),
  475. CFrame.new(0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  476. CFrame.new(-0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  477. }, .5, false)
  478. end
  479. for i = 0, 1, 0.25 do
  480. swait()
  481. PlayAnimationFromTable({
  482. CFrame.new(0.268400908, -0.187940732, 0, 0.939692855, -0.342019945, 0, 0.342019975, 0.939692795, 0, 0, 0, 1),
  483. CFrame.new(0.409947664, 1.36144304, 0, 0.766039729, 0.642798781, 0, -0.642787337, 0.766043961, 0, 0, 0, 1),
  484. 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),
  485. 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),
  486. CFrame.new(-0.214235365, -1.8503921, 0, 0.766041398, 0.64279145, 0, -0.64279151, 0.766041279, 0, 0, 0, 1),
  487. CFrame.new(-0.965987146, -1.57677674, 0, 0.866024733, 0.500001609, 0, -0.500001609, 0.866024613, 0, 0, 0, 1),
  488. }, .5, false)
  489. end
  490. elseif dant == 1 then
  491. for i = 0, 1, 0.1 do
  492. swait()
  493. PlayAnimationFromTable({
  494. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  495. CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  496. CFrame.new(1.09999847, 1.1920929e-07, -0.600001514, 0, 0, 1, 0.173647985, 0.984807849, 0, -0.984807849, 0.173647985, 0),
  497. CFrame.new(-1.09999847, 1.1920929e-07, -0.600001514, 0, 0, -1, -0.173647985, 0.984807849, 0, 0.984807849, 0.173647985, 0),
  498. CFrame.new(0.5, -1.99999881, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  499. CFrame.new(-0.5, -1.99999881, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  500. }, .2, false)
  501. end
  502. for i = 0, 1, 0.1 do
  503. swait()
  504. PlayAnimationFromTable({
  505. CFrame.new(-0.0436433926, 0, -0.113613628, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698),
  506. CFrame.new(0, 1.49999809, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  507. CFrame.new(1.09998989, 1, -0.599998474, 0, 0, 1, 1, 0, 0, 0, 1, 0),
  508. CFrame.new(-1.10000229, 1, -0.599998474, 0, 0, -1, -1, 0, 0, 0, 1, 0),
  509. CFrame.new(0.499988556, -1.99999797, -3.81469727e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  510. CFrame.new(-0.500012398, -1.78038144, -0.819608092, 1, 0, 1.49011612e-08, 0, 0.499999046, -0.866025984, 0, 0.866026044, 0.499999046),
  511. }, .2, false)
  512. end
  513. for i = 0, 1, 0.1 do
  514. swait()
  515. PlayAnimationFromTable({
  516. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  517. CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  518. CFrame.new(1.09999847, 1.1920929e-07, -0.600001514, 0, 0, 1, 0.173647985, 0.984807849, 0, -0.984807849, 0.173647985, 0),
  519. CFrame.new(-1.09999847, 1.1920929e-07, -0.600001514, 0, 0, -1, -0.173647985, 0.984807849, 0, 0.984807849, 0.173647985, 0),
  520. CFrame.new(0.5, -1.99999881, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  521. CFrame.new(-0.5, -1.99999881, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  522. }, .2, false)
  523. end
  524. for i = 0, 1, 0.1 do
  525. swait()
  526. PlayAnimationFromTable({
  527. CFrame.new(0.261404335, 0, -0.167939946, 0.76604414, 0, 0.642788053, 0, 1, 0, -0.642788053, 0, 0.76604414),
  528. CFrame.new(0, 1.49999285, 0, 1.00000012, 0, 0, 0, 1, 0, 0, 0, 1.00000012),
  529. CFrame.new(1.10000622, 0.999999046, -0.599996626, 0, 0, 1.00000012, 1, 0, 0, 0, 1.00000012, 0),
  530. CFrame.new(-1.09999859, 0.999999046, -0.59999758, 0, 0, -1.00000012, -1, 0, 0, 0, 1.00000012, 0),
  531. 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),
  532. CFrame.new(-0.500003874, -1.99999893, 3.81469772e-06, 1.00000012, 0, 0, 0, 1, 0, 0, 0, 1.00000012),
  533. }, .2, false)
  534. end
  535. end
  536. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement