Advertisement
igdegoo

ODer Cola

Nov 5th, 2017
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.89 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Tool0 = Instance.new("Tool")
  20. Part1 = Instance.new("Part")
  21. SpecialMesh2 = Instance.new("SpecialMesh")
  22. Sound3 = Instance.new("Sound")
  23. Sound4 = Instance.new("Sound")
  24. Script5 = Instance.new("Script")
  25. Tool0.Name = "ODer Cola"
  26. Tool0.Parent = mas
  27. Tool0.TextureId = "rbxassetid://345641062"
  28. Tool0.GripForward = Vector3.new(-0.976163507, 0, -0.217036352)
  29. Tool0.GripPos = Vector3.new(-0.150000006, 0, -0.300000012)
  30. Tool0.GripRight = Vector3.new(0.217036352, 0, -0.976163507)
  31. Part1.Name = "Handle"
  32. Part1.Parent = Tool0
  33. Part1.BrickColor = BrickColor.new("Mid gray")
  34. Part1.Rotation = Vector3.new(-90, -89.9799957, -89.9599991)
  35. Part1.Locked = true
  36. Part1.FormFactor = Enum.FormFactor.Plate
  37. Part1.Size = Vector3.new(1, 1.20000005, 1)
  38. Part1.CFrame = CFrame.new(0.500116289, 0.599470139, 16.4994812, 1.49011612e-07, 0.000193958229, -0.99999994, 0.000865344482, 0.999999583, 0.000193958331, 0.999999583, -0.000865344482, 0)
  39. Part1.BottomSurface = Enum.SurfaceType.Smooth
  40. Part1.TopSurface = Enum.SurfaceType.Smooth
  41. Part1.Color = Color3.new(0.803922, 0.803922, 0.803922)
  42. Part1.Position = Vector3.new(0.500116289, 0.599470139, 16.4994812)
  43. Part1.Orientation = Vector3.new(-0.00999999978, -90, 0.049999997)
  44. Part1.Color = Color3.new(0.803922, 0.803922, 0.803922)
  45. SpecialMesh2.Parent = Part1
  46. SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=10470609"
  47. SpecialMesh2.Scale = Vector3.new(1.20000005, 1.20000005, 1.20000005)
  48. SpecialMesh2.TextureId = "rbxassetid://1145273756"
  49. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  50. SpecialMesh2.Scale = Vector3.new(1.20000005, 1.20000005, 1.20000005)
  51. Sound3.Name = "DrinkSound"
  52. Sound3.Parent = Part1
  53. Sound3.SoundId = "http://www.roblox.com/asset/?id=10722059"
  54. Sound4.Name = "OpenSound"
  55. Sound4.Parent = Part1
  56. Sound4.SoundId = "http://www.roblox.com/asset/?id=10721950"
  57. Script5.Name = "BloxyColaScript"
  58. Script5.Parent = Tool0
  59. table.insert(cors,sandbox(Script5,function()
  60. local Tool = script.Parent;
  61.  
  62. enabled = true
  63.  
  64. alreadyoder = false
  65. function onActivated()
  66. if alreadyoder == false then
  67. if not enabled then
  68. return
  69. end
  70. alreadyoder = true
  71. enabled = false
  72. Player.Torso["Right Shoulder"].C0 = CFrame.new(0.9,0.5,-0.05) * CFrame.Angles(0.2,2,0)
  73. wait(0.05)
  74. Player.Torso["Right Shoulder"].C0 = CFrame.new(0.8,0.5,-0.1) * CFrame.Angles(0.4,2.4,0)
  75.  
  76. Tool.Handle.DrinkSound:Play()
  77.  
  78. for i = 1,30 do
  79. wait(0.1)
  80. Player.Humanoid.Health = Player.Humanoid.Health + 1
  81. end
  82. Player.Torso["Right Shoulder"].C0 = CFrame.new(0.9,0.5,-0.05) * CFrame.Angles(0.2,2,0)
  83. wait(0.05)
  84. Player.Torso["Right Shoulder"].C0 = CFrame.new(1,0.5,-0) * CFrame.Angles(0,1.57,0)
  85. wait(0.5)
  86. enabled = true
  87. --Morph
  88. for _,n in pairs(plr.Character:GetChildren()) do
  89. if n:IsA("Accoutrement") or n:IsA("CharacterAppearance") then
  90. n:remove()
  91. end
  92. end
  93. plr.Character.Head.Mesh:remove()
  94. m = Instance.new("SpecialMesh")
  95. m.MeshType = Enum.MeshType.Head
  96. m.Parent = plr.Character.Head
  97. m.Scale = Vector3.new(1.25,1.25,1.25)
  98. plr.Character.Head.face.Texture = "rbxassetid://166211499"-----change the code the id "9133624" to the face u want
  99. local bodycolors = Instance.new("BodyColors", plr.Character)
  100. bodycolors.RightArmColor = BrickColor.new(125)--- change "Mid gray" to the color u want
  101. bodycolors.LeftArmColor = BrickColor.new(125)--- change "Mid gray" to the color u want
  102. bodycolors.LeftLegColor = BrickColor.new(135)--- change "Mid gray" to the color u want
  103. bodycolors.RightLegColor = BrickColor.new(135)--- change "Mid gray" to the color u want
  104. bodycolors.HeadColor = BrickColor.new(125)--- change "Mid gray" to the color u want
  105. bodycolors.TorsoColor = BrickColor.new(1)--- change "Mid gray" to the color u want
  106. hair = Instance.new("Accessory")
  107. hair.Name = "ODer Hair"
  108. hair.AttachmentForward = Vector3.new(0,0,-1)
  109. hair.AttachmentPos = Vector3.new(0,0,0)
  110. hair.AttachmentRight = Vector3.new(1,0,0)
  111. hair.AttachmentUp = Vector3.new(0,1,0)
  112. handle = Instance.new("Part")
  113. handle.Name = "Handle"
  114. handle.Size = Vector3.new(2,2,2)
  115. attachment = Instance.new("Attachment")
  116. attachment.Orientation = Vector3.new(0,0,0)
  117. attachment.Position = Vector3.new(0,0.1,0)
  118. attachment.Name = "HairAttachment"
  119. weld = Instance.new("Weld")
  120. weld.Part0 = handle
  121. mesh = Instance.new("SpecialMesh")
  122. mesh.Scale = Vector3.new(1.05,1.05,1.05)
  123. mesh.MeshType = Enum.MeshType.FileMesh
  124. mesh.MeshId = "rbxassetid://16627529"
  125. mesh.TextureId = "rbxassetid://16627494"
  126. mesh.Parent = handle
  127. hair.Parent = workspace
  128. handle.Parent = hair
  129. attachment.Parent = handle
  130. weld.Parent = handle
  131. handle.Position = plr.Character.Head.Position
  132. -- Now for the 2.0 body... this will be long
  133. basemesh = Instance.new("CharacterMesh")
  134. basemesh.BaseTextureId = 0
  135. basemesh.OverlayTextureId = 0
  136. torso = basemesh:Clone()
  137. torso.MeshId = 27111894
  138. torso.BodyPart = 1
  139. leftarm = basemesh:Clone()
  140. leftarm.MeshId = 27111419
  141. leftarm.BodyPart = 2
  142. rightarm = basemesh:Clone()
  143. rightarm.MeshId = 27111864
  144. rightarm.BodyPart = 3
  145. leftleg = basemesh:Clone()
  146. leftleg.MeshId = 27111857
  147. leftleg.BodyPart = 4
  148. rightleg = basemesh:Clone()
  149. rightleg.MeshId = 27111882
  150. rightleg.BodyPart = 5
  151. torso.Parent = plr.Character
  152. leftarm.Parent = plr.Character
  153. rightarm.Parent = plr.Character
  154. leftleg.Parent = plr.Character
  155. rightleg.Parent = plr.Character
  156. shirt = Instance.new("Shirt")
  157. shirt.ShirtTemplate = "rbxassetid://108129062"
  158. shirt.Parent = plr.Character
  159. pants = Instance.new("Pants")
  160. pants.PantsTemplate = "rbxassetid://66848496"
  161. pants.Parent = plr.Character
  162. anim = Instance.new("Animation")
  163. anim.AnimationId = "rbxassetid://1145241452"
  164. script.Parent.Parent = plr.Backpack
  165. animtrack = plr.Character.Humanoid:LoadAnimation(anim)
  166. animtrack:Play()
  167. else
  168. hint = Instance.new("Hint")
  169. hint.Text = "You're already an ODer!"
  170. hint.Parent = plr.PlayerGui
  171. game:GetService("Debris"):AddItem(hint,2)
  172. end end
  173.  
  174. function onEquipped()
  175. plr = game:GetService("Players"):GetPlayerFromCharacter(script.Parent.Parent)
  176. Player = script.Parent.Parent
  177. plr.Character.Humanoid.Died:connect(function()
  178. alreadyoder = false
  179. end)
  180. Tool.Handle.OpenSound:play()
  181.  
  182. end
  183.  
  184. function onEnequipped()
  185. Player.Torso["Right Shoulder"].C0 = CFrame.new(1,0.5,-0) * CFrame.Angles(0,1.57,0)
  186. end
  187.  
  188. script.Parent.Activated:connect(onActivated)
  189. script.Parent.Equipped:connect(onEquipped)
  190. script.Parent.Unequipped:connect(onEnequipped)
  191. end))
  192. for i,v in pairs(mas:GetChildren()) do
  193. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  194. pcall(function() v:MakeJoints() end)
  195. end
  196. mas:Destroy()
  197. for i,v in pairs(cors) do
  198. spawn(function()
  199. pcall(v)
  200. end)
  201. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement