Advertisement
Guest User

Untitled

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