Advertisement
aaaay63746

HONKEY DONK

Apr 2nd, 2020
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.96 KB | None | 0 0
  1. -----------//KRYSTAL DANCE V2\\-----------
  2. --[[Movelist
  3. Q = The Swoosher
  4. E = The nutty
  5. R = Spin me right round!
  6. T = Plum juice dance
  7. Y = Moonwalk
  8. U = Slav dance
  9. P = Barrel roll
  10. F = The Jerky
  11. G = The Shuffle
  12. H = The Spongebob
  13. J = Here comes the money!
  14. K = Runnin' in the 90's
  15. ---------]]
  16.  
  17. --Alright so before i start rambling on about absolute nonsense, please subscribe to Pewdiepie on youtube! Help him defeat T-Series!--
  18. --Also subscribe to Vengefulprogram--
  19. --Krystal dance! The old famous script that sadly has been broken(sorta), i've decided to rework this thing because... nostalgia.--
  20. --This is one of the first scripts i've ever ran on SB, seeing this back again really reminds me of how much of a noob i was.--
  21. --Credits to Krystalteam, they made the original krystal dance! Be sure to respect them or else...--
  22. --#makeoldscriptsgreatagain--
  23.  
  24. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {}
  25. do
  26. script.Parent = owner.Character
  27. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
  28. local function NewFakeEvent()
  29. local Bind = Instance.new("BindableEvent")
  30. local Fake;Fake = {Connections = {},
  31. fakeEvent=true;
  32. Connect=function(self,Func)
  33. Bind.Event:connect(Func)
  34. self.Connections[Bind] = true
  35. return setmetatable({Connected = true},{
  36. __index = function (self,Index)
  37. if Index:lower() == "disconnect" then
  38. return function() Fake.Connections[Bind] = false;self.Connected = false end
  39. end
  40. return Fake[Index]
  41. end;
  42. __tostring = function() return "Connection" end;
  43. })
  44. end}
  45. Fake.connect = Fake.Connect;return Fake;
  46. end
  47. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  48. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  49. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  50. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  51. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  52. local function TriggerEvent(self,Event,...)
  53. local Trigger = Mouse[Event]
  54. if Trigger and Trigger.fakeEvent and Trigger.Connections then
  55. for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
  56. end
  57. end
  58. Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
  59. Event.OnServerEvent:Connect(function(FiredBy,Input)
  60. if FiredBy.Name ~= owner.Name then return end
  61. if Input.MouseEvent then
  62. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  63. else
  64. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  65. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
  66. for _,Action in pairs(ContextActionService.Actions) do
  67. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  68. end
  69. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  70. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  71. end
  72. end)
  73. InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  74. Event.Parent = NLS([[
  75. local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
  76. local Input = function(Input,gameProcessedEvent)
  77. if gameProcessedEvent then return end
  78. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  79. end
  80. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  81. local Hit,Target
  82. while wait(1/30) do
  83. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  84. Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  85. end
  86. end
  87. ]],owner.Character)
  88. end
  89. RealGame = game;game = setmetatable({},{
  90. __index = function (self,Index)
  91. local Sandbox = function (Thing)
  92. if Thing:IsA("Player") then
  93. local RealPlayer = Thing
  94. return setmetatable({},{
  95. __index = function (self,Index)
  96. local Type = type(RealPlayer[Index])
  97. if Type == "function" then
  98. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  99. return function (self)return InternalData["Mouse"] end
  100. end
  101. return function (self,...)return RealPlayer[Index](RealPlayer,...) end
  102. end
  103. return RealPlayer[Index]
  104. end;
  105. __tostring = function(self) return RealPlayer.Name end
  106. })
  107. end
  108. end
  109. if RealGame[Index] then
  110. local Type = type(RealGame[Index])
  111. if Type == "function" then
  112. if Index:lower() == "getservice" or Index:lower() == "service" then
  113. return function (self,Service)
  114. local FakeServices = {
  115. ["players"] = function()
  116. return setmetatable({},{
  117. __index = function (self2,Index2)
  118. local RealService = RealGame:GetService(Service)
  119. local Type2 = type(Index2)
  120. if Type2 == "function" then
  121. return function (self,...) return RealService[Index2](RealService,...)end
  122. else
  123. if Index2:lower() == "localplayer" then return Sandbox(owner) end
  124. return RealService[Index2]
  125. end
  126. end;
  127. __tostring = function(self) return RealGame:GetService(Service).Name end
  128. })
  129. end;
  130. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  131. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  132. ["runservice"] = function()
  133. return setmetatable({},{
  134. __index = function(self2,Index2)
  135. local RealService = RealGame:GetService(Service)
  136. local Type2 = type(Index2)
  137. if Type2 == "function" then
  138. return function (self,...) return RealService[Index2](RealService,...) end
  139. else
  140. local RunServices = {
  141. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  142. ["renderstepped"] = function() return RealService["Stepped"] end
  143. }
  144. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  145. return RealService[Index2]
  146. end
  147. end
  148. })
  149. end
  150. }
  151. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  152. return RealGame:GetService(Service)
  153. end
  154. end
  155. return function (self,...) return RealGame[Index](RealGame,...) end
  156. else
  157. if game:GetService(Index) then return game:GetService(Index) end
  158. return RealGame[Index]
  159. end
  160. end
  161. return nil
  162. end
  163. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
  164.  
  165. Player=game.Players.LocalPlayer
  166. Character=Player.Character
  167. Character.Humanoid.Name = "noneofurbusiness"
  168. hum = Character.noneofurbusiness
  169. LeftArm=Character["Left Arm"]
  170. LeftLeg=Character["Left Leg"]
  171. RightArm=Character["Right Arm"]
  172. RightLeg=Character["Right Leg"]
  173. Root=Character["HumanoidRootPart"]
  174. Head=Character["Head"]
  175. Torso=Character["Torso"]
  176. Neck=Torso["Neck"]
  177. mouse = Player:GetMouse()
  178. walking = false
  179. jumping = false
  180. attacking = false
  181. firsttime = false
  182. tauntdebounce = false
  183. position = nil
  184. MseGuide = true
  185. running = false
  186. settime = 0
  187. sine = 0
  188. t = 0
  189. ws = 14
  190. change = 1
  191. combo1 = true
  192. dancing = false
  193. equip = false
  194. dgs = 75
  195. combo2 = false
  196. switch1 = true
  197. switch2 = false
  198. firsttime2 = false
  199. combo3 = false
  200. gunallowance = false
  201. shooting = false
  202. RunSrv = game:GetService("RunService")
  203. RenderStepped = game:GetService("RunService").RenderStepped
  204. removeuseless = game:GetService("Debris")
  205.  
  206. screenGui = Instance.new("ScreenGui")
  207. screenGui.Parent = script.Parent
  208.  
  209. local HEADLERP = Instance.new("ManualWeld")
  210. HEADLERP.Parent = Head
  211. HEADLERP.Part0 = Head
  212. HEADLERP.Part1 = Head
  213. HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  214.  
  215. local TORSOLERP = Instance.new("ManualWeld")
  216. TORSOLERP.Parent = Root
  217. TORSOLERP.Part0 = Torso
  218. TORSOLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  219.  
  220. local ROOTLERP = Instance.new("ManualWeld")
  221. ROOTLERP.Parent = Root
  222. ROOTLERP.Part0 = Root
  223. ROOTLERP.Part1 = Torso
  224. ROOTLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  225.  
  226. local RIGHTARMLERP = Instance.new("ManualWeld")
  227. RIGHTARMLERP.Parent = RightArm
  228. RIGHTARMLERP.Part0 = RightArm
  229. RIGHTARMLERP.Part1 = Torso
  230. RIGHTARMLERP.C0 = CFrame.new(-1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  231.  
  232. local LEFTARMLERP = Instance.new("ManualWeld")
  233. LEFTARMLERP.Parent = LeftArm
  234. LEFTARMLERP.Part0 = LeftArm
  235. LEFTARMLERP.Part1 = Torso
  236. LEFTARMLERP.C0 = CFrame.new(1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  237.  
  238. local RIGHTLEGLERP = Instance.new("ManualWeld")
  239. RIGHTLEGLERP.Parent = RightLeg
  240. RIGHTLEGLERP.Part0 = RightLeg
  241. RIGHTLEGLERP.Part1 = Torso
  242. RIGHTLEGLERP.C0 = CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  243.  
  244. local LEFTLEGLERP = Instance.new("ManualWeld")
  245. LEFTLEGLERP.Parent = LeftLeg
  246. LEFTLEGLERP.Part0 = LeftLeg
  247. LEFTLEGLERP.Part1 = Torso
  248. LEFTLEGLERP.C0 = CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  249.  
  250. local function weldBetween(a, b)
  251. local weld = Instance.new("ManualWeld", a)
  252. weld.Part0 = a
  253. weld.Part1 = b
  254. weld.C0 = a.CFrame:inverse() * b.CFrame
  255. return weld
  256. end
  257.  
  258. function MAKETRAIL(PARENT,POSITION1,POSITION2,LIFETIME,COLOR)
  259. A = Instance.new("Attachment", PARENT)
  260. A.Position = POSITION1
  261. A.Name = "A"
  262. B = Instance.new("Attachment", PARENT)
  263. B.Position = POSITION2
  264. B.Name = "B"
  265. tr1 = Instance.new("Trail", PARENT)
  266. tr1.Attachment0 = A
  267. tr1.Attachment1 = B
  268. tr1.Enabled = true
  269. tr1.Lifetime = LIFETIME
  270. tr1.TextureMode = "Static"
  271. tr1.LightInfluence = 0
  272. tr1.Color = COLOR
  273. tr1.Transparency = NumberSequence.new(0, 1)
  274. end
  275.  
  276. introsound = Instance.new("Sound",Head)
  277. introsound.SoundId = "rbxassetid://1474367957"
  278. introsound.Volume = 4
  279. introsound:Play()
  280.  
  281. shades = Instance.new("Part",Character)
  282. shades.Size = Vector3.new(2,2,2)
  283. shades.CFrame = Head.CFrame
  284. shades.CanCollide = false
  285. shadesweld = Instance.new("Weld",shades)
  286. shadesweld.Part0 = shades
  287. shadesweld.Part1 = Head
  288. shadesweld.C0 = shades.CFrame:inverse() * Head.CFrame * CFrame.new(0,-.2,.15)
  289. mshades = Instance.new("SpecialMesh", shades)
  290. mshades.MeshType = "FileMesh"
  291. mshades.Scale = Vector3.new(1.04, 1.28, 1.04)
  292. mshades.MeshId,mshades.TextureId = 'http://www.roblox.com/asset/?id=1577360','http://www.roblox.com/asset/?id=1577349'
  293.  
  294. coroutine.wrap(function()
  295. while wait() do
  296. Head.face.Texture = "rbxassetid://84276339"
  297. hum.WalkSpeed = ws
  298. LeftArm.BrickColor = BrickColor.new("Pastel brown")
  299. RightArm.BrickColor = BrickColor.new("Pastel brown")
  300. Head.BrickColor = BrickColor.new("Pastel brown")
  301. Torso.BrickColor = BrickColor.new("Pastel brown")
  302. LeftLeg.BrickColor = BrickColor.new("Pastel brown")
  303. RightLeg.BrickColor = BrickColor.new("Pastel brown")
  304. end
  305. end)()
  306. godmode = coroutine.wrap(function()
  307. for i,v in pairs(Character:GetChildren()) do
  308. if v:IsA("BasePart") and v ~= Root then
  309. v.Anchored = false
  310. end
  311. end
  312. while true do
  313. hum.MaxHealth = math.huge
  314. wait(0.0000001)
  315. hum.Health = math.huge
  316. wait()
  317. end
  318. end)
  319. godmode()
  320. ff = Instance.new("ForceField", Character)
  321. ff.Visible = false
  322.  
  323. coroutine.wrap(function()
  324. for i,v in pairs(Character:GetChildren()) do
  325. if v.Name == "Animate" then v:Remove()
  326. end
  327. end
  328. end)()
  329.  
  330. function damagealll(Radius,Position)
  331. local Returning = {}
  332. for _,v in pairs(workspace:GetChildren()) do
  333. if v~=Character and v:FindFirstChildOfClass('Humanoid') and v:FindFirstChild('Torso') or v:FindFirstChild('UpperTorso') then
  334. if v:FindFirstChild("Torso") then
  335. local Mag = (v.Torso.Position - Position).magnitude
  336. if Mag < Radius then
  337. table.insert(Returning,v)
  338. end
  339. elseif v:FindFirstChild("UpperTorso") then
  340. local Mag = (v.UpperTorso.Position - Position).magnitude
  341. if Mag < Radius then
  342. table.insert(Returning,v)
  343. end
  344. end
  345. end
  346. end
  347. return Returning
  348. end
  349.  
  350. ArtificialHB = Instance.new("BindableEvent", script)
  351. ArtificialHB.Name = "Heartbeat"
  352. script:WaitForChild("Heartbeat")
  353.  
  354. frame = 1 / 60
  355. tf = 0
  356. allowframeloss = false
  357. tossremainder = false
  358.  
  359.  
  360. lastframe = tick()
  361. script.Heartbeat:Fire()
  362.  
  363.  
  364. game:GetService("RunService").Heartbeat:connect(function(s, p)
  365. tf = tf + s
  366. if tf >= frame then
  367. if allowframeloss then
  368. script.Heartbeat:Fire()
  369. lastframe = tick()
  370. else
  371. for i = 1, math.floor(tf / frame) do
  372. script.Heartbeat:Fire()
  373. end
  374. lastframe = tick()
  375. end
  376. if tossremainder then
  377. tf = 0
  378. else
  379. tf = tf - frame * math.floor(tf / frame)
  380. end
  381. end
  382. end)
  383.  
  384. function swait(num)
  385. if num == 0 or num == nil then
  386. game:service("RunService").Stepped:wait(0)
  387. else
  388. for i = 0, num do
  389. game:service("RunService").Stepped:wait(0)
  390. end
  391. end
  392. end
  393.  
  394. for _,n in pairs(Character:GetChildren()) do
  395. if n:IsA("Accessory") then n:Remove() end
  396. end
  397. for _,x in pairs(Character:GetChildren()) do
  398. if x:IsA("Decal") then x:Remove() end
  399. end
  400.  
  401. intro = true
  402. ws = 0
  403.  
  404. bigfedora = Instance.new("Part",Character)
  405. bigfedora.Size = Vector3.new(2,2,2)
  406. 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)
  407. bigfedora.CanCollide = false
  408. bigfedora.Anchored = true
  409. bigfedora.Name = "mbigf"
  410. mbigfedora = Instance.new("SpecialMesh", bigfedora)
  411. mbigfedora.MeshType = "FileMesh"
  412. mbigfedora.Scale = Vector3.new(6, 7, 7)
  413. mbigfedora.MeshId,mbigfedora.TextureId = 'http://www.roblox.com/asset/?id=13640868','http://www.roblox.com/asset/?id=18987684'
  414. for i,v in pairs(Character:GetDescendants()) do
  415. if v:IsA("Part") and v.Name ~= "mbigf" then v.Transparency = 1
  416. end
  417. end
  418. for i = 1, 60 do
  419. 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)
  420. swait()
  421. end
  422. wait(.25)
  423. for i,v in pairs(Character:GetDescendants()) do
  424. if v:IsA("Part") and v.Name ~= "mbigf" and v.Name ~= "HumanoidRootPart" then v.Transparency = 0
  425. end
  426. end
  427. for i = 1, 50 do
  428. bigfedora.CFrame = bigfedora.CFrame:lerp(CFrame.new(fedora.Position),.05)
  429. swait()
  430. end
  431. zmc = 0
  432. for i = 1, 29 do
  433. zmc = zmc + 2
  434. mbigfedora.Scale = mbigfedora.Scale - Vector3.new(.25,.25,.25)
  435. bigfedora.CFrame = bigfedora.CFrame * CFrame.Angles(math.rad(0),math.rad(zmc),0)
  436. swait()
  437. end
  438. bigfedora:Remove()
  439.  
  440. ws = 14
  441.  
  442. function SOUND(PARENT,ID,VOL,LOOP,REMOVE)
  443. so = Instance.new("Sound")
  444. so.Parent = PARENT
  445. so.SoundId = "rbxassetid://"..ID
  446. so.Volume = VOL
  447. so.Looped = LOOP
  448.  
  449. so:Play()
  450. removeuseless:AddItem(so,REMOVE)
  451. end
  452.  
  453. mouse.KeyDown:connect(function(Press)
  454. Press=Press:lower()
  455. if Press=='e' then
  456. if dancing then
  457. dancing = false
  458. else
  459. dancing = true
  460. ws = 3
  461. change = .5
  462. attacking = true
  463. g1 = Instance.new("BodyGyro", Root)
  464. g1.D = 175
  465. g1.P = 20000
  466. g1.MaxTorque = Vector3.new(0,9000,0)
  467. herecomesthemoney = Instance.new("Sound",Torso)
  468. herecomesthemoney.Pitch = 1
  469. herecomesthemoney.SoundId = "rbxassetid://879800012"
  470. herecomesthemoney.TimePosition = 6
  471. herecomesthemoney.Volume = 8
  472. herecomesthemoney.Looped = true
  473. herecomesthemoney:Play()
  474. robuxpile = Instance.new("Part",Torso)
  475. robuxpile.Size = Vector3.new(1,1,1)
  476. robuxpile.CFrame = LeftArm.CFrame
  477. robuxpile.CanCollide = false
  478. robuxpileweld = Instance.new("Weld",robuxpile)
  479. robuxpileweld.Part0 = robuxpile
  480. robuxpileweld.Part1 = Torso
  481. robuxpileweld.C0 = robuxpile.CFrame:inverse() * LeftArm.CFrame * CFrame.new(1,-.7,1.4)
  482. mrobuxpile = Instance.new("SpecialMesh", robuxpile)
  483. mrobuxpile.MeshType = "FileMesh"
  484. mrobuxpile.Scale = Vector3.new(0.85, .85, .85)
  485. mrobuxpile.MeshId,mrobuxpile.TextureId = 'http://www.roblox.com/asset/?id=17359739','http://www.roblox.com/asset/?id=54763141'
  486. coroutine.wrap(function()
  487. coroutine.wrap(function()
  488. while wait(.35) do
  489. if not dancing then break end
  490. local robux = Instance.new("Part",Torso)
  491. robux.CFrame = robuxpile.CFrame * CFrame.Angles(math.rad(0),math.rad(90),math.rad(90))
  492. robux.Anchored = false
  493. robux.CanCollide = true
  494. robux.Size = Vector3.new(1,1,1)
  495. removeuseless:AddItem(robux,4)
  496. mrobux = Instance.new("SpecialMesh", robux)
  497. mrobux.MeshType = "FileMesh"
  498. mrobux.Scale = Vector3.new(1.25, 1.25, 1.25)
  499. mrobux.MeshId,mrobux.TextureId = 'http://www.roblox.com/asset/?id=13073626','http://www.roblox.com/asset/?id=98562362'
  500. bov = Instance.new("BodyVelocity",robux)
  501. bov.maxForce = Vector3.new(99999,99999,99999)
  502. robux.CFrame = CFrame.new(robux.Position,mouse.Hit.p)
  503. bov.velocity = robux.CFrame.lookVector*45
  504. removeuseless:AddItem(bov,.1)
  505. end
  506. end)()
  507. while dancing do
  508. g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.4)
  509. 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)
  510. 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)
  511. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1,.5,.5) * CFrame.Angles(math.rad(-87),math.rad(-20),math.rad(0)), 0.25)
  512. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 , .5) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(-10)), 0.25)
  513. 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)
  514. swait()
  515. end
  516. ws = 14
  517. removeuseless:AddItem(g1,.001)
  518. robuxpile:Remove()
  519. attacking = false
  520. end)()
  521. end
  522. end
  523. end)
  524.  
  525. function ray(pos, dir, rang, ignoredesc)
  526. return workspace:FindPartOnRay(Ray.new(pos, dir.unit * rang), ignoredesc)
  527. end
  528.  
  529. function ray2(startpos, endpos, distance, ignore)
  530. local dir = CFrame.new(startpos,endpos).lookVector
  531. return ray(startpos, dir, distance, ignore)
  532. end
  533.  
  534. checks1 = coroutine.wrap(function() -------Checks
  535. while true do
  536. hf = ray(Root.Position,(CFrame.new(Root.Position,Root.Position+Vector3.new(0,-1,0))).lookVector,3*3,Character)
  537. if Root.Velocity.y > 1 then
  538. position = "Jump"
  539. elseif Root.Velocity.y < -1 then
  540. position = "Falling"
  541. elseif Root.Velocity.Magnitude < 2 then
  542. position = "Idle"
  543. elseif Root.Velocity.Magnitude > 2 then
  544. position = "Walking"
  545. elseif Root.Velocity.Magnitude > 20 then
  546. position = "Running"
  547. else
  548. end
  549. wait()
  550. end
  551. end)
  552. checks1()
  553.  
  554. function ray(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  555. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  556. end
  557.  
  558. function ray2(StartPos, EndPos, Distance, Ignore)
  559. local DIRECTION = CFrame.new(StartPos,EndPos).lookVector
  560. return ray(StartPos, DIRECTION, Distance, Ignore)
  561. end
  562.  
  563. OrgnC0 = Neck.C0
  564. local movelimbs = coroutine.wrap(function()
  565. while RunSrv.RenderStepped:wait() do
  566. TrsoLV = Torso.CFrame.lookVector
  567. Dist = nil
  568. Diff = nil
  569. if not MseGuide then
  570. print("Failed to recognize")
  571. else
  572. local _, Point = Workspace:FindPartOnRay(Ray.new(Head.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
  573. Dist = (Head.CFrame.p-Point).magnitude
  574. Diff = Head.CFrame.Y-Point.Y
  575. local _, Point2 = Workspace:FindPartOnRay(Ray.new(LeftArm.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
  576. Dist2 = (LeftArm.CFrame.p-Point).magnitude
  577. Diff2 = LeftArm.CFrame.Y-Point.Y
  578. HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  579. 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)
  580. end
  581. end
  582. end)
  583. movelimbs()
  584. immortal = {}
  585. for i,v in pairs(Character:GetDescendants()) do
  586. if v:IsA("BasePart") and v.Name ~= "lmagic" and v.Name ~= "rmagic" then
  587. 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
  588. v.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  589. end
  590. table.insert(immortal,{v,v.Parent,v.Material,v.Color,v.Transparency})
  591. elseif v:IsA("JointInstance") then
  592. table.insert(immortal,{v,v.Parent,nil,nil,nil})
  593. end
  594. end
  595. for e = 1, #immortal do
  596. if immortal[e] ~= nil then
  597. local STUFF = immortal[e]
  598. local PART = STUFF[1]
  599. local PARENT = STUFF[2]
  600. local MATERIAL = STUFF[3]
  601. local COLOR = STUFF[4]
  602. local TRANSPARENCY = STUFF[5]
  603. if levitate then
  604. if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= eyo1 and PART.Name ~= eyo2 and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then
  605. PART.Material = MATERIAL
  606. PART.Color = COLOR
  607. PART.Transparency = TRANSPARENCY
  608. end
  609. PART.AncestryChanged:connect(function()
  610. PART.Parent = PARENT
  611. end)
  612. else
  613. if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then
  614. PART.Material = MATERIAL
  615. PART.Color = COLOR
  616. PART.Transparency = TRANSPARENCY
  617. end
  618. PART.AncestryChanged:connect(function()
  619. PART.Parent = PARENT
  620. end)
  621. end
  622. end
  623. end
  624. function immortality()
  625. for e = 1, #immortal do
  626. if immortal[e] ~= nil then
  627. local STUFF = immortal[e]
  628. local PART = STUFF[1]
  629. local PARENT = STUFF[2]
  630. local MATERIAL = STUFF[3]
  631. local COLOR = STUFF[4]
  632. local TRANSPARENCY = STUFF[5]
  633. if PART.ClassName == "Part" and PART == Root then
  634. PART.Material = MATERIAL
  635. PART.Color = COLOR
  636. PART.Transparency = TRANSPARENCY
  637. end
  638. if PART.Parent ~= PARENT then
  639. hum:Remove()
  640. PART.Parent = PARENT
  641. hum = Instance.new("Humanoid",Character)
  642. hum.Name = "noneofurbusiness"
  643. end
  644. end
  645. end
  646. end
  647. coroutine.wrap(function()
  648. while true do
  649. if hum.Health < .1 then
  650. deadsound = Instance.new("Sound", Torso)
  651. deadsound.Volume = 6
  652. deadsound.SoundId = "rbxassetid://1411352723"
  653. deadsound:Play()
  654. immortality()
  655. end
  656. wait()
  657. end
  658. end)()
  659.  
  660. local anims = coroutine.wrap(function()
  661. while true do
  662. settime = 0.05
  663. sine = sine + change
  664. if position == "Jump" and attacking == false then
  665. change = 1
  666. spin = false
  667. for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
  668. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  669. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  670. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
  671. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  672. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.4,.1,-.2) * CFrame.Angles(math.rad(20),math.rad(-3),math.rad(-4)), 0.2)
  673. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.2)
  674. 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)
  675. elseif position == "Falling" and attacking == false then
  676. change = 1
  677. spin = false
  678. for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
  679. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)), 0.15)
  680. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  681. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  682. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
  683. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(4), math.rad(0)), 0.2)
  684. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(-4), math.rad(0)), 0.2)
  685. 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)
  686. 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)
  687. elseif position == "Walking" and attacking == false and running == false then
  688. change = 1.2
  689. walking = true
  690. spin = false
  691. for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
  692. 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)
  693. 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)
  694. 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)
  695. 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)
  696. 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)
  697. elseif position == "Idle" and attacking == false and running == false then
  698. change = .5
  699. spin = true
  700. for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
  701. 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)
  702. 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)
  703. 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)
  704. 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)
  705. 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)
  706. elseif position == "Running" and attacking == false then
  707. change = 1
  708. for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
  709. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(0, .5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.3)
  710. 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)
  711. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  712. 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)
  713. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*-math.sin(sine/4)),.3)
  714. 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)
  715. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*math.sin(sine/4)),.3)
  716. 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)
  717. end
  718. swait()
  719. end
  720. end)
  721. anims()
  722. 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