Advertisement
HenloMyDude

so basically im krystaldance

Aug 31st, 2019
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 44.65 KB | None | 0 0
  1. -----------//KRYSTAL DANCE V2\\-----------
  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. --Alright so before i start rambling on about absolute nonsense, please subscribe to Pewdiepie on youtube! Help him defeat T-Series!--
  18. --Also subscribe to Vengefulprogram--
  19. --Krystal dance! The old famous script that sadly has been broken(sorta), i've decided to rework this thing because... nostalgia.--
  20. --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.--
  21. --Credits to Krystalteam, they made the original krystal dance! Be sure to respect them or else...--
  22. --#makeoldscriptsgreatagain--
  23.  
  24. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {}
  25. do
  26. script.Parent = owner.Character
  27. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
  28. local function NewFakeEvent()
  29. local Bind = Instance.new("BindableEvent")
  30. local Fake;Fake = {Connections = {},
  31. fakeEvent=true;
  32. Connect=function(self,Func)
  33. Bind.Event:connect(Func)
  34. self.Connections[Bind] = true
  35. return setmetatable({Connected = true},{
  36. __index = function (self,Index)
  37. if Index:lower() == "disconnect" then
  38. return function() Fake.Connections[Bind] = false;self.Connected = false end
  39. end
  40. return Fake[Index]
  41. end;
  42. __tostring = function() return "Connection" end;
  43. })
  44. end}
  45. Fake.connect = Fake.Connect;return Fake;
  46. end
  47. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  48. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  49. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  50. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  51. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  52. local function TriggerEvent(self,Event,...)
  53. local Trigger = Mouse[Event]
  54. if Trigger and Trigger.fakeEvent and Trigger.Connections then
  55. for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
  56. end
  57. end
  58. Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
  59. Event.OnServerEvent:Connect(function(FiredBy,Input)
  60. if FiredBy.Name ~= owner.Name then return end
  61. if Input.MouseEvent then
  62. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  63. else
  64. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  65. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
  66. for _,Action in pairs(ContextActionService.Actions) do
  67. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  68. end
  69. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  70. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  71. end
  72. end)
  73. InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  74. Event.Parent = NLS([[
  75. local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
  76. local Input = function(Input,gameProcessedEvent)
  77. if gameProcessedEvent then return end
  78. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  79. end
  80. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  81. local Hit,Target
  82. while wait(1/30) do
  83. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  84. Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  85. end
  86. end
  87. ]],owner.Character)
  88. end
  89. RealGame = game;game = setmetatable({},{
  90. __index = function (self,Index)
  91. local Sandbox = function (Thing)
  92. if Thing:IsA("Player") then
  93. local RealPlayer = Thing
  94. return setmetatable({},{
  95. __index = function (self,Index)
  96. local Type = type(RealPlayer[Index])
  97. if Type == "function" then
  98. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  99. return function (self)return InternalData["Mouse"] end
  100. end
  101. return function (self,...)return RealPlayer[Index](RealPlayer,...) end
  102. end
  103. return RealPlayer[Index]
  104. end;
  105. __tostring = function(self) return RealPlayer.Name end
  106. })
  107. end
  108. end
  109. if RealGame[Index] then
  110. local Type = type(RealGame[Index])
  111. if Type == "function" then
  112. if Index:lower() == "getservice" or Index:lower() == "service" then
  113. return function (self,Service)
  114. local FakeServices = {
  115. ["players"] = function()
  116. return setmetatable({},{
  117. __index = function (self2,Index2)
  118. local RealService = RealGame:GetService(Service)
  119. local Type2 = type(Index2)
  120. if Type2 == "function" then
  121. return function (self,...) return RealService[Index2](RealService,...)end
  122. else
  123. if Index2:lower() == "localplayer" then return Sandbox(owner) end
  124. return RealService[Index2]
  125. end
  126. end;
  127. __tostring = function(self) return RealGame:GetService(Service).Name end
  128. })
  129. end;
  130. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  131. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  132. ["runservice"] = function()
  133. return setmetatable({},{
  134. __index = function(self2,Index2)
  135. local RealService = RealGame:GetService(Service)
  136. local Type2 = type(Index2)
  137. if Type2 == "function" then
  138. return function (self,...) return RealService[Index2](RealService,...) end
  139. else
  140. local RunServices = {
  141. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  142. ["renderstepped"] = function() return RealService["Stepped"] end
  143. }
  144. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  145. return RealService[Index2]
  146. end
  147. end
  148. })
  149. end
  150. }
  151. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  152. return RealGame:GetService(Service)
  153. end
  154. end
  155. return function (self,...) return RealGame[Index](RealGame,...) end
  156. else
  157. if game:GetService(Index) then return game:GetService(Index) end
  158. return RealGame[Index]
  159. end
  160. end
  161. return nil
  162. end
  163. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
  164.  
  165. Player=game.Players.LocalPlayer
  166. Character=Player.Character
  167. char=Character
  168. Character.Humanoid.Name = "noneofurbusiness"
  169. hum = Character.noneofurbusiness
  170. LeftArm=Character["Left Arm"]
  171. LeftLeg=Character["Left Leg"]
  172. RightArm=Character["Right Arm"]
  173. RightLeg=Character["Right Leg"]
  174. Root=Character["HumanoidRootPart"]
  175. Head=Character["Head"]
  176. Torso=Character["Torso"]
  177. Neck=Torso["Neck"]
  178. mouse = Player:GetMouse()
  179. walking = false
  180. jumping = false
  181. attacking = false
  182. firsttime = false
  183. tauntdebounce = false
  184. position = nil
  185. MseGuide = true
  186. running = false
  187. settime = 0
  188. sine = 0
  189. t = 0
  190. ws = 14
  191. change = 1
  192. combo1 = true
  193. dancing = false
  194. equip = false
  195. dgs = 75
  196. combo2 = false
  197. switch1 = true
  198. switch2 = false
  199. firsttime2 = false
  200. combo3 = false
  201. gunallowance = false
  202. shooting = false
  203. RunSrv = game:GetService("RunService")
  204. RenderStepped = game:GetService("RunService").RenderStepped
  205. removeuseless = game:GetService("Debris")
  206.  
  207. local RS2 = char.Torso["Right Shoulder"]
  208. local LS2 = char.Torso["Left Shoulder"]
  209. local RH2 = char.Torso["Right Hip"]
  210. local LH2 = char.Torso["Left Hip"]
  211.  
  212. screenGui = Instance.new("ScreenGui")
  213. screenGui.Parent = script.Parent
  214.  
  215. local HEADLERP = Instance.new("ManualWeld")
  216. HEADLERP.Parent = nil
  217. HEADLERP.Part0 = nil
  218. HEADLERP.Part1 = nil
  219. HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  220.  
  221. local RS = char.Torso["Right Shoulder"]
  222. RIGHTARMLERP = RS
  223. local LS = char.Torso["Left Shoulder"]
  224. LEFTARMLERP = LS
  225. local RH = char.Torso["Right Hip"]
  226. RIGHTLEGLERP = RH
  227. local LH = char.Torso["Left Hip"]
  228. LEFTLEGLERP = LH
  229. local rootj = char.HumanoidRootPart.RootJoint
  230. TORSOLERP = rootj
  231. ROOTLERP = rootj
  232.  
  233. local RSnor = RS.C0
  234. local LSnor = LS.C0
  235. local RHnor = RH.C0
  236. local LHnor = LH.C0
  237. local rootjnor = rootj.C0
  238. local rootj = char.HumanoidRootPart.RootJoint
  239.  
  240. local function weldBetween(a, b)
  241. local weld = Instance.new("ManualWeld", a)
  242. weld.Part0 = a
  243. weld.Part1 = b
  244. weld.C0 = a.CFrame:inverse() * b.CFrame
  245. return weld
  246. end
  247.  
  248. function MAKETRAIL(PARENT,POSITION1,POSITION2,LIFETIME,COLOR)
  249. A = Instance.new("Attachment", PARENT)
  250. A.Position = POSITION1
  251. A.Name = "A"
  252. B = Instance.new("Attachment", PARENT)
  253. B.Position = POSITION2
  254. B.Name = "B"
  255. tr1 = Instance.new("Trail", PARENT)
  256. tr1.Attachment0 = A
  257. tr1.Attachment1 = B
  258. tr1.Enabled = true
  259. tr1.Lifetime = LIFETIME
  260. tr1.TextureMode = "Static"
  261. tr1.LightInfluence = 0
  262. tr1.Color = COLOR
  263. tr1.Transparency = NumberSequence.new(0, 1)
  264. end
  265.  
  266. introsound = Instance.new("Sound",Head)
  267. introsound.SoundId = "rbxassetid://236146895"
  268. introsound.Volume = 8
  269. introsound:Play()
  270.  
  271.  
  272. fedora = Instance.new("Part",Character)
  273. fedora.Size = Vector3.new(2,2,2)
  274. fedora.CFrame = Head.CFrame
  275. fedora.CanCollide = false
  276. fedoraweld = Instance.new("Weld",fedora)
  277. fedoraweld.Part0 = fedora
  278. fedoraweld.Part1 = Head
  279. fedoraweld.C0 = fedora.CFrame:inverse() * Head.CFrame * CFrame.new(0,-.75,0)
  280. mfedora = Instance.new("SpecialMesh", fedora)
  281. mfedora.MeshType = "FileMesh"
  282. mfedora.Scale = Vector3.new(.97, .97, .97)
  283. mfedora.MeshId,mfedora.TextureId = 'http://www.roblox.com/asset/?id=13640868','http://www.roblox.com/asset/?id=18987684'
  284.  
  285. shades = Instance.new("Part",Character)
  286. shades.Size = Vector3.new(2,2,2)
  287. shades.CFrame = Head.CFrame
  288. shades.CanCollide = false
  289. shadesweld = Instance.new("Weld",shades)
  290. shadesweld.Part0 = shades
  291. shadesweld.Part1 = Head
  292. shadesweld.C0 = shades.CFrame:inverse() * Head.CFrame * CFrame.new(0,-.2,.15)
  293. mshades = Instance.new("SpecialMesh", shades)
  294. mshades.MeshType = "FileMesh"
  295. mshades.Scale = Vector3.new(1.04, 1.28, 1.04)
  296. mshades.MeshId,mshades.TextureId = 'http://www.roblox.com/asset/?id=1577360','http://www.roblox.com/asset/?id=1577349'
  297.  
  298. for i,v in pairs(Character:GetChildren()) do
  299. if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "Hat" or v.ClassName == "CharacterMesh" or v.ClassName == "Shirt Graphic" then
  300. v:Remove()
  301. end
  302. end
  303.  
  304. coroutine.wrap(function()
  305. while wait() do
  306. Head.face.Texture = "rbxasset://textures/face.png"
  307. hum.WalkSpeed = ws
  308. LeftArm.BrickColor = BrickColor.new("Really black")
  309. RightArm.BrickColor = BrickColor.new("Really black")
  310. Head.BrickColor = BrickColor.new("White")
  311. Torso.BrickColor = BrickColor.new("Really black")
  312. LeftLeg.BrickColor = BrickColor.new("Really black")
  313. RightLeg.BrickColor = BrickColor.new("Really black")
  314. end
  315. end)()
  316. godmode = coroutine.wrap(function()
  317. for i,v in pairs(Character:GetChildren()) do
  318. if v:IsA("BasePart") and v ~= Root then
  319. v.Anchored = false
  320. end
  321. end
  322. while true do
  323. hum.MaxHealth = math.huge
  324. wait(0.0000001)
  325. hum.Health = math.huge
  326. wait()
  327. end
  328. end)
  329. godmode()
  330. ff = Instance.new("ForceField", Character)
  331. ff.Visible = false
  332.  
  333. coroutine.wrap(function()
  334. for i,v in pairs(Character:GetChildren()) do
  335. if v.Name == "Animate" then v:Remove()
  336. end
  337. end
  338. end)()
  339.  
  340. function damagealll(Radius,Position)
  341. local Returning = {}
  342. for _,v in pairs(workspace:GetChildren()) do
  343. if v~=Character and v:FindFirstChildOfClass('Humanoid') and v:FindFirstChild('Torso') or v:FindFirstChild('UpperTorso') then
  344. if v:FindFirstChild("Torso") then
  345. local Mag = (v.Torso.Position - Position).magnitude
  346. if Mag < Radius then
  347. table.insert(Returning,v)
  348. end
  349. elseif v:FindFirstChild("UpperTorso") then
  350. local Mag = (v.UpperTorso.Position - Position).magnitude
  351. if Mag < Radius then
  352. table.insert(Returning,v)
  353. end
  354. end
  355. end
  356. end
  357. return Returning
  358. end
  359.  
  360. ArtificialHB = Instance.new("BindableEvent", script)
  361. ArtificialHB.Name = "Heartbeat"
  362. script:WaitForChild("Heartbeat")
  363.  
  364. frame = 1 / 60
  365. tf = 0
  366. allowframeloss = false
  367. tossremainder = false
  368.  
  369.  
  370. lastframe = tick()
  371. script.Heartbeat:Fire()
  372.  
  373.  
  374. game:GetService("RunService").Heartbeat:connect(function(s, p)
  375. tf = tf + s
  376. if tf >= frame then
  377. if allowframeloss then
  378. script.Heartbeat:Fire()
  379. lastframe = tick()
  380. else
  381. for i = 1, math.floor(tf / frame) do
  382. script.Heartbeat:Fire()
  383. end
  384. lastframe = tick()
  385. end
  386. if tossremainder then
  387. tf = 0
  388. else
  389. tf = tf - frame * math.floor(tf / frame)
  390. end
  391. end
  392. end)
  393.  
  394. function swait(num)
  395. if num == 0 or num == nil then
  396. game:service("RunService").Stepped:wait(0)
  397. else
  398. for i = 0, num do
  399. game:service("RunService").Stepped:wait(0)
  400. end
  401. end
  402. end
  403.  
  404. for _,n in pairs(Character:GetChildren()) do
  405. if n:IsA("Accessory") then n:Remove() end
  406. end
  407. for _,x in pairs(Character:GetChildren()) do
  408. if x:IsA("Decal") then x:Remove() end
  409. end
  410.  
  411. intro = true
  412. ws = 0
  413.  
  414. bigfedora = Instance.new("Part",Character)
  415. bigfedora.Size = Vector3.new(2,2,2)
  416. bigfedora.CFrame = bigfedora.CFrame:inverse() * Root.CFrame * CFrame.new(math.random(-60,60),-.2,math.random(-60,60)) * CFrame.Angles(0,math.rad(math.random(-180,180)),0)
  417. bigfedora.CanCollide = false
  418. bigfedora.Anchored = true
  419. bigfedora.Name = "mbigf"
  420. mbigfedora = Instance.new("SpecialMesh", bigfedora)
  421. mbigfedora.MeshType = "FileMesh"
  422. mbigfedora.Scale = Vector3.new(6, 7, 7)
  423. mbigfedora.MeshId,mbigfedora.TextureId = 'http://www.roblox.com/asset/?id=13640868','http://www.roblox.com/asset/?id=18987684'
  424. for i,v in pairs(Character:GetDescendants()) do
  425. if v:IsA("Part") and v.Name ~= "mbigf" then v.Transparency = 1
  426. end
  427. end
  428. for i = 1, 60 do
  429. bigfedora.CFrame = bigfedora.CFrame:lerp(CFrame.new(Root.Position) * CFrame.new(0,-.1,0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.09)
  430. swait()
  431. end
  432. wait(.25)
  433. for i,v in pairs(Character:GetDescendants()) do
  434. if v:IsA("Part") and v.Name ~= "mbigf" and v.Name ~= "HumanoidRootPart" then v.Transparency = 0
  435. end
  436. end
  437. for i = 1, 50 do
  438. bigfedora.CFrame = bigfedora.CFrame:lerp(CFrame.new(fedora.Position),.05)
  439. swait()
  440. end
  441. zmc = 0
  442. for i = 1, 29 do
  443. zmc = zmc + 2
  444. mbigfedora.Scale = mbigfedora.Scale - Vector3.new(.25,.25,.25)
  445. bigfedora.CFrame = bigfedora.CFrame * CFrame.Angles(math.rad(0),math.rad(zmc),0)
  446. swait()
  447. end
  448. bigfedora:Remove()
  449.  
  450. ws = 14
  451.  
  452. function SOUND(PARENT,ID,VOL,LOOP,REMOVE)
  453. so = Instance.new("Sound")
  454. so.Parent = PARENT
  455. so.SoundId = "rbxassetid://"..ID
  456. so.Volume = VOL
  457. so.Looped = LOOP
  458.  
  459. so:Play()
  460. removeuseless:AddItem(so,REMOVE)
  461. end
  462.  
  463. mouse.KeyDown:connect(function(Press)
  464. Press=Press:lower()
  465. if Press=='k' then
  466. if dancing then
  467. dancing = false
  468. else
  469. dancing = true
  470. ws = 0
  471. change = .5
  472. attacking = true
  473. jam = Instance.new("Sound",Torso)
  474. jam.SoundId = "rbxassetid://665751753"
  475. jam.Volume = 8
  476. jam.Looped = true
  477. jam.TimePosition = 22.3
  478. jam:Play()
  479. lol90 = 0
  480. coroutine.wrap(function()
  481. while dancing do
  482. lol90 = lol90 + 11
  483. 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)
  484. ROOTLERP.C1 = ROOTLERP.C1:lerp(CFrame.new(0 * math.sin(sine/14),0,0) * CFrame.Angles(math.rad(0),math.rad(lol90),0),.25)
  485. 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)
  486. 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)
  487. 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)
  488. 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)
  489. swait()
  490. end
  491. ws = 14
  492. jam:Remove()
  493. ROOTLERP.C1 = CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  494. attacking = false
  495. end)()
  496. end
  497. end
  498. end)
  499.  
  500. mouse.KeyDown:connect(function(Press)
  501. Press=Press:lower()
  502. if Press=='j' then
  503. if dancing then
  504. dancing = false
  505. else
  506. dancing = true
  507. ws = 3
  508. change = .5
  509. attacking = true
  510. g1 = Instance.new("BodyGyro", Root)
  511. g1.D = 175
  512. g1.P = 20000
  513. g1.MaxTorque = Vector3.new(0,9000,0)
  514. herecomesthemoney = Instance.new("Sound",Torso)
  515. herecomesthemoney.Pitch = 1
  516. herecomesthemoney.SoundId = "rbxassetid://2426693638"
  517. herecomesthemoney.Volume = 8
  518. herecomesthemoney.Looped = true
  519. herecomesthemoney:Play()
  520. robuxpile = Instance.new("Part",Torso)
  521. robuxpile.Size = Vector3.new(1,1,1)
  522. robuxpile.CFrame = LeftArm.CFrame
  523. robuxpile.CanCollide = false
  524. robuxpileweld = Instance.new("Weld",robuxpile)
  525. robuxpileweld.Part0 = robuxpile
  526. robuxpileweld.Part1 = Torso
  527. robuxpileweld.C0 = robuxpile.CFrame:inverse() * LeftArm.CFrame * CFrame.new(1,-.7,1.4)
  528. mrobuxpile = Instance.new("SpecialMesh", robuxpile)
  529. mrobuxpile.MeshType = "FileMesh"
  530. mrobuxpile.Scale = Vector3.new(0.85, .85, .85)
  531. mrobuxpile.MeshId,mrobuxpile.TextureId = 'http://www.roblox.com/asset/?id=1285245','http://www.roblox.com/asset/?id=8587344'
  532. coroutine.wrap(function()
  533. coroutine.wrap(function()
  534. while wait(.35) do
  535. if not dancing then break end
  536. local robux = Instance.new("Part",Torso)
  537. robux.CFrame = robuxpile.CFrame * CFrame.Angles(math.rad(0),math.rad(90),math.rad(90))
  538. robux.Anchored = false
  539. robux.CanCollide = true
  540. robux.Size = Vector3.new(1,1,1)
  541. removeuseless:AddItem(robux,4)
  542. mrobux = Instance.new("SpecialMesh", robux)
  543. mrobux.MeshType = "FileMesh"
  544. mrobux.Scale = Vector3.new(1.25, 1.25, 1.25)
  545. mrobux.MeshId,mrobux.TextureId = 'http://www.roblox.com/asset/?id=667285348','http://www.roblox.com/asset/?id=665939136'
  546. bov = Instance.new("BodyVelocity",robux)
  547. bov.maxForce = Vector3.new(99999,99999,99999)
  548. robux.CFrame = CFrame.new(robux.Position,mouse.Hit.p)
  549. bov.velocity = robux.CFrame.lookVector*45
  550. removeuseless:AddItem(bov,.1)
  551. end
  552. end)()
  553. while dancing do
  554. g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.4)
  555. 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)
  556. 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)
  557. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1,.5,.5) * CFrame.Angles(math.rad(-87),math.rad(-20),math.rad(0)), 0.25)
  558. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 , .5) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(-10)), 0.25)
  559. 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)
  560. swait()
  561. end
  562. ws = 14
  563. removeuseless:AddItem(g1,.001)
  564. robuxpile:Remove()
  565. attacking = false
  566. end)()
  567. end
  568. end
  569. end)
  570.  
  571. mouse.KeyDown:connect(function(Press)
  572. Press=Press:lower()
  573. if Press=='h' then
  574. if dancing then
  575. dancing = false
  576. else
  577. dancing = true
  578. ws = 0
  579. change = .5
  580. attacking = true
  581. jellyfishjam = Instance.new("Sound",Torso)
  582. jellyfishjam.SoundId = "rbxassetid://840189092"
  583. jellyfishjam.Volume = 8
  584. jellyfishjam.Looped = true
  585. jellyfishjam.TimePosition = 14.8
  586. jellyfishjam:Play()
  587. coroutine.wrap(function()
  588. while dancing do
  589. for i = 1, 15 do
  590. if not dancing then break end
  591. 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)
  592. 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)
  593. 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)
  594. 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)
  595. 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)
  596. swait()
  597. end
  598. for i = 1, 15 do
  599. if not dancing then break end
  600. 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)
  601. 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)
  602. 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)
  603. 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)
  604. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, 0) * CFrame.Angles(0, math.rad(0), math.rad(10)), 0.25)
  605. swait()
  606. end
  607. for i = 1, 15 do
  608. if not dancing then break end
  609. 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)
  610. 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)
  611. 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)
  612. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 , 0) * CFrame.Angles(0, math.rad(0), math.rad(-10)), 0.25)
  613. 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)
  614. swait()
  615. end
  616. for i = 1, 15 do
  617. if not dancing then break end
  618. 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)
  619. 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)
  620. 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)
  621. 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)
  622. 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)
  623. swait()
  624. end
  625. swait()
  626. end
  627. ws = 14
  628. attacking = false
  629. end)()
  630. end
  631. end
  632. end)
  633.  
  634. mouse.KeyDown:connect(function(Press)
  635. Press=Press:lower()
  636. if Press=='g' then
  637. if dancing then
  638. dancing = false
  639. else
  640. dancing = true
  641. ws = 0
  642. change = .5
  643. attacking = true
  644. deadmau7 = Instance.new("Sound",Torso)
  645. deadmau7.SoundId = "rbxassetid://168166611"
  646. deadmau7.Volume = 8
  647. deadmau7.Looped = true
  648. deadmau7:Play()
  649. coroutine.wrap(function()
  650. coroutine.wrap(function()
  651. while dancing do
  652. 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)
  653. swait()
  654. end
  655. end)()
  656. while dancing do
  657. for i = 1, 28 do
  658. if not dancing then break end
  659. 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)
  660. 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)
  661. 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)
  662. 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)
  663. swait()
  664. end
  665. for i = 1, 28 do
  666. if not dancing then break end
  667. 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)
  668. 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)
  669. 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)
  670. 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)
  671. swait()
  672. end
  673. swait()
  674. end
  675. ws = 14
  676. deadmau7:Remove()
  677. attacking = false
  678. end)()
  679. end
  680. end
  681. end)
  682.  
  683. mouse.KeyDown:connect(function(Press)
  684. Press=Press:lower()
  685. if Press=='f' then
  686. if dancing then
  687. dancing = false
  688. else
  689. dancing = true
  690. ws = 6
  691. change = .5
  692. attacking = true
  693. bennyhill = Instance.new("Sound",Torso)
  694. bennyhill.SoundId = "rbxassetid://138211362"
  695. bennyhill.Volume = 8
  696. bennyhill.Looped = true
  697. bennyhill:Play()
  698. coroutine.wrap(function()
  699. while dancing do
  700. 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)
  701. 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)
  702. 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)
  703. 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)
  704. 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)
  705. swait()
  706. end
  707. ws = 14
  708. bennyhill:Remove()
  709. attacking = false
  710. end)()
  711. end
  712. end
  713. end)
  714.  
  715. mouse.KeyDown:connect(function(Press)
  716. Press=Press:lower()
  717. if Press=='p' then
  718. if dancing then
  719. dancing = false
  720. else
  721. dancing = true
  722. ws = 0
  723. change = .5
  724. attacking = true
  725. barrelspin = 0
  726. barrelrollsound = Instance.new("Sound",Torso)
  727. barrelrollsound.SoundId = "rbxassetid://505320170"
  728. barrelrollsound.Volume = 8
  729. barrelrollsound.Looped = true
  730. barrelrollsound:Play()
  731. barrol = Instance.new("Part",Torso)
  732. barrol.Size = Vector3.new(1,1,1)
  733. barrol.CFrame = Torso.CFrame
  734. barrol.CanCollide = false
  735. barrolweld = Instance.new("Weld",barrol)
  736. barrolweld.Part0 = barrol
  737. barrolweld.Part1 = Torso
  738. barrolweld.C0 = barrol.CFrame:inverse() * Torso.CFrame * CFrame.new(0,0,0)
  739. mbarrol = Instance.new("SpecialMesh", barrol)
  740. mbarrol.MeshType = "FileMesh"
  741. mbarrol.Scale = Vector3.new(1.05, .95, 1.05)
  742. mbarrol.MeshId,mbarrol.TextureId = 'http://www.roblox.com/asset/?id=29873142','http://www.roblox.com/asset/?id=31082268'
  743. coroutine.wrap(function()
  744. while dancing do
  745. 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)
  746. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,1.5,0) * CFrame.Angles(math.rad(180),0,math.rad(0)),.25)
  747. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,1.5,0) * CFrame.Angles(math.rad(180),0,math.rad(0)),.25)
  748. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(.5,2,0) * CFrame.Angles(0,0,0),.25)
  749. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.5,2,0) * CFrame.Angles(0,0,0),.25)
  750. swait()
  751. end
  752. ws = 14
  753. barrol:Remove()
  754. attacking = false
  755. end)()
  756. end
  757. end
  758. end)
  759.  
  760. mouse.KeyDown:connect(function(Press)
  761. Press=Press:lower()
  762. if Press=='q' then
  763. if dancing then
  764. dancing = false
  765. else
  766. dancing = true
  767. ws = 0
  768. change = .5
  769. spinningmove = 0
  770. dbwouldlovethis = Instance.new("Sound",Torso)
  771. dbwouldlovethis.SoundId = "rbxassetid://1532157598"
  772. dbwouldlovethis.Volume = 8
  773. dbwouldlovethis.Looped = true
  774. dbwouldlovethis:Play()
  775. attacking = true
  776. coroutine.wrap(function()
  777. while dancing do
  778. spinningmove = spinningmove + 10
  779. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.52, 1.9, -.35) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)),.2)
  780. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.52, 1.9, .35) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)),.2)
  781. 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)
  782. 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)
  783. 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)
  784. swait()
  785. end
  786. ws = 14
  787. dbwouldlovethis:Remove()
  788. attacking = false
  789. end)()
  790. end
  791. end
  792. end)
  793.  
  794.  
  795. mouse.KeyDown:connect(function(Press)
  796. Press=Press:lower()
  797. if Press=='u' then
  798. if dancing then
  799. dancing = false
  800. else
  801. dancing = true
  802. ws = 6
  803. change = .5
  804. attacking = true
  805. slavdance = Instance.new("Sound",Torso)
  806. slavdance.SoundId = "rbxassetid://2341226836"
  807. slavdance.Volume = 6
  808. slavdance.Looped = true
  809. slavdance:Play()
  810. coroutine.wrap(function()
  811. while dancing do
  812. for i = 1, 17 do
  813. if not dancing then break end
  814. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.52, 1.5, -.5) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)),.2)
  815. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.52, 1.2, .55) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)),.2)
  816. 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)
  817. 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)
  818. 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)
  819. swait()
  820. end
  821. for i = 1, 17 do
  822. if not dancing then break end
  823. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.52, 1.2, .55) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)),.2)
  824. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.52, 1.5, -.5) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)),.2)
  825. 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)
  826. 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)
  827. 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)
  828. swait()
  829. end
  830. swait()
  831. end
  832. ws = 14
  833. slavdance:Remove()
  834. attacking = false
  835. end)()
  836. end
  837. end
  838. end)
  839.  
  840. mouse.KeyDown:connect(function(Press)
  841. Press=Press:lower()
  842. if Press=='y' then
  843. if dancing then
  844. dancing = false
  845. else
  846. dancing = true
  847. ws = 0
  848. change = .5
  849. walkforward = 0
  850. walkrotation = 0
  851. attacking = true
  852. truelegend = Instance.new("Sound",Torso)
  853. truelegend.SoundId = "rbxassetid://487872908"
  854. truelegend.TimePosition = 13.98
  855. truelegend.Volume = 8
  856. truelegend.Looped = true
  857. truelegend:Play()
  858. coroutine.wrap(function()
  859. while dancing do
  860. for i = 1, 100 do
  861. if not dancing then break end
  862. walkforward = walkforward + .1
  863. 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)
  864. 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)
  865. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  866. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,0,0) * CFrame.Angles(0,0,math.rad(0)),.3)
  867. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,0,0) * CFrame.Angles(0,0,math.rad(0)),.3)
  868. swait()
  869. end
  870. for i = 1, 50 do
  871. if not dancing then break end
  872. walkrotation = walkrotation + 15
  873. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0),math.rad(walkrotation),math.rad(-0)),.2)
  874. swait()
  875. end
  876. walkrotation = 0
  877. for i = 1, 100 do
  878. if not dancing then break end
  879. walkforward = walkforward - .1
  880. 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)
  881. 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)
  882. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0),math.rad(-180),math.rad(-0)),.2)
  883. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.3,.7,.2) * CFrame.Angles(math.rad(220),math.rad(0),math.rad(-30)), 0.4)
  884. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,0,0) * CFrame.Angles(0,0,math.rad(0)),.3)
  885. swait()
  886. end
  887. for i = 1, 50 do
  888. if not dancing then break end
  889. walkrotation = walkrotation + 15
  890. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,0,0) * CFrame.Angles(0,0,math.rad(0)),.1)
  891. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0),math.rad(walkrotation),math.rad(-0)),.2)
  892. swait()
  893. end
  894. walkrotation = 0
  895. swait()
  896. end
  897. ws = 14
  898. truelegend:Remove()
  899. attacking = false
  900. end)()
  901. end
  902. end
  903. end)
  904.  
  905. mouse.KeyDown:connect(function(Press)
  906. Press=Press:lower()
  907. if Press=='t' then
  908. if dancing then
  909. dancing = false
  910. else
  911. dancing = true
  912. ws = 0
  913. change = .5
  914. attacking = true
  915. plummusic = Instance.new("Sound",Torso)
  916. plummusic.Volume = 8
  917. plummusic.Looped = true
  918. plummusic.SoundId = "rbxassetid://2526093213"
  919. plummusic:Play()
  920. coroutine.wrap(function()
  921. while dancing do
  922. for i = 1, 20 do
  923. if not dancing then break end
  924. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.33, 2 , .05) * CFrame.Angles(math.rad(3), math.rad(0), math.rad(-8)), 0.2)
  925. 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)
  926. 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)
  927. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(.5,1.98,.05) * CFrame.Angles(0,0,math.rad(-140)),.2)
  928. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,1.3,.05) * CFrame.Angles(0,0,math.rad(50)),.2)
  929. swait()
  930. end
  931. for i = 1, 20 do
  932. if not dancing then break end
  933. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.33, 2, .05) * CFrame.Angles(math.rad(3), math.rad(0), math.rad(-8)), 0.2)
  934. 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)
  935. 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)
  936. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1,1.4,.05) * CFrame.Angles(0,0,math.rad(-50)),.2)
  937. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(-.6,2,.05) * CFrame.Angles(0,0,math.rad(140)),.2)
  938. swait()
  939. end
  940. swait()
  941. end
  942. ws = 14
  943. plummusic:Remove()
  944. attacking = false
  945. end)()
  946. end
  947. end
  948. end)
  949.  
  950. mouse.KeyDown:connect(function(Press)
  951. Press=Press:lower()
  952. if Press=='e' then
  953. if dancing then
  954. dancing = false
  955. else
  956. dancing = true
  957. ws = 0
  958. change = .5
  959. attacking = true
  960. mrozo = Instance.new("Sound",Torso)
  961. mrozo.Volume = 8
  962. mrozo.SoundId = "rbxassetid://335701357"
  963. mrozo.Looped = true
  964. mrozo.TimePosition = 10
  965. mrozo:Play()
  966. coroutine.wrap(function()
  967. while dancing do
  968. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 , 0) * CFrame.Angles(0, math.rad(0), math.rad(-10)), 0.1)
  969. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, 0) * CFrame.Angles(0, math.rad(0), math.rad(10)), 0.1)
  970. 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)
  971. 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)
  972. 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)
  973. swait()
  974. end
  975. mrozo:Remove()
  976. ws = 14
  977. attacking = false
  978. end)()
  979. end
  980. end
  981. end)
  982.  
  983. mouse.KeyDown:connect(function(Press)
  984. Press=Press:lower()
  985. if Press=='r' then
  986. if dancing then
  987. dancing = false
  988. else
  989. ws = 6
  990. recordbaby = 0
  991. dancing = true
  992. change = .5
  993. attacking = true
  994. spinme = Instance.new("Sound",Torso)
  995. spinme.Volume = 8
  996. spinme.SoundId = "rbxassetid://145799973"
  997. spinme.Looped = true
  998. spinme:Play()
  999. coroutine.wrap(function()
  1000. while dancing do
  1001. recordbaby = recordbaby + 10
  1002. 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)
  1003. 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)
  1004. 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)
  1005. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.5,1.98,0) * CFrame.Angles(0,0,math.rad(-90)),.3)
  1006. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.5,1.98,0) * CFrame.Angles(0,0,math.rad(90)),.3)
  1007. swait()
  1008. end
  1009. spinme:Remove()
  1010. ws = 14
  1011. attacking = false
  1012. end)()
  1013. end
  1014. end
  1015. end)
  1016.  
  1017. function ray(pos, dir, rang, ignoredesc)
  1018. return workspace:FindPartOnRay(Ray.new(pos, dir.unit * rang), ignoredesc)
  1019. end
  1020.  
  1021. function ray2(startpos, endpos, distance, ignore)
  1022. local dir = CFrame.new(startpos,endpos).lookVector
  1023. return ray(startpos, dir, distance, ignore)
  1024. end
  1025.  
  1026. checks1 = coroutine.wrap(function() -------Checks
  1027. while true do
  1028. hf = ray(Root.Position,(CFrame.new(Root.Position,Root.Position+Vector3.new(0,-1,0))).lookVector,3*3,Character)
  1029. if Root.Velocity.y > 1 then
  1030. position = "Jump"
  1031. elseif Root.Velocity.y < -1 then
  1032. position = "Falling"
  1033. elseif Root.Velocity.Magnitude < 2 then
  1034. position = "Idle"
  1035. elseif Root.Velocity.Magnitude > 2 then
  1036. position = "Walking"
  1037. elseif Root.Velocity.Magnitude > 20 then
  1038. position = "Running"
  1039. else
  1040. end
  1041. wait()
  1042. end
  1043. end)
  1044. checks1()
  1045.  
  1046. function ray(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  1047. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  1048. end
  1049.  
  1050. function ray2(StartPos, EndPos, Distance, Ignore)
  1051. local DIRECTION = CFrame.new(StartPos,EndPos).lookVector
  1052. return ray(StartPos, DIRECTION, Distance, Ignore)
  1053. end
  1054.  
  1055. OrgnC0 = Neck.C0
  1056. local movelimbs = coroutine.wrap(function()
  1057. while RunSrv.RenderStepped:wait() do
  1058. TrsoLV = Torso.CFrame.lookVector
  1059. Dist = nil
  1060. Diff = nil
  1061. if not MseGuide then
  1062. print("Failed to recognize")
  1063. else
  1064. local _, Point = Workspace:FindPartOnRay(Ray.new(Head.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
  1065. Dist = (Head.CFrame.p-Point).magnitude
  1066. Diff = Head.CFrame.Y-Point.Y
  1067. local _, Point2 = Workspace:FindPartOnRay(Ray.new(LeftArm.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
  1068. Dist2 = (LeftArm.CFrame.p-Point).magnitude
  1069. Diff2 = LeftArm.CFrame.Y-Point.Y
  1070. HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  1071. 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)
  1072. end
  1073. end
  1074. end)
  1075. movelimbs()
  1076. immortal = {}
  1077. for i,v in pairs(Character:GetDescendants()) do
  1078. if v:IsA("BasePart") and v.Name ~= "lmagic" and v.Name ~= "rmagic" then
  1079. 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
  1080. v.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1081. end
  1082. table.insert(immortal,{v,v.Parent,v.Material,v.Color,v.Transparency})
  1083. elseif v:IsA("JointInstance") then
  1084. table.insert(immortal,{v,v.Parent,nil,nil,nil})
  1085. end
  1086. end
  1087. for e = 1, #immortal do
  1088. if immortal[e] ~= nil then
  1089. local STUFF = immortal[e]
  1090. local PART = STUFF[1]
  1091. local PARENT = STUFF[2]
  1092. local MATERIAL = STUFF[3]
  1093. local COLOR = STUFF[4]
  1094. local TRANSPARENCY = STUFF[5]
  1095. if levitate then
  1096. if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= eyo1 and PART.Name ~= eyo2 and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then
  1097. PART.Material = MATERIAL
  1098. PART.Color = COLOR
  1099. PART.Transparency = TRANSPARENCY
  1100. end
  1101. PART.AncestryChanged:connect(function()
  1102. PART.Parent = PARENT
  1103. end)
  1104. else
  1105. if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then
  1106. PART.Material = MATERIAL
  1107. PART.Color = COLOR
  1108. PART.Transparency = TRANSPARENCY
  1109. end
  1110. PART.AncestryChanged:connect(function()
  1111. PART.Parent = PARENT
  1112. end)
  1113. end
  1114. end
  1115. end
  1116. function immortality()
  1117. for e = 1, #immortal do
  1118. if immortal[e] ~= nil then
  1119. local STUFF = immortal[e]
  1120. local PART = STUFF[1]
  1121. local PARENT = STUFF[2]
  1122. local MATERIAL = STUFF[3]
  1123. local COLOR = STUFF[4]
  1124. local TRANSPARENCY = STUFF[5]
  1125. if PART.ClassName == "Part" and PART == Root then
  1126. PART.Material = MATERIAL
  1127. PART.Color = COLOR
  1128. PART.Transparency = TRANSPARENCY
  1129. end
  1130. if PART.Parent ~= PARENT then
  1131. hum:Remove()
  1132. PART.Parent = PARENT
  1133. hum = Instance.new("Humanoid",Character)
  1134. hum.Name = "noneofurbusiness"
  1135. end
  1136. end
  1137. end
  1138. end
  1139. coroutine.wrap(function()
  1140. while true do
  1141. if hum.Health < .1 then
  1142. deadsound = Instance.new("Sound", Torso)
  1143. deadsound.Volume = 6
  1144. deadsound.SoundId = "rbxassetid://1411352723"
  1145. deadsound:Play()
  1146. immortality()
  1147. end
  1148. wait()
  1149. end
  1150. end)()
  1151.  
  1152. normalanim = true
  1153. while game:GetService("RunService").Heartbeat:Wait() do
  1154. if normalanim then
  1155. sine = sine + 1
  1156. end
  1157. local touchfloor = workspace:FindPartOnRay(Ray.new(char.HumanoidRootPart.CFrame.Position, ((CFrame.new(char.HumanoidRootPart.Position, char.HumanoidRootPart.Position - Vector3.new(0, 1, 0))).LookVector).Unit * 4), char)
  1158. if char.HumanoidRootPart.Velocity.Magnitude > 1 and touchfloor then
  1159. animpose = "Walking"
  1160. elseif char.HumanoidRootPart.Velocity.Y > 0.5 and touchfloor == nil then
  1161. animpose = "Jumping"
  1162. elseif char.HumanoidRootPart.Velocity.Y < 0.5 and touchfloor == nil then
  1163. animpose = "Falling"
  1164. else
  1165. animpose = "Idle"
  1166. end
  1167. if animpose == "Idle" and normalanim then
  1168. RS.C0 = RSnor * CFrame.Angles(0, 0, 1 + math.sin(sine / 5))
  1169. LS.C0 = LSnor * CFrame.Angles(0, 0, -1 + math.sin(sine / 5))
  1170. RH.C0 = RH.C0:Lerp(RHnor, 0.1) - Vector3.new(0, rootj.C0.Position.Y / 10, 0)
  1171. LH.C0 = LH.C0:Lerp(LHnor, 0.1) - Vector3.new(0, rootj.C0.Position.Y / 10, 0)
  1172. rootj.C0 = rootjnor * CFrame.new(math.sin(sine / 10) / 2, 0, math.sin(sine / 5) / 2) * CFrame.Angles(0, 0, 0)
  1173. elseif animpose == "Walking" and normalanim then
  1174. RS.C0 = RSnor * CFrame.Angles(0, 0, 1 + math.sin(sine / 5))
  1175. LS.C0 = LSnor * CFrame.Angles(0, 0, -1 + math.sin(sine / 5))
  1176. RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(0, 0, math.sin(sine / 10)), 0.1) - Vector3.new(0, rootj.C0.Position.Y / 10, 0)
  1177. LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(0, 0, math.sin(sine / 10)), 0.1) - Vector3.new(0, rootj.C0.Position.Y / 10, 0)
  1178. rootj.C0 = rootjnor * CFrame.new(math.sin(sine / 10) / 2, 0, math.sin(sine / 5) / 2)
  1179. elseif animpose == "Jumping" and normalanim then
  1180. rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.Angles(-0.5, 0, 0), 0.15)
  1181. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.3, 0, 0), 0.15)
  1182. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.3, 0, 0), 0.15)
  1183. RH.C0 = RH.C0:Lerp(RHnor, 0.15)
  1184. LH.C0 = LH.C0:Lerp(LHnor, 0.15)
  1185. elseif animpose == "Falling" and normalanim then
  1186. rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.Angles(0.5, 0, 0), 0.15)
  1187. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.6, 0, 0), 0.15)
  1188. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.6, 0, 0), 0.15)
  1189. RH.C0 = RH.C0:Lerp(RHnor, 0.15)
  1190. LH.C0 = LH.C0:Lerp(LHnor, 0.15)
  1191. end
  1192. end
  1193. warn("Back from the past to dance the dance. Made by Supr14(Credits to Krystalteam).")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement