Advertisement
Christoffer07700Extr

e

Oct 15th, 2019
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.19 KB | None | 0 0
  1. local scale = 1.2
  2. local msh = "rbxassetid://10470609"
  3. local txt = "http://www.roblox.com/asset/?id=10470600"
  4. local v3 = Vector3.new
  5. local gripf = 0, 0, 0
  6. local gripp = 0, 0, 0
  7. local gripr = 0, 0, 0
  8. local gripu = 0, 0, 0
  9.  
  10. local plr = owner
  11. local char = plr.Character
  12. local ra = char:WaitForChild("Right Arm")
  13. local rs = char.Torso:WaitForChild("Right Shoulder")
  14. local neck = char.Torso:WaitForChild("Neck")
  15.  
  16. local function gripit(togrip)
  17. togrip.GripForward = v3(0, 0, -1)
  18. togrip.GripPos = v3(0, 0, 0)
  19. togrip.GripRight = v3(1, 0, 0)
  20. togrip.GripUp = v3(0, 1, 0)
  21. end
  22.  
  23. local tool = Instance.new("Tool",plr.Backpack)
  24. tool.Name = "Bloxy Cola"
  25. local handle = Instance.new("Part",tool)
  26. handle.Size = Vector3.new(1, 1.2, 1)
  27. handle.CanCollide = false
  28. handle.Name = "Handle"
  29. local mesh = Instance.new("SpecialMesh",handle)
  30. mesh.MeshId = msh
  31. mesh.TextureId = txt
  32. mesh.Scale = Vector3.new(scale, scale, scale)
  33. gripit(tool)
  34.  
  35. local animations = Instance.new("Model",nil)
  36. local armwld = Instance.new("Weld",animations)
  37. local drinking = false
  38. local tf = 1 / 60
  39. local rsnor = rs.C0
  40. local necknor = neck.C0
  41.  
  42. local function swait(number)
  43. if number == 0 or number == nil then
  44. game:GetService("RunService").Heartbeat:Wait()
  45. else
  46. for i = 1,number do
  47. game:GetService("RunService").Heartbeat:Wait()
  48. end
  49. end
  50. end
  51.  
  52. local ledrank = Instance.new("Sound",handle)
  53. ledrank.SoundId = "rbxassetid://10722059"
  54. ledrank.Name = "DrinkSound"
  55. ledrank.Volume = 10
  56.  
  57. local sips = Instance.new("NumberValue",char)
  58. sips.Name = "total sips"
  59. sips.Value = 0
  60.  
  61. function ragdollchar(character)
  62. local victimshumanoid = character:findFirstChildOfClass("Humanoid")
  63. if not character:findFirstChild("UpperTorso") then
  64. character.Archivable = true
  65. for i,v in pairs(character:GetChildren()) do
  66. if v.ClassName == "Sound" then
  67. v:remove()
  68. end
  69. for q,w in pairs(v:GetChildren()) do
  70. if w.ClassName == "Sound" then
  71. w:remove()
  72. end
  73. end
  74. end
  75. local ragdoll = character:Clone()
  76. ragdoll:findFirstChildOfClass("Humanoid").Health = 0
  77. if ragdoll:findFirstChild("Health") then
  78. if ragdoll:findFirstChild("Health").ClassName == "Script" then
  79. ragdoll:findFirstChild("Health").Disabled = true
  80. end
  81. end
  82. character:ClearAllChildren()
  83. for i,v in pairs(character:GetChildren()) do
  84. if v.ClassName == "Accessory" then
  85. local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  86. if attachment1 then
  87. for q,w in pairs(character:GetChildren()) do
  88. if w.ClassName == "Part" then
  89. local attachment2 = w:findFirstChild(attachment1.Name)
  90. if attachment2 then
  91. local hinge = Instance.new("HingeConstraint", v.Handle)
  92. hinge.Attachment0 = attachment1
  93. hinge.Attachment1 = attachment2
  94. hinge.LimitsEnabled = true
  95. hinge.LowerAngle = 0
  96. hinge.UpperAngle = 0
  97. end
  98. end
  99. end
  100. end
  101. end
  102. end
  103. ragdoll.Parent = workspace
  104. if ragdoll:findFirstChild("Right Arm") then
  105. local glue = Instance.new("Glue", ragdoll.Torso)
  106. glue.Part0 = ragdoll.Torso
  107. glue.Part1 = ragdoll:findFirstChild("Right Arm")
  108. glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  109. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  110. local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Arm"))
  111. limbcollider.Size = Vector3.new(1.4,1,1)
  112. limbcollider.Shape = "Cylinder"
  113. limbcollider.Transparency = 1
  114. limbcollider.Name = "LimbCollider"
  115. local limbcolliderweld = Instance.new("Weld", limbcollider)
  116. limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Arm")
  117. limbcolliderweld.Part1 = limbcollider
  118. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  119. end
  120. if ragdoll:findFirstChild("Left Arm") then
  121. local glue = Instance.new("Glue", ragdoll.Torso)
  122. glue.Part0 = ragdoll.Torso
  123. glue.Part1 = ragdoll:findFirstChild("Left Arm")
  124. glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  125. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  126. local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Arm"))
  127. limbcollider.Size = Vector3.new(1.4,1,1)
  128. limbcollider.Shape = "Cylinder"
  129. limbcollider.Name = "LimbCollider"
  130. limbcollider.Transparency = 1
  131. local limbcolliderweld = Instance.new("Weld", limbcollider)
  132. limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Arm")
  133. limbcolliderweld.Part1 = limbcollider
  134. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  135. end
  136. if ragdoll:findFirstChild("Left Leg") then
  137. local glue = Instance.new("Glue", ragdoll.Torso)
  138. glue.Part0 = ragdoll.Torso
  139. glue.Part1 = ragdoll:findFirstChild("Left Leg")
  140. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  141. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  142. local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Leg"))
  143. limbcollider.Size = Vector3.new(1.4,1,1)
  144. limbcollider.Shape = "Cylinder"
  145. limbcollider.Name = "LimbCollider"
  146. limbcollider.Transparency = 1
  147. local limbcolliderweld = Instance.new("Weld", limbcollider)
  148. limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Leg")
  149. limbcolliderweld.Part1 = limbcollider
  150. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  151. end
  152. if ragdoll:findFirstChild("Right Leg") then
  153. local glue = Instance.new("Glue", ragdoll.Torso)
  154. glue.Part0 = ragdoll.Torso
  155. glue.Part1 = ragdoll:findFirstChild("Right Leg")
  156. glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  157. glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  158. local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Leg"))
  159. limbcollider.Size = Vector3.new(1.4,1,1)
  160. limbcollider.Shape = "Cylinder"
  161. limbcollider.Name = "LimbCollider"
  162. limbcollider.Transparency = 1
  163. local limbcolliderweld = Instance.new("Weld", limbcollider)
  164. limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Leg")
  165. limbcolliderweld.Part1 = limbcollider
  166. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  167. end
  168. if ragdoll:findFirstChild("Head") and ragdoll.Torso:findFirstChild("NeckAttachment") then
  169. local HeadAttachment = Instance.new("Attachment", ragdoll["Head"])
  170. HeadAttachment.Position = Vector3.new(0, -0.5, 0)
  171. local connection = Instance.new('HingeConstraint', ragdoll["Head"])
  172. connection.LimitsEnabled = true
  173. connection.Attachment0 = ragdoll.Torso.NeckAttachment
  174. connection.Attachment1 = HeadAttachment
  175. connection.UpperAngle = 60
  176. connection.LowerAngle = -60
  177. elseif ragdoll:findFirstChild("Head") and not ragdoll.Torso:findFirstChild("NeckAttachment") then
  178. local hedweld = Instance.new("Weld", ragdoll.Torso)
  179. hedweld.Part0 = ragdoll.Torso
  180. hedweld.Part1 = ragdoll.Head
  181. hedweld.C0 = CFrame.new(0,1.5,0)
  182. end
  183. game.Debris:AddItem(ragdoll, 30)
  184. wait(0.7)
  185. if ragdoll:findFirstChildOfClass("Humanoid") then
  186. ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
  187. end
  188. if ragdoll:findFirstChild("HumanoidRootPart") then
  189. ragdoll:findFirstChild("HumanoidRootPart"):destroy()
  190. end
  191. elseif character:findFirstChild("UpperTorso") then
  192. character.Archivable = true
  193. for i,v in pairs(character:GetChildren()) do
  194. if v.ClassName == "Sound" then
  195. v:remove()
  196. end
  197. for q,w in pairs(v:GetChildren()) do
  198. if w.ClassName == "Sound" then
  199. w:remove()
  200. end
  201. end
  202. end
  203. local ragdoll = character:Clone()
  204. ragdoll:findFirstChildOfClass("Humanoid").Health = 0
  205. if ragdoll:findFirstChild("Health") then
  206. if ragdoll:findFirstChild("Health").ClassName == "Script" then
  207. ragdoll:findFirstChild("Health").Disabled = true
  208. end
  209. end
  210. for i,v in pairs(character:GetChildren()) do
  211. if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" or v.ClassName == "MeshPart" then
  212. v:destroy()
  213. end
  214. end
  215. for i,v in pairs(character:GetChildren()) do
  216. if v.ClassName == "Accessory" then
  217. local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  218. if attachment1 then
  219. for q,w in pairs(character:GetChildren()) do
  220. if w.ClassName == "Part" or w.ClassName == "MeshPart" then
  221. local attachment2 = w:findFirstChild(attachment1.Name)
  222. if attachment2 then
  223. local hinge = Instance.new("HingeConstraint", v.Handle)
  224. hinge.Attachment0 = attachment1
  225. hinge.Attachment1 = attachment2
  226. hinge.LimitsEnabled = true
  227. hinge.LowerAngle = 0
  228. hinge.UpperAngle = 0
  229. end
  230. end
  231. end
  232. end
  233. end
  234. end
  235. ragdoll.Parent = workspace
  236. local Humanoid = ragdoll:findFirstChildOfClass("Humanoid")
  237. Humanoid.PlatformStand = true
  238. local function makeballconnections(limb, attachementone, attachmenttwo, twistlower, twistupper)
  239. local connection = Instance.new('BallSocketConstraint', limb)
  240. connection.LimitsEnabled = true
  241. connection.Attachment0 = attachementone
  242. connection.Attachment1 = attachmenttwo
  243. connection.TwistLimitsEnabled = true
  244. connection.TwistLowerAngle = twistlower
  245. connection.TwistUpperAngle = twistupper
  246. local limbcollider = Instance.new("Part", limb)
  247. limbcollider.Size = Vector3.new(0.1,1,1)
  248. limbcollider.Shape = "Cylinder"
  249. limbcollider.Transparency = 1
  250. limbcollider:BreakJoints()
  251. local limbcolliderweld = Instance.new("Weld", limbcollider)
  252. limbcolliderweld.Part0 = limb
  253. limbcolliderweld.Part1 = limbcollider
  254. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
  255. end
  256. local function makehingeconnections(limb, attachementone, attachmenttwo, lower, upper)
  257. local connection = Instance.new('HingeConstraint', limb)
  258. connection.LimitsEnabled = true
  259. connection.Attachment0 = attachementone
  260. connection.Attachment1 = attachmenttwo
  261. connection.LimitsEnabled = true
  262. connection.LowerAngle = lower
  263. connection.UpperAngle = upper
  264. local limbcollider = Instance.new("Part", limb)
  265. limbcollider.Size = Vector3.new(0.1,1,1)
  266. limbcollider.Shape = "Cylinder"
  267. limbcollider.Transparency = 1
  268. limbcollider:BreakJoints()
  269. local limbcolliderweld = Instance.new("Weld", limbcollider)
  270. limbcolliderweld.Part0 = limb
  271. limbcolliderweld.Part1 = limbcollider
  272. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
  273. end
  274. local HeadAttachment = Instance.new("Attachment", Humanoid.Parent.Head)
  275. HeadAttachment.Position = Vector3.new(0, -0.5, 0)
  276. makehingeconnections(Humanoid.Parent.Head, HeadAttachment, ragdoll.UpperTorso.NeckAttachment, -50, 50)
  277. makehingeconnections(Humanoid.Parent.LowerTorso, Humanoid.Parent.LowerTorso.WaistRigAttachment, Humanoid.Parent.UpperTorso.WaistRigAttachment, -50, 50)
  278. makeballconnections(Humanoid.Parent.LeftUpperArm, Humanoid.Parent.LeftUpperArm.LeftShoulderRigAttachment, Humanoid.Parent.UpperTorso.LeftShoulderRigAttachment, -200, 200, 180)
  279. makehingeconnections(Humanoid.Parent.LeftLowerArm, Humanoid.Parent.LeftLowerArm.LeftElbowRigAttachment, Humanoid.Parent.LeftUpperArm.LeftElbowRigAttachment, 0, -60)
  280. makehingeconnections(Humanoid.Parent.LeftHand, Humanoid.Parent.LeftHand.LeftWristRigAttachment, Humanoid.Parent.LeftLowerArm.LeftWristRigAttachment, -20, 20)
  281. --
  282. makeballconnections(Humanoid.Parent.RightUpperArm, Humanoid.Parent.RightUpperArm.RightShoulderRigAttachment, Humanoid.Parent.UpperTorso.RightShoulderRigAttachment, -200, 200, 180)
  283. makehingeconnections(Humanoid.Parent.RightLowerArm, Humanoid.Parent.RightLowerArm.RightElbowRigAttachment, Humanoid.Parent.RightUpperArm.RightElbowRigAttachment, 0, -60)
  284. makehingeconnections(Humanoid.Parent.RightHand, Humanoid.Parent.RightHand.RightWristRigAttachment, Humanoid.Parent.RightLowerArm.RightWristRigAttachment, -20, 20)
  285. --
  286. makeballconnections(Humanoid.Parent.RightUpperLeg, Humanoid.Parent.RightUpperLeg.RightHipRigAttachment, Humanoid.Parent.LowerTorso.RightHipRigAttachment, -80, 80, 80)
  287. makehingeconnections(Humanoid.Parent.RightLowerLeg, Humanoid.Parent.RightLowerLeg.RightKneeRigAttachment, Humanoid.Parent.RightUpperLeg.RightKneeRigAttachment, 0, 60)
  288. makehingeconnections(Humanoid.Parent.RightFoot, Humanoid.Parent.RightFoot.RightAnkleRigAttachment, Humanoid.Parent.RightLowerLeg.RightAnkleRigAttachment, -20, 20)
  289. --
  290. makeballconnections(Humanoid.Parent.LeftUpperLeg, Humanoid.Parent.LeftUpperLeg.LeftHipRigAttachment, Humanoid.Parent.LowerTorso.LeftHipRigAttachment, -80, 80, 80)
  291. makehingeconnections(Humanoid.Parent.LeftLowerLeg, Humanoid.Parent.LeftLowerLeg.LeftKneeRigAttachment, Humanoid.Parent.LeftUpperLeg.LeftKneeRigAttachment, 0, 60)
  292. makehingeconnections(Humanoid.Parent.LeftFoot, Humanoid.Parent.LeftFoot.LeftAnkleRigAttachment, Humanoid.Parent.LeftLowerLeg.LeftAnkleRigAttachment, -20, 20)
  293. for i,v in pairs(Humanoid.Parent:GetChildren()) do
  294. if v.ClassName == "Accessory" then
  295. local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  296. if attachment1 then
  297. for q,w in pairs(Humanoid.Parent:GetChildren()) do
  298. if w.ClassName == "Part" then
  299. local attachment2 = w:findFirstChild(attachment1.Name)
  300. if attachment2 then
  301. local hinge = Instance.new("HingeConstraint", v.Handle)
  302. hinge.Attachment0 = attachment1
  303. hinge.Attachment1 = attachment2
  304. hinge.LimitsEnabled = true
  305. hinge.LowerAngle = 0
  306. hinge.UpperAngle = 0
  307. end
  308. end
  309. end
  310. end
  311. end
  312. end
  313. for i,v in pairs(ragdoll:GetChildren()) do
  314. for q,w in pairs(v:GetChildren()) do
  315. if w.ClassName == "Motor6D"--[[ and w.Name ~= "Neck"--]] then
  316. w:destroy()
  317. end
  318. end
  319. end
  320. if ragdoll:findFirstChild("HumanoidRootPart") then
  321. ragdoll.HumanoidRootPart.Anchored = true
  322. ragdoll.HumanoidRootPart.CanCollide = false
  323. end
  324. if ragdoll:findFirstChildOfClass("Humanoid") then
  325. ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
  326. end
  327. game.Debris:AddItem(ragdoll, 5)
  328. end
  329. end
  330.  
  331. local drinkanim = Instance.new("Animation",tool)
  332. drinkanim.Name = "drink"
  333. drinkanim.AnimationId = "http://www.roblox.com/Asset?ID=29517689"
  334. local drink = char:FindFirstChildOfClass("Humanoid"):LoadAnimation(drinkanim)
  335.  
  336. function jews()
  337.  
  338. local sur = Instance.new("BillboardGui", char.Head)
  339. sur.Name = "Billboard"
  340. sur.Adornee = char.Head
  341. sur.Size = UDim2.new(10, 0, 5, 0)
  342. sur.StudsOffset = Vector3.new(0, 1.5, 0)
  343. local text = Instance.new("TextLabel", sur)
  344. text.Text = "*SLURP*"
  345. text.Size = UDim2.new(1, 0, 0.75, 0)
  346. text.TextScaled = true
  347. text.BackgroundTransparency = 1
  348. text.Font = Enum.Font.Cartoon
  349. text.TextColor3 = Color3.new(1, 1, 1)
  350. text.TextStrokeTransparency = 1
  351. game.Debris:AddItem(sur, 1.25)
  352.  
  353. end
  354.  
  355. local function activatedold()
  356. --if drinking == false then
  357. drinking = true
  358. ledrank:Play()
  359. sips.Value = sips.Value + 1
  360. if sips.Value > 2.99 then
  361. char:BreakJoints()
  362. ragdollchar(char)
  363. end
  364. for i = 1,55 do
  365. swait()
  366. rs.C0 = rs.C0:Lerp(rsnor * CFrame.Angles(-1.25, 0, -77 / 2.5), 0.15)
  367. end
  368. drinking = false
  369. for i = 1,30 do
  370. swait()
  371. rs.C0 = rs.C0:Lerp(rsnor, 0.15)
  372. end
  373. --end
  374. end
  375.  
  376. local function activated()
  377. drinking = true
  378. ledrank:Play()
  379. drink:Play()
  380. jews()
  381. sips.Value = sips.Value + 1
  382. if sips.Value > 2.99 then
  383. char:BreakJoints()
  384. ragdollchar(char)
  385. end
  386. for i = 1,55 do
  387. swait()
  388. neck.C0 = neck.C0:Lerp(necknor * CFrame.Angles(-0.25, 0, 0), 0.15)
  389. end
  390. for i = 1,30 do
  391. swait()
  392. neck.C0 = neck.C0:Lerp(necknor, 0.15)
  393. end
  394. drinking = false
  395. end
  396.  
  397. tool.Activated:connect(activated)
  398.  
  399. while true do
  400. swait()
  401. if sips.Value > 0 then
  402. sips.Value = sips.Value - 0.01
  403. end
  404. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement