Advertisement
Guest User

Roblox Meme Dance Script

a guest
Nov 28th, 2018
788
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.49 KB | None | 0 0
  1. -- This script has inspired by Krystal dance! --
  2.  
  3. local Plr = game.Players.LocalPlayer
  4. local PChar = Plr.Character
  5. local Assets = "rbxassetid://"
  6. local DebounceKey = true
  7. local Mouse = Plr:GetMouse()
  8. local AnimHop = Instance.new("Animation", PChar)
  9. AnimHop.AnimationId = Assets.."129423030"
  10. local TrackAnim = nil
  11. local StopIt = false
  12.  
  13. local GenerateCharacter = function()
  14.     for i,v in pairs(PChar:GetChildren()) do
  15.         wait(0.1)
  16.         if v.ClassName == "Hat" or v.ClassName == "CharacterMesh" then
  17.             v:Destroy()
  18.         end
  19.         if v.ClassName == "Part" then
  20.             v.BrickColor = BrickColor.Black()
  21.         end
  22.         PChar.Head.BrickColor = BrickColor.White()
  23.         PChar["Body Colors"].HeadColor = BrickColor.White()
  24.         PChar["Body Colors"].LeftArmColor = BrickColor.Black()
  25.         PChar["Body Colors"].LeftLegColor = BrickColor.Black()
  26.         PChar["Body Colors"].RightArmColor = BrickColor.Black()
  27.         PChar["Body Colors"].RightLegColor = BrickColor.Black()
  28.         PChar["Body Colors"].TorsoColor = BrickColor.Black()
  29.         if PChar:FindFirstChild("Shirt") == nil then else PChar:FindFirstChild("Shirt"):Destroy() end
  30.         if PChar:FindFirstChild("Pants") == nil then else PChar:FindFirstChild("Pants"):Destroy() end
  31.         PChar.Head.face.Texture = "http://www.roblox.com/asset/?id=282690375"
  32.         PChar.Humanoid.WalkSpeed = 14
  33.         PChar.Humanoid.MaxHealth = math.huge
  34.         PChar.Humanoid.Health = math.huge
  35.     end
  36. end
  37.  
  38. local MusicFolder = Instance.new("Folder", PChar)
  39. MusicFolder.Name = "Music"
  40.  
  41. local SnoopMusic = Instance.new("Sound", MusicFolder)
  42. SnoopMusic.SoundId = Assets.."172388329"
  43. local DogeMusic = Instance.new("Sound", MusicFolder)
  44. DogeMusic.SoundId = Assets.."150794704"
  45.  
  46. wait(0.9)
  47.  
  48. GenerateCharacter()
  49.  
  50. Mouse.KeyDown:connect(function(key) local key = key:lower()
  51.     if key == "e" then
  52.         if DebounceKey == false then
  53.             return
  54.         end
  55.         DebounceKey = false
  56.         PChar.Humanoid.WalkSpeed = 0
  57.         TrackAnim = PChar.Humanoid:LoadAnimation(AnimHop)
  58.         SnoopMusic:Play()
  59.         for i = SnoopMusic.TimeLength, 1, -1 do
  60.             if StopIt == true then
  61.                 break
  62.             end
  63.             print(i)
  64.             wait(1)
  65.             TrackAnim:Play()
  66.         end
  67.         DebounceKey = true
  68.         TrackAnim:Stop()
  69.         PChar.Humanoid.WalkSpeed = 14
  70.     end
  71.     if key == "r" then
  72.         if DebounceKey == false then
  73.             return
  74.         end
  75.         DebounceKey = false
  76.         PChar.Humanoid.WalkSpeed = 0
  77.         TrackAnim = PChar.Humanoid:LoadAnimation(AnimHop)
  78.         DogeMusic:Play()
  79.         DogeMusic.Volume = 10
  80.         for i = 55, 1, -1 do
  81.             if StopIt == true then
  82.                 break
  83.             end
  84.             print(i)
  85.             wait(1)
  86.             TrackAnim:Play()
  87.             local location = game.Players.LocalPlayer.Character:GetModelCFrame()
  88.             local DogeHats = Instance.new("Part")
  89.             DogeHats.CanCollide = false
  90.             DogeHats.RotVelocity = Vector3.new(math.random()*math.pi,math.random()*math.pi,math.random()*math.pi)
  91.             local mesh = Instance.new("SpecialMesh")
  92.             mesh.TextureId = "rbxassetid://151778895"
  93.             mesh.MeshId = "rbxassetid://151778863"
  94.             mesh.MeshType = "FileMesh"
  95.             mesh.Parent = DogeHats
  96.             mesh.Scale = Vector3.new(math.random()*20,math.random()*20,math.random()*20)
  97.             DogeHats.CFrame = location * CFrame.new(math.random()*500 - 250,math.random(100,200),math.random()*500 - 250)
  98.             DogeHats.Parent = game.Workspace
  99.         end
  100.         DebounceKey = true
  101.         TrackAnim:Stop()
  102.         for i = 10, 1, 0 do
  103.             wait(0.2)
  104.             DogeMusic.Volume = i
  105.         end
  106.         DogeMusic:Stop()
  107.         PChar.Humanoid.WalkSpeed = 14
  108.     end
  109.     if key == "w" or key == "a" or key == "s" or key == "d" then
  110.         StopIt = true
  111.         SnoopMusic:Stop()
  112.         DogeMusic:Stop()
  113.         if TrackAnim == nil then else TrackAnim:Stop() end
  114.         DebounceKey = true
  115.         PChar.Humanoid.WalkSpeed = 14
  116.         wait(2)
  117.         StopIt = false
  118.     end
  119. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement