KrYn0MoRe

kvass

Jul 26th, 2020 (edited)
404
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.14 KB | None | 0 0
  1. local plr = owner
  2. local char = plr.Character
  3. local hum = char:FindFirstChildOfClass("Humanoid")
  4. local torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart")
  5.  
  6. debris = game:GetService("Debris")
  7. tween = game:GetService("TweenService")
  8.  
  9. local holding = false
  10. local using = false
  11.  
  12. Tool0 = Instance.new("Tool")
  13. Part1 = Instance.new("Part")
  14. SpecialMesh2 = Instance.new("SpecialMesh")
  15. Part3 = Instance.new("Part")
  16. CylinderMesh4 = Instance.new("CylinderMesh")
  17. Part5 = Instance.new("Part")
  18. CylinderMesh6 = Instance.new("CylinderMesh")
  19. Tool0.Name = "Kvass"
  20. Tool0.Parent = plr['Backpack']
  21. Tool0.TextureId = "rbxassetid://4639333406"
  22. Tool0.ToolTip = "Slav moment!"
  23. Tool0.Grip = CFrame.new(0.154978186, -0.435165405, 0.0801391602, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  24. Part1.Name = "Handle"
  25. Part1.Parent = Tool0
  26. Part1.CFrame = CFrame.new(44.686657, 0.86500603, -35.7527161, -3.56667478e-08, -5.8540536e-06, 0.999991953, -7.47440083e-07, 1, 5.85408407e-06, -0.999991953, -7.48470825e-07, -3.56305385e-08)
  27. Part1.Orientation = Vector3.new(0, 90, 0)
  28. Part1.Position = Vector3.new(44.686657, 0.86500603, -35.7527161)
  29. Part1.Rotation = Vector3.new(-90.3499985, 89.7699966, 90.3499985)
  30. Part1.Color = Color3.new(0.972549, 0.972549, 0.972549)
  31. Part1.Transparency = 0.60000002384186
  32. Part1.Size = Vector3.new(0.520000041, 1.7299993, 0.590000629)
  33. Part1.BottomSurface = Enum.SurfaceType.Smooth
  34. Part1.BrickColor = BrickColor.new("Institutional white")
  35. Part1.Material = Enum.Material.Glass
  36. Part1.TopSurface = Enum.SurfaceType.Smooth
  37. Part1.brickColor = BrickColor.new("Institutional white")
  38. Part1.FormFactor = Enum.FormFactor.Custom
  39. Part1.formFactor = Enum.FormFactor.Custom
  40. SpecialMesh2.Parent = Part1
  41. SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=100856357"
  42. SpecialMesh2.Scale = Vector3.new(1, 0.75, 1)
  43. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  44. Part3.Name = "Cork"
  45. Part3.Parent = Tool0
  46. Part3.CFrame = CFrame.new(44.6862526, 1.69035399, -35.760849, 0.999994576, 0.000158489827, -1.14966394e-06, -0.000158490599, 1, 7.78240938e-05, 1.16202546e-06, -7.78241956e-05, 0.999994636)
  47. Part3.Orientation = Vector3.new(0, 0, -0.00999999978)
  48. Part3.Position = Vector3.new(44.6862526, 1.69035399, -35.760849)
  49. Part3.Rotation = Vector3.new(0, 0, -0.00999999978)
  50. Part3.Color = Color3.new(0.843137, 0.772549, 0.603922)
  51. Part3.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  52. Part3.BottomSurface = Enum.SurfaceType.Smooth
  53. Part3.BrickColor = BrickColor.new("Brick yellow")
  54. Part3.Material = Enum.Material.SmoothPlastic
  55. Part3.TopSurface = Enum.SurfaceType.Smooth
  56. Part3.brickColor = BrickColor.new("Brick yellow")
  57. Part3.FormFactor = Enum.FormFactor.Custom
  58. Part3.formFactor = Enum.FormFactor.Custom
  59. CylinderMesh4.Parent = Part3
  60. CylinderMesh4.Scale = Vector3.new(1.10000002, 1, 2)
  61. Part5.Name = "Liquid"
  62. Part5.Parent = Tool0
  63. Part5.CFrame = CFrame.new(44.676136, 0.570006013, -35.7477722, -3.56667478e-08, -5.8540536e-06, 0.999991953, -7.47440083e-07, 1, 5.85408407e-06, -0.999991953, -7.48470825e-07, -3.56305385e-08)
  64. Part5.Orientation = Vector3.new(0, 90, 0)
  65. Part5.Position = Vector3.new(44.676136, 0.570006013, -35.7477722)
  66. Part5.Rotation = Vector3.new(-90.3499985, 89.7699966, 90.3499985)
  67. Part5.Color = Color3.fromRGB(255, 176, 0)
  68. Part5.Transparency = 0.5
  69. Part5.Size = Vector3.new(0.610000014, 0.930001259, 0.799999237)
  70. Part5.BottomSurface = Enum.SurfaceType.Smooth
  71. Part5.Friction = 0.5
  72. Part5.Material = Enum.Material.Foil
  73. Part5.TopSurface = Enum.SurfaceType.Smooth
  74. Part5.FormFactor = Enum.FormFactor.Custom
  75. Part5.formFactor = Enum.FormFactor.Custom
  76. CylinderMesh6.Parent = Part5
  77. CylinderMesh6.Scale = Vector3.new(0.899999976, 1, 3)
  78.  
  79. local tool = Tool0
  80. local handle = tool:FindFirstChild('Handle')
  81. local cap = tool:FindFirstChild('Cork')
  82. local d = {}
  83.  
  84. for i,v in pairs(tool:GetChildren()) do
  85.     if v ~= handle then
  86.         local w = Instance.new("Weld")
  87.         w.Part0 = handle
  88.         w.Part1 = v
  89.         w.C0 = handle.CFrame:Inverse()
  90.         w.C1 = v.CFrame:Inverse()
  91.         w.Parent = v
  92.         v.Massless = true
  93.         v.CanCollide = false
  94.     end
  95. end
  96.  
  97. local popped = false
  98.  
  99. local slurp = Instance.new("Sound")
  100. slurp.Parent = handle
  101. slurp.SoundId = "rbxassetid://1820372394"
  102. slurp.Volume = 1.2
  103.  
  104. local pop_s = Instance.new("Sound")
  105. pop_s.Parent = handle
  106. pop_s.SoundId = "rbxassetid://4676738150"
  107. pop_s.Volume = 1
  108.  
  109. local burp = Instance.new("Sound")
  110. burp.Parent = handle
  111. burp.SoundId = "rbxassetid://3362384054"
  112. burp.Volume = 1
  113.  
  114. function CheckIfAlive()
  115.     local r = false
  116.     if plr and plr.Parent and char and char.Parent and hum and hum.Parent and hum.Health > 0 and torso and torso.Parent then
  117.         r = true
  118.     end
  119.     return r
  120. end
  121.  
  122. function pop()
  123.     if CheckIfAlive() then else holding = false; tool.Parent = workspace; return; end;
  124.     if not popped then else return end
  125.     popped = true
  126.     pop_s:Play()
  127.     cap:BreakJoints()
  128.     cap.Parent = workspace
  129.     local bv = Instance.new("BodyVelocity")
  130.     bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  131.     bv.Velocity = (cap.CFrame.upVector*5)+(cap.CFrame.lookVector*3)
  132.     bv.Parent = cap
  133.     game:GetService("Debris"):AddItem(bv,0.1)
  134.     wait(0.8)
  135. end
  136.  
  137. function drink()
  138.     if CheckIfAlive() then else holding = false; tool.Parent = workspace; return; end;
  139.     local ch = hum
  140.     local cp = plr
  141.     local cc = char
  142.     game:GetService("TweenService"):Create(tool,TweenInfo.new(0.2),{Grip = CFrame.new(1.50033522, -0.414367318, -0.0900367349, 1, 0, 0, 0, 0.740071774, 0.67252785, 0, -0.67252785, 0.740071774)}):Play()
  143.     slurp:Play()
  144.     repeat wait() until not slurp.IsPlaying
  145.     game:GetService("TweenService"):Create(tool,TweenInfo.new(0.3),{Grip = CFrame.new(0.154978186, -0.435165405, 0.0801391602, 1, 0, 0, 0, 1, 0, 0, 0, 1)}):Play()
  146.     burp:Play()
  147.     --hum.Health = hum.Health-hum.MaxHealth/10
  148.     if not d[cp] then
  149.         d[cp] = {drank = 0,char = cc}
  150.     end
  151.     d[cp] = {drank = d[cp].drank + 1,char = cc}
  152.     if d[cp].drank >= 10 then
  153.         spawn(function()
  154.             game:GetService("TweenService"):Create(hum,TweenInfo.new(1),{Health = 0}):Play()
  155.             wait(1)
  156.             hum.Health = 0
  157.         end)
  158.     end
  159. end
  160.  
  161. tool.Activated:Connect(function()
  162.     if using then return end
  163.     using = true
  164.     pop()
  165.     drink()
  166.     using = false
  167. end)
  168.  
  169. function Equipped()
  170.     pcall(function()
  171.         char = tool.Parent
  172.         plr = game:GetService("Players"):GetPlayerFromCharacter(char)
  173.         hum = char:FindFirstChildOfClass("Humanoid")
  174.         torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart")
  175.         if CheckIfAlive() then else holding = false; tool.Parent = workspace; return; end;
  176.         holding = true
  177.     end)
  178. end
  179.  
  180. function Unequipped()
  181.     holding = false
  182. end
  183.  
  184. tool.Equipped:Connect(Equipped)
  185. tool.Unequipped:Connect(Unequipped)
  186.  
  187. function round(n)
  188.     return math.floor(n + 0.5)
  189. end
  190.  
  191. while true do
  192.     for p,t in pairs(d) do
  193.         local drank = t.drank
  194.         local rd = round(drank)
  195.         if rd == 0 then
  196.             d[p] = nil
  197.             continue
  198.         end
  199.         local cc = t.char
  200.         if not cc or not cc.Parent then
  201.             d[p] = nil
  202.             continue
  203.         end
  204.         local ch = cc:FindFirstChild("Humanoid")
  205.         local cp = game:GetService("Players"):GetPlayerFromCharacter(cc)
  206.         local dmg = 5
  207.         for i = 1,rd do
  208.             if math.random(1,3) == 1 then
  209.                 dmg = dmg + math.random(4,7)
  210.             end
  211.         end
  212.         if ch then
  213.             ch:TakeDamage(dmg)
  214.             ch.Sit = true
  215.         end
  216.         t.drank = t.drank - 0.3
  217.     end
  218.     wait(4)
  219. end
Add Comment
Please, Sign In to add comment