Advertisement
HenloMyDude

dcs soda

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