Advertisement
basbas1234

Krystal Dance LS

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