Advertisement
idkwhatiam

cool dance

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