Advertisement
idkwhatiam

Noob Dance V1

Apr 13th, 2019
359
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 40.53 KB | None | 0 0
  1. -----------//NOOB DANCE V1\\-----------
  2. --[[Movelist
  3. Q = The Swoosher
  4. E = The nutty
  5. R = Spin me right round!
  6. T = Plum juice dance
  7. Y = Moonwalk
  8. U = Slav dance
  9. P = Barrel roll
  10. F = The Jerky
  11. G = The Shuffle
  12. H = The Spongebob
  13. J = Here comes the money!
  14. K = Runnin' in the 90's
  15. ---------]]
  16.  
  17. --Krystal dance! The old famous script that sadly has been broken(sorta), i've decided to rework this thing because... nostalgia.--
  18. --This is one of the first scripts i've ever ran on SB, seeing this back again really reminds me of how much of a noob i was.--
  19. --Credits to Krystalteam, they made the original krystal dance! Be sure to respect them or else...--
  20. --#makeoldscriptsgreatagain--
  21.  
  22. Player=owner
  23. Character=Player.Character
  24. Character.Humanoid.Name = "noneofurbusiness"
  25. hum = Character.noneofurbusiness
  26. LeftArm=Character["Left Arm"]
  27. LeftLeg=Character["Left Leg"]
  28. RightArm=Character["Right Arm"]
  29. RightLeg=Character["Right Leg"]
  30. Root=Character["HumanoidRootPart"]
  31. Head=Character["Head"]
  32. Torso=Character["Torso"]
  33. Neck=Torso["Neck"]
  34. mouse = Player:GetMouse()
  35. walking = false
  36. jumping = false
  37. attacking = false
  38. firsttime = false
  39. tauntdebounce = false
  40. position = nil
  41. MseGuide = true
  42. running = false
  43. settime = 0
  44. sine = 0
  45. t = 0
  46. ws = 14
  47. change = 1
  48. combo1 = true
  49. dancing = false
  50. equip = false
  51. dgs = 75
  52. combo2 = false
  53. switch1 = true
  54. switch2 = false
  55. firsttime2 = false
  56. combo3 = false
  57. gunallowance = false
  58. shooting = false
  59. RunSrv = game:GetService("RunService")
  60. RenderStepped = game:GetService("RunService").RenderStepped
  61. removeuseless = game:GetService("Debris")
  62.  
  63. screenGui = Instance.new("ScreenGui")
  64. screenGui.Parent = script.Parent
  65.  
  66. local HEADLERP = Instance.new("ManualWeld")
  67. HEADLERP.Parent = Head
  68. HEADLERP.Part0 = Head
  69. HEADLERP.Part1 = Head
  70. HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  71.  
  72. local TORSOLERP = Instance.new("ManualWeld")
  73. TORSOLERP.Parent = Root
  74. TORSOLERP.Part0 = Torso
  75. TORSOLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  76.  
  77. local ROOTLERP = Instance.new("ManualWeld")
  78. ROOTLERP.Parent = Root
  79. ROOTLERP.Part0 = Root
  80. ROOTLERP.Part1 = Torso
  81. ROOTLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  82.  
  83. local RIGHTARMLERP = Instance.new("ManualWeld")
  84. RIGHTARMLERP.Parent = RightArm
  85. RIGHTARMLERP.Part0 = RightArm
  86. RIGHTARMLERP.Part1 = Torso
  87. RIGHTARMLERP.C0 = CFrame.new(-1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  88.  
  89. local LEFTARMLERP = Instance.new("ManualWeld")
  90. LEFTARMLERP.Parent = LeftArm
  91. LEFTARMLERP.Part0 = LeftArm
  92. LEFTARMLERP.Part1 = Torso
  93. LEFTARMLERP.C0 = CFrame.new(1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  94.  
  95. local RIGHTLEGLERP = Instance.new("ManualWeld")
  96. RIGHTLEGLERP.Parent = RightLeg
  97. RIGHTLEGLERP.Part0 = RightLeg
  98. RIGHTLEGLERP.Part1 = Torso
  99. RIGHTLEGLERP.C0 = CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  100.  
  101. local LEFTLEGLERP = Instance.new("ManualWeld")
  102. LEFTLEGLERP.Parent = LeftLeg
  103. LEFTLEGLERP.Part0 = LeftLeg
  104. LEFTLEGLERP.Part1 = Torso
  105. LEFTLEGLERP.C0 = CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  106.  
  107. local function weldBetween(a, b)
  108.     local weld = Instance.new("ManualWeld", a)
  109.     weld.Part0 = a
  110.     weld.Part1 = b
  111.     weld.C0 = a.CFrame:inverse() * b.CFrame
  112.     return weld
  113. end
  114.  
  115. function MAKETRAIL(PARENT,POSITION1,POSITION2,LIFETIME,COLOR)
  116. A = Instance.new("Attachment", PARENT)
  117. A.Position = POSITION1
  118. A.Name = "A"
  119. B = Instance.new("Attachment", PARENT)
  120. B.Position = POSITION2
  121. B.Name = "B"
  122. tr1 = Instance.new("Trail", PARENT)
  123. tr1.Attachment0 = A
  124. tr1.Attachment1 = B
  125. tr1.Enabled = true
  126. tr1.Lifetime = LIFETIME
  127. tr1.TextureMode = "Static"
  128. tr1.LightInfluence = 0
  129. tr1.Color = COLOR
  130. tr1.Transparency = NumberSequence.new(0, 1)
  131. end
  132.  
  133. introsound = Instance.new("Sound",Head)
  134. introsound.SoundId = "rbxassetid://236146895"
  135. introsound.Volume = 8
  136. introsound:Play()
  137.  
  138.  
  139.  
  140.  
  141. for i,v in pairs(Character:GetChildren()) do
  142. if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "Hat" or v.ClassName == "CharacterMesh" or v.ClassName == "Shirt Graphic" then
  143. v:Remove()
  144. end
  145. end
  146.  
  147. coroutine.wrap(function()
  148. while wait() do
  149. Head.face.Texture = "rbxasset://textures/face.png"
  150. hum.WalkSpeed = ws
  151. LeftArm.BrickColor = BrickColor.new("Bright yellow")
  152. RightArm.BrickColor = BrickColor.new("Bright yellow")
  153. Head.BrickColor = BrickColor.new("Bright yellow")
  154. Torso.BrickColor = BrickColor.new("Bright blue")
  155. LeftLeg.BrickColor = BrickColor.new("Br. yellowish green")
  156. RightLeg.BrickColor = BrickColor.new("Br. yellowish green")
  157. end
  158. end)()
  159. godmode = coroutine.wrap(function()
  160. for i,v in pairs(Character:GetChildren()) do
  161. if v:IsA("BasePart") and v ~= Root then
  162. v.Anchored = false
  163. end
  164. end
  165. while true do
  166. hum.MaxHealth = math.huge
  167. wait(0.0000001)
  168. hum.Health = math.huge
  169. wait()
  170. end
  171. end)
  172. godmode()
  173. ff = Instance.new("ForceField", Character)
  174. ff.Visible = false
  175.  
  176. coroutine.wrap(function()
  177. for i,v in pairs(Character:GetChildren()) do
  178. if v.Name == "Animate" then v:Remove()
  179. end
  180. end
  181. end)()
  182.  
  183. function damagealll(Radius,Position)       
  184.     local Returning = {}       
  185.     for _,v in pairs(workspace:GetChildren()) do       
  186.         if v~=Character and v:FindFirstChildOfClass('Humanoid') and v:FindFirstChild('Torso') or v:FindFirstChild('UpperTorso') then
  187. if v:FindFirstChild("Torso") then      
  188.             local Mag = (v.Torso.Position - Position).magnitude    
  189.             if Mag < Radius then       
  190.                 table.insert(Returning,v)      
  191.             end
  192. elseif v:FindFirstChild("UpperTorso") then 
  193.             local Mag = (v.UpperTorso.Position - Position).magnitude       
  194.             if Mag < Radius then       
  195.                 table.insert(Returning,v)      
  196.             end
  197. end
  198.         end    
  199.     end    
  200.     return Returning       
  201. end
  202.  
  203. ArtificialHB = Instance.new("BindableEvent", script)
  204. ArtificialHB.Name = "Heartbeat"
  205. script:WaitForChild("Heartbeat")
  206.  
  207. frame = 1 / 60
  208. tf = 0
  209. allowframeloss = false
  210. tossremainder = false
  211.  
  212.  
  213. lastframe = tick()
  214. script.Heartbeat:Fire()
  215.  
  216.  
  217. game:GetService("RunService").Heartbeat:connect(function(s, p)
  218.     tf = tf + s
  219.     if tf >= frame then
  220.         if allowframeloss then
  221.             script.Heartbeat:Fire()
  222.             lastframe = tick()
  223.         else
  224.             for i = 1, math.floor(tf / frame) do
  225.                 script.Heartbeat:Fire()
  226.             end
  227.             lastframe = tick()
  228.         end
  229.         if tossremainder then
  230.             tf = 0
  231.         else
  232.             tf = tf - frame * math.floor(tf / frame)
  233.         end
  234.     end
  235. end)
  236.  
  237. function swait(num)
  238.     if num == 0 or num == nil then
  239.         game:service("RunService").Stepped:wait(0)
  240.     else
  241.         for i = 0, num do
  242.             game:service("RunService").Stepped:wait(0)
  243.         end
  244.     end
  245. end
  246.  
  247. for _,n in pairs(Character:GetChildren()) do
  248. if n:IsA("Accessory") then n:Remove() end
  249. end
  250. for _,x in pairs(Character:GetChildren()) do
  251. if x:IsA("Decal") then x:Remove() end
  252. end
  253.  
  254.  
  255. ws = 14
  256.  
  257. function SOUND(PARENT,ID,VOL,LOOP,REMOVE)
  258. so = Instance.new("Sound")
  259. so.Parent = PARENT
  260. so.SoundId = "rbxassetid://"..ID
  261. so.Volume = VOL
  262. so.Looped = LOOP
  263.  
  264. so:Play()
  265. removeuseless:AddItem(so,REMOVE)
  266. end
  267.  
  268. mouse.KeyDown:connect(function(Press)
  269. Press=Press:lower()
  270. if Press=='k' then
  271. if dancing then
  272. dancing = false
  273. else
  274. dancing = true
  275. ws = 0
  276. change = .5
  277. attacking = true
  278. jam = Instance.new("Sound",Torso)
  279. jam.SoundId = "rbxassetid://665751753"
  280. jam.Volume = 8
  281. jam.Looped = true
  282. jam.TimePosition = 22.3
  283. jam:Play()
  284. lol90 = 0
  285. coroutine.wrap(function()
  286. while dancing do
  287. lol90 = lol90 + 11
  288. 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)
  289. ROOTLERP.C1 = ROOTLERP.C1:lerp(CFrame.new(0 * math.sin(sine/14),0,0) * CFrame.Angles(math.rad(0),math.rad(lol90),0),.25)
  290. 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)
  291. 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)
  292. 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)
  293. 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)
  294. swait()
  295. end
  296. ws = 14
  297. jam:Remove()
  298. ROOTLERP.C1 = CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  299. attacking = false
  300. end)()
  301. end
  302. end
  303. end)
  304.  
  305. mouse.KeyDown:connect(function(Press)
  306. Press=Press:lower()
  307. if Press=='j' then
  308. if dancing then
  309. dancing = false
  310. else
  311. dancing = true
  312. ws = 3
  313. change = .5
  314. attacking = true
  315. g1 = Instance.new("BodyGyro", Root)
  316. g1.D = 175
  317. g1.P = 20000
  318. g1.MaxTorque = Vector3.new(0,9000,0)
  319. herecomesthemoney = Instance.new("Sound",Torso)
  320. herecomesthemoney.Pitch = 1
  321. herecomesthemoney.SoundId = "rbxassetid://2712456145"
  322. herecomesthemoney.Volume = 8
  323. herecomesthemoney.Looped = true
  324. herecomesthemoney:Play()
  325. robuxpile = Instance.new("Part",Torso)
  326. robuxpile.Size = Vector3.new(1,1,1)
  327. robuxpile.CFrame = LeftArm.CFrame
  328. robuxpile.CanCollide = false
  329. robuxpileweld = Instance.new("Weld",robuxpile)
  330. robuxpileweld.Part0 = robuxpile
  331. robuxpileweld.Part1 = Torso
  332. robuxpileweld.C0 = robuxpile.CFrame:inverse() * LeftArm.CFrame * CFrame.new(1,-.7,1.4)
  333. mrobuxpile = Instance.new("SpecialMesh", robuxpile)
  334. mrobuxpile.MeshType = "FileMesh"
  335. mrobuxpile.Scale = Vector3.new(0.85, .85, .85)
  336. mrobuxpile.MeshId,mrobuxpile.TextureId = 'http://www.roblox.com/asset/?id=1285245','http://www.roblox.com/asset/?id=8587344'
  337. coroutine.wrap(function()
  338. coroutine.wrap(function()
  339. while wait(.35) do
  340. if not dancing then break end
  341. local robux = Instance.new("Part",Torso)
  342. robux.CFrame = robuxpile.CFrame * CFrame.Angles(math.rad(0),math.rad(90),math.rad(90))
  343. robux.Anchored = false
  344. robux.CanCollide = true
  345. robux.Size = Vector3.new(1,1,1)
  346.  
  347. local sur = Instance.new("BillboardGui", robux)
  348. sur.Name = "Billboard"
  349. sur.Adornee = robux
  350. sur.Size = UDim2.new(10, 0, 5, 0)
  351. sur.StudsOffset = Vector3.new(0, 1.5, 0)
  352. local text = Instance.new("TextLabel", sur)
  353. text.Text = "veteran"
  354. text.Size = UDim2.new(1, 0, 1, 0)
  355. text.TextScaled = true
  356. text.BackgroundTransparency = 1
  357. text.Font = Enum.Font.SourceSansLight
  358. text.TextColor3 = Color3.new(1, 1, 1)
  359. text.TextStrokeTransparency = 0
  360.  
  361. removeuseless:AddItem(robux,4)
  362. mrobux = Instance.new("SpecialMesh", robux)
  363. mrobux.MeshType = "FileMesh"
  364. mrobux.Scale = Vector3.new(1.25, 1.25, 1.25)
  365. mrobux.MeshId,mrobux.TextureId = 'http://www.roblox.com/asset/?id=667285348','http://www.roblox.com/asset/?id=665939136'
  366. bov = Instance.new("BodyVelocity",robux)
  367. bov.maxForce = Vector3.new(99999,99999,99999)
  368. robux.CFrame = CFrame.new(robux.Position,mouse.Hit.p)
  369. bov.velocity = robux.CFrame.lookVector*45
  370. removeuseless:AddItem(bov,.1)
  371. end
  372. end)()
  373. while dancing do
  374. g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.4)
  375. 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)
  376. 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)
  377. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1,.5,.5) * CFrame.Angles(math.rad(-87),math.rad(-20),math.rad(0)), 0.25)
  378. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 , .5) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(-10)), 0.25)
  379. 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)
  380. swait()
  381. end
  382. ws = 14
  383. removeuseless:AddItem(g1,.001)
  384. robuxpile:Remove()
  385. attacking = false
  386. end)()
  387. end
  388. end
  389. end)
  390.  
  391. mouse.KeyDown:connect(function(Press)
  392. Press=Press:lower()
  393. if Press=='h' then
  394. if dancing then
  395. dancing = false
  396. else
  397. dancing = true
  398. ws = 0
  399. change = .5
  400. attacking = true
  401. jellyfishjam = Instance.new("Sound",Torso)
  402. jellyfishjam.SoundId = "rbxassetid://840189092"
  403. jellyfishjam.Volume = 8
  404. jellyfishjam.Looped = true
  405. jellyfishjam.TimePosition = 14.8
  406. jellyfishjam:Play()
  407. coroutine.wrap(function()
  408. while dancing do
  409. for i = 1, 15 do
  410. if not dancing then break end
  411. 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)
  412. 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)
  413. 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)
  414. 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)
  415. 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)
  416. swait()
  417. end
  418. for i = 1, 15 do
  419. if not dancing then break end
  420. 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)
  421. 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)
  422. 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)
  423. 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)
  424. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, 0) * CFrame.Angles(0, math.rad(0), math.rad(10)), 0.25)
  425. swait()
  426. end
  427. for i = 1, 15 do
  428. if not dancing then break end
  429. 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)
  430. 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)
  431. 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)
  432. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 , 0) * CFrame.Angles(0, math.rad(0), math.rad(-10)), 0.25)
  433. 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)
  434. swait()
  435. end
  436. for i = 1, 15 do
  437. if not dancing then break end
  438. 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)
  439. 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)
  440. 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)
  441. 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)
  442. 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)
  443. swait()
  444. end
  445. swait()
  446. end
  447. ws = 14
  448. attacking = false
  449. end)()
  450. end
  451. end
  452. end)
  453.  
  454. mouse.KeyDown:connect(function(Press)
  455. Press=Press:lower()
  456. if Press=='g' then
  457. if dancing then
  458. dancing = false
  459. else
  460. dancing = true
  461. ws = 0
  462. change = .5
  463. attacking = true
  464. deadmau7 = Instance.new("Sound",Torso)
  465. deadmau7.SoundId = "rbxassetid://168166611"
  466. deadmau7.Volume = 8
  467. deadmau7.Looped = true
  468. deadmau7:Play()
  469. coroutine.wrap(function()
  470. coroutine.wrap(function()
  471. while dancing do
  472. 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)
  473. swait()
  474. end
  475. end)()
  476. while dancing do
  477. for i = 1, 28 do
  478. if not dancing then break end
  479. 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)
  480. 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)
  481. 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)
  482. 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)
  483. swait()
  484. end
  485. for i = 1, 28 do
  486. if not dancing then break end
  487. 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)
  488. 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)
  489. 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)
  490. 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)
  491. swait()
  492. end
  493. swait()
  494. end
  495. ws = 14
  496. deadmau7:Remove()
  497. attacking = false
  498. end)()
  499. end
  500. end
  501. end)
  502.  
  503. mouse.KeyDown:connect(function(Press)
  504. Press=Press:lower()
  505. if Press=='f' then
  506. if dancing then
  507. dancing = false
  508. else
  509. dancing = true
  510. ws = 6
  511. change = .5
  512. attacking = true
  513. bennyhill = Instance.new("Sound",Torso)
  514. bennyhill.SoundId = "rbxassetid://138211362"
  515. bennyhill.Volume = 8
  516. bennyhill.Looped = true
  517. bennyhill:Play()
  518. coroutine.wrap(function()
  519. while dancing do
  520. 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)
  521. 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)
  522. 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)
  523. 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)
  524. 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)
  525. swait()
  526. end
  527. ws = 14
  528. bennyhill:Remove()
  529. attacking = false
  530. end)()
  531. end
  532. end
  533. end)
  534.  
  535. mouse.KeyDown:connect(function(Press)
  536. Press=Press:lower()
  537. if Press=='p' then
  538. if dancing then
  539. dancing = false
  540. else
  541. dancing = true
  542. ws = 0
  543. change = .5
  544. attacking = true
  545. barrelspin = 0
  546. barrelrollsound = Instance.new("Sound",Torso)
  547. barrelrollsound.SoundId = "rbxassetid://505320170"
  548. barrelrollsound.Volume = 8
  549. barrelrollsound.Looped = true
  550. barrelrollsound:Play()
  551. barrol = Instance.new("Part",Torso)
  552. barrol.Size = Vector3.new(1,1,1)
  553. barrol.CFrame = Torso.CFrame
  554. barrol.CanCollide = false
  555. barrolweld = Instance.new("Weld",barrol)
  556. barrolweld.Part0 = barrol
  557. barrolweld.Part1 = Torso
  558. barrolweld.C0 = barrol.CFrame:inverse() * Torso.CFrame * CFrame.new(0,0,0)
  559. mbarrol = Instance.new("SpecialMesh", barrol)
  560. mbarrol.MeshType = "FileMesh"
  561. mbarrol.Scale = Vector3.new(1.05, .95, 1.05)
  562. mbarrol.MeshId,mbarrol.TextureId = 'http://www.roblox.com/asset/?id=29873142','http://www.roblox.com/asset/?id=31082268'
  563. coroutine.wrap(function()
  564. while dancing do
  565. 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)
  566. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,1.5,0) * CFrame.Angles(math.rad(180),0,math.rad(0)),.25)
  567. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,1.5,0) * CFrame.Angles(math.rad(180),0,math.rad(0)),.25)
  568. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(.5,2,0) * CFrame.Angles(0,0,0),.25)
  569. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.5,2,0) * CFrame.Angles(0,0,0),.25)
  570. swait()
  571. end
  572. ws = 14
  573. barrol:Remove()
  574. attacking = false
  575. end)()
  576. end
  577. end
  578. end)
  579.  
  580. mouse.KeyDown:connect(function(Press)
  581. Press=Press:lower()
  582. if Press=='q' then
  583. if dancing then
  584. dancing = false
  585. else
  586. dancing = true
  587. ws = 0
  588. change = .5
  589. spinningmove = 0
  590. dbwouldlovethis = Instance.new("Sound",Torso)
  591. dbwouldlovethis.SoundId = "rbxassetid://1532157598"
  592. dbwouldlovethis.Volume = 8
  593. dbwouldlovethis.Looped = true
  594. dbwouldlovethis:Play()
  595. attacking = true
  596. coroutine.wrap(function()
  597. while dancing do
  598. spinningmove = spinningmove + 10
  599. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.52, 1.9, -.35) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)),.2)
  600. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.52, 1.9, .35) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)),.2)
  601. 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)
  602. 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)
  603. 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)
  604. swait()
  605. end
  606. ws = 14
  607. dbwouldlovethis:Remove()
  608. attacking = false
  609. end)()
  610. end
  611. end
  612. end)
  613.  
  614.  
  615. mouse.KeyDown:connect(function(Press)
  616. Press=Press:lower()
  617. if Press=='u' then
  618. if dancing then
  619. dancing = false
  620. else
  621. dancing = true
  622. ws = 6
  623. change = .5
  624. attacking = true
  625. slavdance = Instance.new("Sound",Torso)
  626. slavdance.SoundId = "rbxassetid://2341226836"
  627. slavdance.Volume = 6
  628. slavdance.Looped = true
  629. slavdance:Play()
  630. coroutine.wrap(function()
  631. while dancing do
  632. for i = 1, 17 do
  633. if not dancing then break end
  634. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.52, 1.5, -.5) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)),.2)
  635. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.52, 1.2, .55) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)),.2)
  636. 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)
  637. 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)
  638. 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)
  639. swait()
  640. end
  641. for i = 1, 17 do
  642. if not dancing then break end
  643. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.52, 1.2, .55) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)),.2)
  644. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.52, 1.5, -.5) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)),.2)
  645. 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)
  646. 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)
  647. 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)
  648. swait()
  649. end
  650. swait()
  651. end
  652. ws = 14
  653. slavdance:Remove()
  654. attacking = false
  655. end)()
  656. end
  657. end
  658. end)
  659.  
  660. mouse.KeyDown:connect(function(Press)
  661. Press=Press:lower()
  662. if Press=='y' then
  663. if dancing then
  664. dancing = false
  665. else
  666. dancing = true
  667. ws = 0
  668. change = .5
  669. walkforward = 0
  670. walkrotation = 0
  671. attacking = true
  672. truelegend = Instance.new("Sound",Torso)
  673. truelegend.SoundId = "rbxassetid://487872908"
  674. truelegend.TimePosition = 13.98
  675. truelegend.Volume = 8
  676. truelegend.Looped = true
  677. truelegend:Play()
  678. coroutine.wrap(function()
  679. while dancing do
  680. for i = 1, 100 do
  681. if not dancing then break end
  682. walkforward = walkforward + .1
  683. 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)
  684. 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)
  685. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  686. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,0,0) * CFrame.Angles(0,0,math.rad(0)),.3)
  687. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,0,0) * CFrame.Angles(0,0,math.rad(0)),.3)
  688. swait()
  689. end
  690. for i = 1, 50 do
  691. if not dancing then break end
  692. walkrotation = walkrotation + 15
  693. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0),math.rad(walkrotation),math.rad(-0)),.2)
  694. swait()
  695. end
  696. walkrotation = 0
  697. for i = 1, 100 do
  698. if not dancing then break end
  699. walkforward = walkforward - .1
  700. 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)
  701. 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)
  702. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0),math.rad(-180),math.rad(-0)),.2)
  703. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.3,.7,.2) * CFrame.Angles(math.rad(220),math.rad(0),math.rad(-30)), 0.4)
  704. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,0,0) * CFrame.Angles(0,0,math.rad(0)),.3)
  705. swait()
  706. end
  707. for i = 1, 50 do
  708. if not dancing then break end
  709. walkrotation = walkrotation + 15
  710. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,0,0) * CFrame.Angles(0,0,math.rad(0)),.1)
  711. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0),math.rad(walkrotation),math.rad(-0)),.2)
  712. swait()
  713. end
  714. walkrotation = 0
  715. swait()
  716. end
  717. ws = 14
  718. truelegend:Remove()
  719. attacking = false
  720. end)()
  721. end
  722. end
  723. end)
  724.  
  725. mouse.KeyDown:connect(function(Press)
  726. Press=Press:lower()
  727. if Press=='t' then
  728. if dancing then
  729. dancing = false
  730. else
  731. dancing = true
  732. ws = 0
  733. change = .5
  734. attacking = true
  735. plummusic = Instance.new("Sound",Torso)
  736. plummusic.Volume = 8
  737. plummusic.Looped = true
  738. plummusic.SoundId = "rbxassetid://2526093213"
  739. plummusic:Play()
  740. coroutine.wrap(function()
  741. while dancing do
  742. for i = 1, 20 do
  743. if not dancing then break end
  744. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.33, 2 , .05) * CFrame.Angles(math.rad(3), math.rad(0), math.rad(-8)), 0.2)
  745. 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)
  746. 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)
  747. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(.5,1.98,.05) * CFrame.Angles(0,0,math.rad(-140)),.2)
  748. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,1.3,.05) * CFrame.Angles(0,0,math.rad(50)),.2)
  749. swait()
  750. end
  751. for i = 1, 20 do
  752. if not dancing then break end
  753. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.33, 2, .05) * CFrame.Angles(math.rad(3), math.rad(0), math.rad(-8)), 0.2)
  754. 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)
  755. 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)
  756. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1,1.4,.05) * CFrame.Angles(0,0,math.rad(-50)),.2)
  757. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(-.6,2,.05) * CFrame.Angles(0,0,math.rad(140)),.2)
  758. swait()
  759. end
  760. swait()
  761. end
  762. ws = 14
  763. plummusic:Remove()
  764. attacking = false
  765. end)()
  766. end
  767. end
  768. end)
  769.  
  770. mouse.KeyDown:connect(function(Press)
  771. Press=Press:lower()
  772. if Press=='e' then
  773. if dancing then
  774. dancing = false
  775. else
  776. dancing = true
  777. ws = 0
  778. change = .5
  779. attacking = true
  780. mrozo = Instance.new("Sound",Torso)
  781. mrozo.Volume = 8
  782. mrozo.SoundId = "rbxassetid://335701357"
  783. mrozo.Looped = true
  784. mrozo.TimePosition = 10
  785. mrozo:Play()
  786. coroutine.wrap(function()
  787. while dancing do
  788. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 , 0) * CFrame.Angles(0, math.rad(0), math.rad(-10)), 0.1)
  789. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, 0) * CFrame.Angles(0, math.rad(0), math.rad(10)), 0.1)
  790. 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)
  791. 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)
  792. 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)
  793. swait()
  794. end
  795. mrozo:Remove()
  796. ws = 14
  797. attacking = false
  798. end)()
  799. end
  800. end
  801. end)
  802.  
  803. mouse.KeyDown:connect(function(Press)
  804. Press=Press:lower()
  805. if Press=='r' then
  806. if dancing then
  807. dancing = false
  808. else
  809. ws = 6
  810. recordbaby = 0
  811. dancing = true
  812. change = .5
  813. attacking = true
  814. spinme = Instance.new("Sound",Torso)
  815. spinme.Volume = 8
  816. spinme.SoundId = "rbxassetid://145799973"
  817. spinme.Looped = true
  818. spinme:Play()
  819. coroutine.wrap(function()
  820. while dancing do
  821. recordbaby = recordbaby + 10
  822. 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)
  823. 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)
  824. 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)
  825. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.5,1.98,0) * CFrame.Angles(0,0,math.rad(-90)),.3)
  826. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.5,1.98,0) * CFrame.Angles(0,0,math.rad(90)),.3)
  827. swait()
  828. end
  829. spinme:Remove()
  830. ws = 14
  831. attacking = false
  832. end)()
  833. end
  834. end
  835. end)
  836.  
  837. function ray(pos, dir, rang, ignoredesc)
  838.     return workspace:FindPartOnRay(Ray.new(pos, dir.unit * rang), ignoredesc)
  839. end
  840.  
  841. function ray2(startpos, endpos, distance, ignore)
  842. local dir = CFrame.new(startpos,endpos).lookVector
  843. return ray(startpos, dir, distance, ignore)
  844. end
  845.  
  846. checks1 = coroutine.wrap(function() -------Checks
  847. while true do
  848. hf = ray(Root.Position,(CFrame.new(Root.Position,Root.Position+Vector3.new(0,-1,0))).lookVector,3*3,Character)
  849. if Root.Velocity.y > 1 then
  850. position = "Jump"
  851. elseif Root.Velocity.y < -1 then
  852. position = "Falling"
  853. elseif Root.Velocity.Magnitude < 2 then
  854. position = "Idle"
  855. elseif Root.Velocity.Magnitude > 2 then
  856. position = "Walking"
  857. elseif Root.Velocity.Magnitude > 20 then
  858. position = "Running"
  859. else
  860. end
  861. wait()
  862. end
  863. end)
  864. checks1()
  865.  
  866. function ray(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  867.     return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  868. end
  869.  
  870. function ray2(StartPos, EndPos, Distance, Ignore)
  871. local DIRECTION = CFrame.new(StartPos,EndPos).lookVector
  872. return ray(StartPos, DIRECTION, Distance, Ignore)
  873. end
  874.  
  875. OrgnC0 = Neck.C0
  876. local movelimbs = coroutine.wrap(function()
  877. while RunSrv.RenderStepped:wait() do
  878. TrsoLV = Torso.CFrame.lookVector
  879. Dist = nil
  880. Diff = nil
  881. if not MseGuide then
  882. print("Failed to recognize")
  883. else
  884. local _, Point = Workspace:FindPartOnRay(Ray.new(Head.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
  885. Dist = (Head.CFrame.p-Point).magnitude
  886. Diff = Head.CFrame.Y-Point.Y
  887. local _, Point2 = Workspace:FindPartOnRay(Ray.new(LeftArm.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
  888. Dist2 = (LeftArm.CFrame.p-Point).magnitude
  889. Diff2 = LeftArm.CFrame.Y-Point.Y
  890. HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  891. Neck.C0 = Neck.C0:lerp(OrgnC0*CFrame.Angles((math.tan(Diff/Dist)*1), 0, (((Head.CFrame.p-Point).Unit):Cross(Torso.CFrame.lookVector)).Y*1), .1)
  892. end
  893. end
  894. end)
  895. movelimbs()
  896. immortal = {}
  897. for i,v in pairs(Character:GetDescendants()) do
  898.     if v:IsA("BasePart") and v.Name ~= "lmagic" and v.Name ~= "rmagic" then
  899.         if v ~= Root and v ~= Torso and v ~= Head and v ~= RightArm and v ~= LeftArm and v ~= RightLeg and v.Name ~= "lmagic" and v.Name ~= "rmagic" and v ~= LeftLeg then
  900.             v.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  901.         end
  902.         table.insert(immortal,{v,v.Parent,v.Material,v.Color,v.Transparency})
  903.     elseif v:IsA("JointInstance") then
  904.         table.insert(immortal,{v,v.Parent,nil,nil,nil})
  905.     end
  906. end
  907. for e = 1, #immortal do
  908.     if immortal[e] ~= nil then
  909.         local STUFF = immortal[e]
  910.         local PART = STUFF[1]
  911.         local PARENT = STUFF[2]
  912.         local MATERIAL = STUFF[3]
  913.         local COLOR = STUFF[4]
  914.         local TRANSPARENCY = STUFF[5]
  915. if levitate then
  916.         if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= eyo1 and PART.Name ~= eyo2 and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then
  917.             PART.Material = MATERIAL
  918.             PART.Color = COLOR
  919.             PART.Transparency = TRANSPARENCY
  920.         end
  921.         PART.AncestryChanged:connect(function()
  922.             PART.Parent = PARENT
  923.         end)
  924. else
  925.         if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then
  926.             PART.Material = MATERIAL
  927.             PART.Color = COLOR
  928.             PART.Transparency = TRANSPARENCY
  929.         end
  930.         PART.AncestryChanged:connect(function()
  931.             PART.Parent = PARENT
  932.         end)
  933. end
  934.     end
  935. end
  936. function immortality()
  937.     for e = 1, #immortal do
  938.         if immortal[e] ~= nil then
  939.             local STUFF = immortal[e]
  940.             local PART = STUFF[1]
  941.             local PARENT = STUFF[2]
  942.             local MATERIAL = STUFF[3]
  943.             local COLOR = STUFF[4]
  944.             local TRANSPARENCY = STUFF[5]
  945.             if PART.ClassName == "Part" and PART == Root then
  946.                 PART.Material = MATERIAL
  947.                 PART.Color = COLOR
  948.                 PART.Transparency = TRANSPARENCY
  949.             end
  950.             if PART.Parent ~= PARENT then
  951.                 hum:Remove()
  952.                 PART.Parent = PARENT
  953.                 hum = Instance.new("Humanoid",Character)
  954.                                 hum.Name = "noneofurbusiness"
  955.             end
  956.         end
  957.     end
  958. end
  959. coroutine.wrap(function()
  960. while true do
  961. if hum.Health < .1 then
  962. deadsound = Instance.new("Sound", Torso)
  963. deadsound.Volume = 6
  964. deadsound.SoundId = "rbxassetid://1411352723"
  965. deadsound:Play()
  966. immortality()
  967. end
  968. wait()
  969. end
  970. end)()
  971.  
  972. local anims = coroutine.wrap(function()
  973. while true do
  974. settime = 0.05
  975. sine = sine + change
  976. if position == "Jump" and attacking == false then
  977. change = 1
  978. spin = false
  979. for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
  980. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  981. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  982. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
  983. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  984. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.4,.1,-.2) * CFrame.Angles(math.rad(20),math.rad(-3),math.rad(-4)), 0.2)
  985. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.2)
  986. 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)
  987. elseif position == "Falling" and attacking == false then
  988. change = 1
  989. spin = false
  990. for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
  991. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)), 0.15)
  992. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  993. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  994. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
  995. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(4), math.rad(0)), 0.2)
  996. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(-4), math.rad(0)), 0.2)
  997. 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)
  998. 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)
  999. elseif position == "Walking" and attacking == false and running == false then
  1000. change = 1.2
  1001. walking = true
  1002. spin = false
  1003. for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
  1004. 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)
  1005. 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)
  1006. 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)
  1007. 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)
  1008. 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)
  1009. elseif position == "Idle" and attacking == false and running == false then
  1010. change = .5
  1011. spin = true
  1012. for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
  1013. 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)
  1014. 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)
  1015. 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)
  1016. 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)
  1017. 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)
  1018. elseif position == "Running" and attacking == false then
  1019. change = 1
  1020. for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
  1021. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(0, .5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.3)
  1022. 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)
  1023. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1024. 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)
  1025. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*-math.sin(sine/4)),.3)
  1026. 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)
  1027. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*math.sin(sine/4)),.3)
  1028. 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)
  1029. end
  1030. swait()
  1031. end
  1032. end)
  1033. anims()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement