Advertisement
UnoPastes

milk

Mar 24th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.64 KB | None | 0 0
  1. local Player = game.Players.localPlayer
  2. local Character = Player.Character
  3. local Humanoid = Character.Humanoid
  4. local Mouse = Player:GetMouse()
  5. local LeftArm = Character["Left Arm"]
  6. local RightArm = Character["Right Arm"]
  7. local LeftLeg = Character["Left Leg"]
  8. local RightLeg = Character["Right Leg"]
  9. local Head = Character.Head
  10. local Torso = Character.Torso
  11. local Camera = game.Workspace.CurrentCamera
  12. local RootPart = Character.HumanoidRootPart
  13. local RootJoint = RootPart.RootJoint
  14. local attack = false
  15. local Anim = 'Idle'
  16. local attacktype = 1
  17. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  18. local velocity = RootPart.Velocity.y
  19. local sine = 0
  20. local change = 1
  21. local oml = false
  22. local Equipped = false
  23. local hide = false
  24. local Gender = 1 --Triggered
  25. local Create = LoadLibrary("RbxUtility").Create
  26. Character.Humanoid.MaxHealth = math.huge
  27. Character.Humanoid.Health = math.huge
  28.  
  29.  
  30. local m = Create("Model"){
  31. Parent = Character,
  32. Name = "WeaponModel",
  33. }
  34.  
  35. Humanoid.Animator.Parent = nil
  36. Character.Animate.Parent = nil
  37.  
  38. local newMotor = function(part0, part1, c0, c1)
  39. local w = Create('Motor'){
  40. Parent = part0,
  41. Part0 = part0,
  42. Part1 = part1,
  43. C0 = c0,
  44. C1 = c1,
  45. }
  46. return w
  47. end
  48.  
  49. function clerp(a, b, t)
  50. return a:lerp(b, t)
  51. end
  52.  
  53. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  54. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  55.  
  56. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  57. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  58. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  59. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  60. RootJoint.C1 = CFrame.new(0, 0, 0)
  61. RootJoint.C0 = CFrame.new(0, 0, 0)
  62. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  63. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  64.  
  65. local rarmc1 = RW.C1
  66. local larmc1 = LW.C1
  67. local rlegc1 = RH.C1
  68. local llegc1 = LH.C1
  69.  
  70. local resetc1 = false
  71.  
  72. function PlayAnimationFromTable(table, speed, bool)
  73. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  74. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  75. RW.C0 = clerp(RW.C0, table[3], speed)
  76. LW.C0 = clerp(LW.C0, table[4], speed)
  77. RH.C0 = clerp(RH.C0, table[5], speed)
  78. LH.C0 = clerp(LH.C0, table[6], speed)
  79. if bool == true then
  80. if resetc1 == false then
  81. resetc1 = true
  82. RootJoint.C1 = RootJoint.C1
  83. Torso.Neck.C1 = Torso.Neck.C1
  84. RW.C1 = rarmc1
  85. LW.C1 = larmc1
  86. RH.C1 = rlegc1
  87. LH.C1 = llegc1
  88. end
  89. end
  90. end
  91.  
  92. ArtificialHB = Create("BindableEvent", script){
  93. Parent = script,
  94. Name = "Heartbeat",
  95. }
  96.  
  97. script:WaitForChild("Heartbeat")
  98.  
  99. frame = 1 / 30
  100. tf = 0
  101. allowframeloss = false
  102. tossremainder = false
  103. lastframe = tick()
  104. script.Heartbeat:Fire()
  105.  
  106. game:GetService("RunService").Heartbeat:connect(function(s, p)
  107. tf = tf + s
  108. if tf >= frame then
  109. if allowframeloss then
  110. script.Heartbeat:Fire()
  111. lastframe = tick()
  112. else
  113. for i = 1, math.floor(tf / frame) do
  114. script.Heartbeat:Fire()
  115. end
  116. lastframe = tick()
  117. end
  118. if tossremainder then
  119. tf = 0
  120. else
  121. tf = tf - frame * math.floor(tf / frame)
  122. end
  123. end
  124. end)
  125.  
  126. function swait(num)
  127. if num == 0 or num == nil then
  128. ArtificialHB.Event:wait()
  129. else
  130. for i = 0, num do
  131. ArtificialHB.Event:wait()
  132. end
  133. end
  134. end
  135.  
  136. function RemoveOutlines(part)
  137. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  138. end
  139.  
  140. CFuncs = {
  141. ["Part"] = {
  142. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  143. local Part = Create("Part"){
  144. Parent = Parent,
  145. Reflectance = Reflectance,
  146. Transparency = Transparency,
  147. CanCollide = false,
  148. Locked = true,
  149. BrickColor = BrickColor.new(tostring(BColor)),
  150. Name = Name,
  151. Size = Size,
  152. Material = Material,
  153. }
  154. RemoveOutlines(Part)
  155. return Part
  156. end;
  157. };
  158.  
  159. ["Mesh"] = {
  160. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  161. local Msh = Create(Mesh){
  162. Parent = Part,
  163. Offset = OffSet,
  164. Scale = Scale,
  165. }
  166. if Mesh == "SpecialMesh" then
  167. Msh.MeshType = MeshType
  168. Msh.MeshId = MeshId
  169. end
  170. return Msh
  171. end;
  172. };
  173.  
  174. ["Mesh"] = {
  175. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  176. local Msh = Create(Mesh){
  177. Parent = Part,
  178. Offset = OffSet,
  179. Scale = Scale,
  180. }
  181. if Mesh == "SpecialMesh" then
  182. Msh.MeshType = MeshType
  183. Msh.MeshId = MeshId
  184. end
  185. return Msh
  186. end;
  187. };
  188.  
  189. ["Weld"] = {
  190. Create = function(Parent, Part0, Part1, C0, C1)
  191. local Weld = Create("Weld"){
  192. Parent = Parent,
  193. Part0 = Part0,
  194. Part1 = Part1,
  195. C0 = C0,
  196. C1 = C1,
  197. }
  198. return Weld
  199. end;
  200. };
  201.  
  202. ["Sound"] = {
  203. Create = function(id, par, vol, pit)
  204. coroutine.resume(coroutine.create(function()
  205. local S = Create("Sound"){
  206. Volume = vol,
  207. Pitch = pit or 1,
  208. SoundId = id,
  209. Parent = par or workspace,
  210. }
  211. wait()
  212. S:play()
  213. game:GetService("Debris"):AddItem(S, 6)
  214. end))
  215. end;
  216. };
  217.  
  218. ["ParticleEmitter"] = {
  219. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  220. local fp = Create("ParticleEmitter"){
  221. Parent = Parent,
  222. Color = ColorSequence.new(Color1, Color2),
  223. LightEmission = LightEmission,
  224. Size = Size,
  225. Texture = Texture,
  226. Transparency = Transparency,
  227. ZOffset = ZOffset,
  228. Acceleration = Accel,
  229. Drag = Drag,
  230. LockedToPart = LockedToPart,
  231. VelocityInheritance = VelocityInheritance,
  232. EmissionDirection = EmissionDirection,
  233. Enabled = Enabled,
  234. Lifetime = LifeTime,
  235. Rate = Rate,
  236. Rotation = Rotation,
  237. RotSpeed = RotSpeed,
  238. Speed = Speed,
  239. VelocitySpread = VelocitySpread,
  240. }
  241. return fp
  242. end;
  243. };
  244.  
  245. CreateTemplate = {
  246.  
  247. };
  248. }
  249.  
  250.  
  251. New = function(Object, Parent, Name, Data)
  252. local Object = Instance.new(Object)
  253. for Index, Value in pairs(Data or {}) do
  254. Object[Index] = Value
  255. end
  256. Object.Parent = Parent
  257. Object.Name = Name
  258. return Object
  259. end
  260.  
  261. New = function(Object, Parent, Name, Data)
  262. local Object = Instance.new(Object)
  263. for Index, Value in pairs(Data or {}) do
  264. Object[Index] = Value
  265. end
  266. Object.Parent = Parent
  267. Object.Name = Name
  268. return Object
  269. end
  270. Milk = New("Model",Torso,"Milk",{})
  271. LeftTip = New("Part",Milk,"Left Bump Tip",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Symmetric,Shape = Enum.PartType.Ball,Size = Vector3.new(2, 2.00000024, 2.00000024),CFrame = CFrame.new(40.114666, 0.400974065, -1.34042966, -0.0136929303, 0.0188778769, -0.999728203, 0.00231057359, -0.999818683, -0.0189112332, -0.99990356, -0.00256889523, 0.0136468112),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.854902, 0.52549, 0.478431),})
  272. Mesh = New("SpecialMesh",LeftTip,"Mesh",{Scale = Vector3.new(0.199999928, 0.199999928, 0.199999928),MeshType = Enum.MeshType.Sphere,})
  273. mot = New("Motor",LeftTip,"mot",{Part0 = LeftTip,Part1 = Torso,C0 = CFrame.new(0, 0, 0, -0.0136929303, 0.00231057359, -0.99990356, 0.0188778769, -0.999818683, -0.00256889523, -0.999728203, -0.0189112332, 0.0136468112),C1 = CFrame.new(-0.685337067, 0.400954008, -0.810440779, 1, -4.71251241e-07, 1.28895817e-06, 4.712426e-07, 1, 6.70561803e-06, -1.28896136e-06, -6.70561758e-06, 1),})
  274. Big = New("Part",Milk,"Bigga",{BrickColor = BrickColor.new("Lily white"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Symmetric,Shape = Enum.PartType.Ball,Size = Vector3.new(1, 1.00000012, 1.00000012),CFrame = CFrame.new(40.2831955, 0.405953944, -0.919200182, -0.999724925, 0.018915711, 0.013881512, -0.0189493317, -0.999817967, -0.00229446031, 0.0138355643, -0.00255687325, 0.999901175),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth})
  275. Mesh = New("SpecialMesh",Big,"Mesh",{Scale = Vector3.new(1.10000002, 1.10000002, 1.10000002),MeshType = Enum.MeshType.Sphere,})
  276. mot = New("Motor",Big,"mot",{Part0 = Big,Part1 = Torso,C0 = CFrame.new(0, 0, 0, -0.999724925, -0.0189493317, 0.0138355643, 0.018915711, -0.999817967, -0.00255687325, 0.013881512, -0.00229446031, 0.999901175),C1 = CFrame.new(-0.516807556, 0.405936778, -0.389211595, 1, -4.71251241e-07, 1.28895817e-06, 4.712426e-07, 1, 6.70561803e-06, -1.28896136e-06, -6.70561758e-06, 1),})
  277. Big = New("Part",Milk,"Bigga",{BrickColor = BrickColor.new("Lily white"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Symmetric,Shape = Enum.PartType.Ball,Size = Vector3.new(1, 1.00000012, 1.00000012),CFrame = CFrame.new(41.2824554, 0.42572841, -0.948771834, -0.999722004, 0.0190666858, 0.0138863847, -0.0191003699, -0.999815047, -0.00229704427, 0.0138400048, -0.00256163999, 0.999901056),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth})
  278. Mesh = New("SpecialMesh",Big,"Mesh",{Scale = Vector3.new(1.10000002, 1.10000002, 1.10000002),MeshType = Enum.MeshType.Sphere,})
  279. mot = New("Motor",Big,"mot",{Part0 = Big,Part1 = Torso,C0 = CFrame.new(0, 0, 0, -0.999722004, -0.0191003699, 0.0138400048, 0.0190666858, -0.999815047, -0.00256163999, 0.0138863847, -0.00229704427, 0.999901056),C1 = CFrame.new(0.482452393, 0.425711542, -0.418784678, 1, -4.71251241e-07, 1.28895817e-06, 4.712426e-07, 1, 6.70561803e-06, -1.28896136e-06, -6.70561758e-06, 1),})
  280. LeftTip = New("Part",Milk,"Left Bump Tip",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Symmetric,Shape = Enum.PartType.Ball,Size = Vector3.new(2, 2.00000024, 2.00000024),CFrame = CFrame.new(41.3635826, 0.425968498, -1.38403642, -0.0136998966, 0.0190271325, -0.999725401, 0.0023103063, -0.999815822, -0.0190605167, -0.9999035, -0.00257079722, 0.0136533827),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.854902, 0.52549, 0.478431),})
  281. Mesh = New("SpecialMesh",LeftTip,"Mesh",{Scale = Vector3.new(0.199999928, 0.199999928, 0.199999928),MeshType = Enum.MeshType.Sphere,})
  282. mot = New("Motor",LeftTip,"mot",{Part0 = LeftTip,Part1 = Torso,C0 = CFrame.new(0, 0, 0, -0.0136998966, 0.0023103063, -0.9999035, 0.0190271325, -0.999815822, -0.00257079722, -0.999725401, -0.0190605167, 0.0136533827),C1 = CFrame.new(0.563579559, 0.425948739, -0.854049325, 1, -4.71251241e-07, 1.28895817e-06, 4.712426e-07, 1, 6.70561803e-06, -1.28896136e-06, -6.70561758e-06, 1),})
  283. LeftTip2 = New("Part",Milk,"Left Bump Tip2",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Symmetric,Shape = Enum.PartType.Ball,Size = Vector3.new(1, 1.00000012, 1.00000012),CFrame = CFrame.new(40.0788956, 0.411017627, -1.47115374, -0.0136929303, 0.0188778769, -0.999728203, 0.00231057359, -0.999818683, -0.0189112332, -0.99990356, -0.00256889523, 0.0136468112),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.854902, 0.52549, 0.478431),})
  284. Mesh = New("SpecialMesh",LeftTip2,"Mesh",{Scale = Vector3.new(0.199999928, 0.199999928, 0.199999928),MeshType = Enum.MeshType.Sphere,})
  285. mot = New("Motor",LeftTip2,"mot",{Part0 = LeftTip2,Part1 = Torso,C0 = CFrame.new(0, 0, 0, -0.0136929303, 0.00231057359, -0.99990356, 0.0188778769, -0.999818683, -0.00256889523, -0.999728203, -0.0189112332, 0.0136468112),C1 = CFrame.new(-0.721107483, 0.410996675, -0.94116497, 1, -4.71251241e-07, 1.28895817e-06, 4.712426e-07, 1, 6.70561803e-06, -1.28896136e-06, -6.70561758e-06, 1),})
  286. LeftTip2 = New("Part",Milk,"Left Bump Tip2",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Symmetric,Shape = Enum.PartType.Ball,Size = Vector3.new(1, 1.00000012, 1.00000012),CFrame = CFrame.new(41.3674202, 0.437439501, -1.51978374, -0.0136998966, 0.0190271325, -0.999725401, 0.0023103063, -0.999815822, -0.0190605167, -0.9999035, -0.00257079722, 0.0136533827),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.854902, 0.52549, 0.478431),})
  287. Mesh = New("SpecialMesh",LeftTip2,"Mesh",{Scale = Vector3.new(0.199999928, 0.199999928, 0.199999928),MeshType = Enum.MeshType.Sphere,})
  288. mot = New("Motor",LeftTip2,"mot",{Part0 = LeftTip2,Part1 = Torso,C0 = CFrame.new(0, 0, 0, -0.0136998966, 0.0023103063, -0.9999035, 0.0190271325, -0.999815822, -0.00257079722, -0.999725401, -0.0190605167, 0.0136533827),C1 = CFrame.new(0.567417145, 0.437418818, -0.989796638, 1, -4.71251241e-07, 1.28895817e-06, 4.712426e-07, 1, 6.70561803e-06, -1.28896136e-06, -6.70561758e-06, 1),})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement