NextFlamePB

ROBLOX Chocolate Rain Meme Script

Apr 2nd, 2017
1,928
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.90 KB | None | 0 0
  1. mouse = game.Players.LocalPlayer:GetMouse()
  2. rig = game.Players.LocalPlayer.Character.Torso
  3. game.Players.LocalPlayer.Character.Animate:destroy()
  4. run = Instance.new("Sound", game.Players.LocalPlayer.Character.Head)
  5. run.SoundId = "rbxassetid://142665235"
  6. run.Volume = 0
  7. run.Looped = true
  8. run:Play()
  9. run.PlaybackSpeed = 1.2
  10. ---------
  11. chocolaterain  = Instance.new("Sound", game.Players.LocalPlayer.Character.Head)
  12. chocolaterain.SoundId = "rbxassetid://362485838"
  13. chocolaterain.Volume = 13
  14. chocolaterain.TimePosition = 10.1
  15. chocolate1  = Instance.new("Sound", game.Players.LocalPlayer.Character.Head)
  16. chocolate1.SoundId = "rbxassetid://681504763"
  17. chocolate1.Volume = 50
  18. chocolate1.TimePosition = 13
  19. walking = true
  20. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 26
  21. for i = 1,5 do
  22.     wait()
  23.     rig.Neck.C0 = rig.Neck.C0 * CFrame.Angles(0.02,0,0)
  24. end
  25. function walk(key)
  26.     key = key:lower()
  27.     if key == "w" then
  28.     walking = true
  29.     run.Volume = 10
  30.     if walking == true then
  31.     wait()
  32.     for i = 1,5 do
  33.     rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,-0.2)
  34.     rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,-0.2)
  35.     end
  36.     while walking == true do
  37.     for i = 1,5 do
  38.     wait()
  39.     rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,0.4)
  40.     rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,0.4)
  41.     end
  42.     for i = 1,5 do
  43.     wait()
  44.     rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,-0.4)
  45.     rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,-0.4)
  46.     end
  47.     end
  48.     end
  49.     end
  50.     end
  51. mouse.KeyDown:connect(walk)
  52. function notwalk(key)
  53.     key = key:lower()
  54.     if key == "w" then
  55.         walking = false
  56.         run.Volume = 0
  57.         for i = 1,10 do
  58.         wait()
  59.         rig["Left Hip"].C0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  60.         rig["Right Hip"].C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  61.         end
  62.     end
  63. end
  64. mouse.KeyUp:connect(notwalk)
  65. ---------------------------------
  66. walking1 = false
  67. function walk1(key)
  68.     key = key:lower()
  69.     if key == "d" then
  70.     walking1 = true
  71.     if walking1 == true then
  72.     wait()
  73.     run.Volume = 10
  74.     for i = 1,5 do
  75.     rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,-0.2)
  76.     rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,-0.2)
  77.     end
  78.     while walking1 == true do
  79.     for i = 1,5 do
  80.     wait()
  81.     rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,0.4)
  82.     rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,0.4)
  83.     end
  84.     for i = 1,5 do
  85.     wait()
  86.     rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,-0.4)
  87.     rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,-0.4)
  88.     end
  89.     end
  90.     end
  91.     end
  92.     end
  93. mouse.KeyDown:connect(walk1)
  94. function notwalk1(key)
  95.     key = key:lower()
  96.     if key == "d" then
  97.         walking1 = false
  98.         run.Volume = 0
  99.         for i = 1,10 do
  100.         wait()
  101.         rig["Left Hip"].C0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  102.         rig["Right Hip"].C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  103.         end
  104.     end
  105. end
  106. mouse.KeyUp:connect(notwalk1)
  107. ------------------------------------------
  108. walking2 = false
  109. function walk2(key)
  110.     key = key:lower()
  111.     if key == "a" then
  112.     walking2 = true
  113.     run.Volume = 10
  114.     if walking2 == true then
  115.     wait()
  116.     for i = 1,5 do
  117.     rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,-0.2)
  118.     rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,-0.2)
  119.     end
  120.     while walking2 == true do
  121.     for i = 1,5 do
  122.     wait()
  123.     rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,0.4)
  124.     rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,0.4)
  125.     end
  126.     for i = 1,5 do
  127.     wait()
  128.     rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,-0.4)
  129.     rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,-0.4)
  130.     end
  131.     end
  132.     end
  133.     end
  134.     end
  135. mouse.KeyDown:connect(walk2)
  136. function notwalk2(key)
  137.     key = key:lower()
  138.     if key == "a" then
  139.         walking2 = false
  140.         run.Volume = 0
  141.         for i = 1,10 do
  142.         wait()
  143.         rig["Left Hip"].C0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  144.         rig["Right Hip"].C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  145.         end
  146.     end
  147. end
  148. mouse.KeyUp:connect(notwalk2)
  149. ----------------------------------------------------
  150. walking3 = false
  151. function walk3(key)
  152.     key = key:lower()
  153.     if key == "s" then
  154.     walking3 = true
  155.     run.Volume = 10
  156.     if walking3 == true then
  157.     wait()
  158.     for i = 1,5 do
  159.     rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,-0.2)
  160.     rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,-0.2)
  161.     end
  162.     while walking3 == true do
  163.     for i = 1,5 do
  164.     wait()
  165.     rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,0.4)
  166.     rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,0.4)
  167.     end
  168.     for i = 1,5 do
  169.     wait()
  170.     rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,-0.4)
  171.     rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,-0.4)
  172.     end
  173.     end
  174.     end
  175.     end
  176.     end
  177. mouse.KeyDown:connect(walk3)
  178. function notwalk3(key)
  179.     key = key:lower()
  180.     if key == "s" then
  181.         walking3 = false
  182.         run.Volume = 0
  183.         for i = 1,10 do
  184.         wait()
  185.         rig["Left Hip"].C0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  186.         rig["Right Hip"].C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  187.         end
  188.     end
  189. end
  190. mouse.KeyUp:connect(notwalk3)
  191. attacking1 = false
  192. function attack1(key)
  193.     key = key:lower()
  194.     if key == "q" then
  195.         if not attacking1 and not attacking2 then
  196.             attacking1 = true
  197.             chocolaterain.TimePosition = 10.4
  198.             game.Players.LocalPlayer.Character.Humanoid.MaxHealth = 999999
  199.             game.Players.LocalPlayer.Character.Humanoid.Health = 999999
  200.             for i = 1,10 do
  201.             wait()
  202.             rig.Neck.C0 = rig.Neck.C0 * CFrame.Angles(-0.03,0,0)
  203.             rig["Left Shoulder"].C0 = rig["Left Shoulder"].C0 * CFrame.Angles(0,0,-0.29)
  204.             end
  205.             chocolaterain:Play()
  206.             for i = 1,45 do
  207.                 wait(0.05)
  208.             local choc = Instance.new("Part", workspace)
  209.             choc.Position = rig.Position
  210.             choc.CanCollide = false
  211.             choc.BrickColor = BrickColor.new("Burnt Sienna")
  212.             choc.Position = choc.Position + Vector3.new(math.random(-25,25),35,math.random(-25,25))
  213.             choc.Size = choc.Size + Vector3.new(5,1.5,10)
  214.             local hit = false
  215.             local function rip(ch)
  216.                 if not hit then
  217.                 hit = true
  218.                 local humanoid = ch.Parent:FindFirstChild("Humanoid")
  219.                 humanoid.Health = humanoid.Health - math.random(10,20)
  220.                 wait(0.05)
  221.                 hit = false
  222.                 end
  223.                 end
  224.             choc.Touched:connect(rip)
  225.             end
  226.             chocolaterain:Stop()
  227.             for i = 1,10 do
  228.             wait()
  229.             rig.Neck.C0 = rig.Neck.C0 * CFrame.Angles(0.03,0,0)
  230.             rig["Left Shoulder"].C0 = rig["Left Shoulder"].C0 * CFrame.Angles(0,0,0.29)
  231.             end
  232.             game.Players.LocalPlayer.Character.Humanoid.MaxHealth = 100
  233.             game.Players.LocalPlayer.Character.Humanoid.Health = 100
  234.             attacking1 = false
  235.             end
  236.         end
  237.         end
  238. mouse.KeyDown:connect(attack1)
  239. attacking2 = false
  240. function CHOCOLATEoneon(key)
  241.     key = key:lower()
  242.     if not attacking2 and not attacking1 then
  243.     attacking2 = true
  244.     if key == "e" then
  245.     chocolate1.TimePosition = 13
  246.     chocolate1:Play()
  247.     local chocoo = Instance.new("Part", rig)
  248.     chocoo.CanCollide = false
  249.     chocoo.Size = Vector3.new(2.5,0.5,5)
  250.     chocoo.Position = chocoo.Position + Vector3.new(0,20,0)
  251.     chocoo.BrickColor = BrickColor.new("Cocoa")
  252.     local weld = Instance.new("Weld", chocoo)
  253.     weld.Part0 = chocoo
  254.     weld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  255.     weld.C0 = weld.C0 * CFrame.new(0,1.2,1.6) * CFrame.Angles(-0.08,4.8,0)
  256.     for i = 1,10 do
  257.     wait()
  258.     rig.Neck.C0 = rig.Neck.C0 * CFrame.Angles(-0.03,0,0)
  259.     rig["Right Shoulder"].C0 = rig["Right Shoulder"].C0 * CFrame.Angles(0,-0.02,0.32)
  260.     rig["Left Shoulder"].C0 = rig["Left Shoulder"].C0 * CFrame.Angles(0,0.02,-0.32)
  261.     end
  262.     wait(2.8)
  263.     for i = 1,175 do
  264.         wait()
  265.         rig.Neck.C0 = rig.Neck.C0 * CFrame.Angles(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  266.     end
  267.     chocolate1:Stop()
  268.     local BOOM = Instance.new("Explosion", chocoo)
  269.     BOOM.BlastRadius = 60
  270.     BOOM.BlastPressure = 120000
  271.     BOOM.Position = chocoo.Position
  272.     end
  273.     attacking2 = false
  274.     end
  275.     end
  276. mouse.KeyDown:connect(CHOCOLATEoneon)
  277. --Yep. this is unfinished
Add Comment
Please, Sign In to add comment