Advertisement
BrazilMoon

Beer [ROBLOX]

Apr 1st, 2018
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 24.08 KB | None | 0 0
  1. -- ROBLOX: RocketBlast122
  2. -- YouTube: Stranger Danger Jake
  3. -- Discord: 𝔖𝔱𝔯𝔞𝔫𝔤𝔢𝔯 𝔇𝔞𝔫𝔤𝔢𝔯 𝔍𝔞𝔨𝔢#1620
  4.  
  5.  
  6.  
  7. wait(1)
  8. Player = game:GetService("Players").LocalPlayer
  9. Character = Player.Character
  10. Mouse = Player:GetMouse()
  11. m = Instance.new("Model", Character)
  12. local weldBetween = function(a, b)
  13.   local weldd = Instance.new("ManualWeld")
  14.   weldd.Part0 = a
  15.   weldd.Part1 = b
  16.   weldd.C0 = CFrame.new()
  17.   weldd.C1 = b.CFrame:inverse() * a.CFrame
  18.   weldd.Parent = a
  19.   return weldd
  20. end
  21. it = Instance.new
  22. function nooutline(part)
  23.   part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  24. end
  25. function part(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
  26.   local fp = it("Part")
  27.   fp.formFactor = formfactor
  28.   fp.Parent = parent
  29.   fp.Reflectance = reflectance
  30.   fp.Transparency = transparency
  31.   fp.CanCollide = false
  32.   fp.Locked = true
  33.   fp.BrickColor = BrickColor.new(tostring(brickcolor))
  34.   fp.Name = name
  35.   fp.Size = size
  36.   fp.Position = Character.Torso.Position
  37.   nooutline(fp)
  38.   fp.Material = material
  39.   fp:BreakJoints()
  40.   return fp
  41. end
  42. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  43.   local mesh = it(Mesh)
  44.   mesh.Parent = part
  45.   if Mesh == "SpecialMesh" then
  46.     mesh.MeshType = meshtype
  47.     mesh.MeshId = meshid
  48.   end
  49.   mesh.Offset = offset
  50.   mesh.Scale = scale
  51.   return mesh
  52. end
  53. function weld(parent, part0, part1, c0, c1)
  54.   local weld = it("Weld")
  55.   weld.Parent = parent
  56.   weld.Part0 = part0
  57.   weld.Part1 = part1
  58.   weld.C0 = c0
  59.   weld.C1 = c1
  60.   return weld
  61. end
  62. F = part(Enum.FormFactor.Plate, m, Enum.Material.Plastic, 0, 0, "Black", "Handle", Vector3.new(3.5875988, 0.478346467, 1.19586647))
  63. Fweld = weld(m, Character.Head, F, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0157470703, -0.438977718, 0.00266170502, 0.995733142, 0, 0.0922800079, 0.00925354939, 0.994959533, -0.0998490006, -0.0918148756, 0.10027688, 0.990714252))
  64. mesh("SpecialMesh", F, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=", Vector3.new(0, 0, 0), Vector3.new(1.31545293, 1.31545281, 1.31545317))
  65. player = game.Players.LocalPlayer
  66. char = player.Character
  67. run = game:GetService("RunService")
  68. local xd = Instance.new("Model", game.Workspace)
  69. xd.Name = player.Name .. "'s INSTANCES"
  70. ignore = {}
  71. mouse = player:GetMouse()
  72. mouse.TargetFilter = xd
  73. local IdleAndWalk = false
  74. current = true
  75. skl = false
  76. function onKeyDown(key)
  77.   key:lower()
  78.   if key == "f" then
  79.     do
  80.       local Camera = game.Workspace.CurrentCamera
  81.       local Player = game:GetService("Players").LocalPlayer
  82.       repeat
  83.         wait()
  84.       until Player.Character
  85.       Camera.CameraType = "Scriptable"
  86.       game:GetService("RunService").Stepped:connect(function()
  87.         Camera.CoordinateFrame = Camera.CoordinateFrame * CFrame.fromEulerAnglesXYZ(0.01, 0.01, 0.01)
  88.       end)
  89.     end
  90.   end
  91. end
  92. mouse.KeyDown:connect(onKeyDown)
  93. function onKeyDown(key)
  94.   key:lower()
  95.   if key == "g" then
  96.     local Camera = game.Workspace.CurrentCamera
  97.     Camera.CameraType = "Follow"
  98.   end
  99. end
  100. mouse.KeyDown:connect(onKeyDown)
  101. local Player, Character, Mouse = game:service("Players").LocalPlayer, game:GetService("Players").LocalPlayer.Character, game:GetService("Players").LocalPlayer:GetMouse()
  102. local currentCam = workspace.CurrentCamera
  103. Humanoid = Character:findFirstChild("Humanoid")
  104. Torso = Character:findFirstChild("Torso")
  105. Head = Character:findFirstChild("Head")
  106. Right_Arm = Character:findFirstChild("Right Arm")
  107. Left_Arm = Character:findFirstChild("Left Arm")
  108. Right_Leg = Character:findFirstChild("Right Leg")
  109. Right_Leg.FormFactor = "Custom"
  110. Left_Leg = Character:findFirstChild("Left Leg")
  111. Left_Leg.FormFactor = "Custom"
  112. Right_Shoulder = Torso:findFirstChild("Right Shoulder")
  113. Left_Shoulder = Torso:findFirstChild("Left Shoulder")
  114. Right_Hip = Torso:findFirstChild("Right Hip")
  115. Left_Hip = Torso:findFirstChild("Left Hip")
  116. Neck = Torso:findFirstChild("Neck")
  117. rootPart = Character:findFirstChild("HumanoidRootPart")
  118. rootPart.Archivable = true
  119. rootJoint = rootPart:findFirstChild("RootJoint")
  120. rootJoint.Archivable = true
  121. c_new = CFrame.new
  122. i_new = Instance.new
  123. c_angles = CFrame.Angles
  124. Humanoid:ClearAllChildren()
  125. local Animations = false
  126. local followMouse = false
  127. local isSprinting = false
  128. local Angle = 0
  129. local angleSpeed = 1
  130. local currentAnim
  131. local Vaping = false
  132. local vapePower = 2.5
  133. local Release = false
  134. local currentFace = Head.face.Texture
  135. function math_pos(float)
  136.   if float < 0 then
  137.     float = 0
  138.   end
  139.   return float
  140. end
  141. function math_neg(float)
  142.   if float > 0 then
  143.     float = 0
  144.   end
  145.   return float
  146. end
  147. function math_max(float, max)
  148.   if max < float then
  149.     float = max
  150.   end
  151.   return float
  152. end
  153. function math_min(float, min)
  154.   if min < float then
  155.     float = min
  156.   end
  157.   return float
  158. end
  159. function newWeld(wp0, wp1, wc0x, wc0y, wc0z)
  160.   wld = Instance.new("Weld", wp1)
  161.   wld.Part0 = wp0
  162.   wld.Part1 = wp1
  163.   wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  164.   return wld
  165. end
  166. function newWeld2(wp02, wp12, wc0x2, wc0y2, wc0z2, wc0x12, wc0y12, wc0z12)
  167.   wld2 = Instance.new("Weld", wp12)
  168.   wld2.Part0 = wp02
  169.   wld2.Part1 = wp12
  170.   wld2.C0 = CFrame.new(wc0x2, wc0y2, wc0z2) * CFrame.Angles(wc0x12, wc0y12, wc0z12)
  171.   return wld2
  172. end
  173. LA_Weld = newWeld(Torso, Left_Arm, -1.5, 0.5, 0)
  174. Left_Arm.Weld.C1 = CFrame.new(0, 0.5, 0)
  175. RA_Weld = newWeld(Torso, Right_Arm, 1.5, 0.5, 0)
  176. Right_Arm.Weld.C1 = CFrame.new(0, 0.5, 0)
  177. LL_Weld = newWeld(Torso, Left_Leg, -0.5, -1, 0)
  178. Left_Leg.Weld.C1 = CFrame.new(0, 1, 0)
  179. RL_Weld = newWeld(Torso, Right_Leg, 0.5, -1, 0)
  180. Right_Leg.Weld.C1 = CFrame.new(0, 1, 0)
  181. Torso_Weld = newWeld(rootPart, Torso, 0, -1, 0)
  182. Torso.Weld.C1 = CFrame.new(0, -1, 0)
  183. Head_Weld = newWeld(Torso, Head, 0, 1.5, 0)
  184. function nooutline(part)
  185.   part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  186. end
  187. function part(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
  188.   local fp = i_new("Part")
  189.   fp.formFactor = formfactor
  190.   fp.Parent = parent
  191.   fp.Reflectance = reflectance
  192.   fp.Transparency = transparency
  193.   fp.CanCollide = false
  194.   fp.Locked = true
  195.   fp.BrickColor = BrickColor.new(tostring(brickcolor))
  196.   fp.Name = name
  197.   fp.Size = size
  198.   fp.Position = Character.Torso.Position
  199.   nooutline(fp)
  200.   fp.Material = material
  201.   fp:BreakJoints()
  202.   return fp
  203. end
  204. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  205.   local mesh = i_new(Mesh)
  206.   mesh.Parent = part
  207.   if Mesh == "SpecialMesh" then
  208.     mesh.MeshType = meshtype
  209.     mesh.MeshId = meshid
  210.   end
  211.   mesh.Offset = offset
  212.   mesh.Scale = scale
  213.   return mesh
  214. end
  215. function weld(parent, part0, part1, c0, c1)
  216.   local weld = i_new("Weld")
  217.   weld.Parent = parent
  218.   weld.Part0 = part0
  219.   weld.Part1 = part1
  220.   weld.C0 = c0
  221.   weld.C1 = c1
  222.   return weld
  223. end
  224. function swait(num)
  225.   if num == 0 or num == nil then
  226.     game:GetService("RunService").Stepped:wait(0)
  227.   else
  228.     for i = 0, num do
  229.       game:GetService("RunService").Stepped:wait(0)
  230.     end
  231.   end
  232. end
  233. function newRay(start, face, range, wat)
  234.   local ray = Ray.new(start.p, (face.p - start.p).Unit * range)
  235.   hit, pos = workspace:findPartOnRayWithIgnoreList(ray, wat)
  236.   return ray, hit, pos
  237. end
  238. function QuaternionFromCFrame(cf)
  239.   local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  240.   local trace = m00 + m11 + m22
  241.   if trace > 0 then
  242.     local s = math.sqrt(1 + trace)
  243.     local recip = 0.5 / s
  244.     return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  245.   else
  246.     local i = 0
  247.     if m00 < m11 then
  248.       i = 1
  249.     end
  250.     if m22 > (i == 0 and m00 or m11) then
  251.       i = 2
  252.     end
  253.     if i == 0 then
  254.       local s = math.sqrt(m00 - m11 - m22 + 1)
  255.       local recip = 0.5 / s
  256.       return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  257.     elseif i == 1 then
  258.       local s = math.sqrt(m11 - m22 - m00 + 1)
  259.       local recip = 0.5 / s
  260.       return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  261.     elseif i == 2 then
  262.       local s = math.sqrt(m22 - m00 - m11 + 1)
  263.       local recip = 0.5 / s
  264.       return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  265.     end
  266.   end
  267. end
  268. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  269.   local xs, ys, zs = x + x, y + y, z + z
  270.   local wx, wy, wz = w * xs, w * ys, w * zs
  271.   local xx = x * xs
  272.   local xy = x * ys
  273.   local xz = x * zs
  274.   local yy = y * ys
  275.   local yz = y * zs
  276.   local zz = z * zs
  277.   return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  278. end
  279. function QuaternionSlerp(a, b, t)
  280.   local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  281.   local startInterp, finishInterp
  282.   if cosTheta >= 1.0E-4 then
  283.     if 1 - cosTheta > 1.0E-4 then
  284.       local theta = math.acos(cosTheta)
  285.       local invSinTheta = 1 / math.sin(theta)
  286.       startInterp = math.sin((1 - t) * theta) * invSinTheta
  287.       finishInterp = math.sin(t * theta) * invSinTheta
  288.     else
  289.       startInterp = 1 - t
  290.       finishInterp = t
  291.     end
  292.   elseif 1 + cosTheta > 1.0E-4 then
  293.     local theta = math.acos(-cosTheta)
  294.     local invSinTheta = 1 / math.sin(theta)
  295.     startInterp = math.sin((t - 1) * theta) * invSinTheta
  296.     finishInterp = math.sin(t * theta) * invSinTheta
  297.   else
  298.     startInterp = t - 1
  299.     finishInterp = t
  300.   end
  301.   return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  302. end
  303. function clerp(a, b, t)
  304.   local qa = {
  305.     QuaternionFromCFrame(a)
  306.   }
  307.   local qb = {
  308.     QuaternionFromCFrame(b)
  309.   }
  310.   local ax, ay, az = a.x, a.y, a.z
  311.   local bx, by, bz = b.x, b.y, b.z
  312.   local _t = 1 - t
  313.   return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  314. end
  315. local freeFalling = false
  316. Humanoid.FreeFalling:connect(function(f)
  317.   if f then
  318.     freeFalling = true
  319.   else
  320.     freeFalling = false
  321.   end
  322. end)
  323. function Vapor()
  324. end
  325. function Vape()
  326.   if Release == true and vapePower > 5 then
  327.     Vaping = true
  328.     Humanoid.WalkSpeed = 0
  329.     Humanoid.JumpPower = 0
  330.     z2 = Instance.new("Sound", char)
  331.     z2.SoundId = "rbxassetid://0"
  332.     z2.Looped = false
  333.     z2.Pitch = 0.72
  334.     z2.Volume = 5
  335.     for i = 0, 3, 0.01 do
  336.       Animations = true
  337.       RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0.1) * c_angles(math.rad(20), math.rad(0), math.rad(20)), 0.01)
  338.       LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0.1) * c_angles(math.rad(20), math.rad(0), math.rad(-20)), 0.01)
  339.       LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(-5.5)), 0.005)
  340.       RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(5.5)), 0.005)
  341.       Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), 0), 0.01)
  342.       Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(-5), math.rad(0), 0), 0.005)
  343.       Head.face.Texture = "http://www.roblox.com/asset/?id=7317691"
  344.       swait()
  345.     end
  346.     z2:Play()
  347.     z = Instance.new("Sound", char)
  348.     z.SoundId = "rbxassetid://"
  349.     z.Looped = false
  350.     z.Pitch = 0.72
  351.     z.Volume = 10
  352.     wait(0.1)
  353.     z:Play()
  354.     wait(0.4)
  355.     Head.face.Texture = currentFace
  356.     Humanoid.WalkSpeed = 16
  357.     Humanoid.JumpPower = 50
  358.     Animations = false
  359.     wait(1)
  360.     Vaping = false
  361.     vapePower = 2.5
  362.   elseif vapePower < 5 then
  363.     Vaping = false
  364.     vapePower = 2.5
  365.   end
  366. end
  367. Mouse.KeyDown:connect(function(key)
  368.   if key == "z" and followMouse == false then
  369.     followMouse = true
  370.     gyro = Instance.new("BodyGyro", rootPart)
  371.     gyro.P = 10000000
  372.     gyro.D = 1000
  373.     gyro.MaxTorque = Vector3.new(0, 10000000, 0)
  374.     coroutine.resume(coroutine.create(function()
  375.       while wait() do
  376.         gyro.CFrame = CFrame.new(Vector3.new(), (Mouse.Hit.p - rootPart.CFrame.p).unit * 100)
  377.       end
  378.     end))
  379.   elseif key == "z" and followMouse == true then
  380.     followMouse = false
  381.     gyro:Destroy()
  382.   end
  383. end)
  384. Mouse.Button1Down:connect(function()
  385.   if Vaping == false then
  386.     Vaping = true
  387.     Release = false
  388.     Mouse.Button1Up:connect(function()
  389.       Release = true
  390.     end)
  391.     if Release == false then
  392.       repeat
  393.         Animations = true
  394.         vapePower = vapePower + 0.1
  395.         Humanoid.WalkSpeed = 0
  396.         Humanoid.JumpPower = 0
  397.         wait()
  398.         RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.8, 1.4, -1) * c_angles(math.rad(60), math.rad(-25), math.rad(-80)) * CFrame.Angles(0, math.rad(150), 0), 0.1)
  399.         LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0.1) * c_angles(math.rad(-12.5), math.rad(10), math.rad(-25)), 0.1)
  400.         LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-15), math.rad(0), math.rad(-5)), 0.01)
  401.         RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(-15), math.rad(0), math.rad(5)), 0.01)
  402.         Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.05) * c_angles(math.rad(11.5), math.rad(0), 0), 0.05)
  403.         Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(15), math.rad(0), 0), 0.01)
  404.         if vapePower > 5 then
  405.           Head.face.Texture = "http://www.roblox.com/asset/?id=7317691"
  406.         elseif vapePower < 5 then
  407.           Humanoid.WalkSpeed = 16
  408.           Humanoid.JumpPower = 50
  409.         end
  410.         print(vapePower)
  411.       until Release == true
  412.     end
  413.     Animations = false
  414.     Vape()
  415.   end
  416. end)
  417. Vepr = Instance.new("Model", Character)
  418. Handle = part(Enum.FormFactor.Symmetric, Vepr, Enum.Material.Metal, 1, 0, "Black", "Handle", Vector3.new(0.200000003, 0.800000012, 0.200000003))
  419. Handleweld = weld(Vepr, Right_Arm, Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.677656174, -0.199986219, -0.745416641, 0.721854568, 0.692044795, -4.12490877E-8, 0, 5.96046377E-8, 1, 0.692044854, -0.721854508, 4.30258851E-8))
  420. Player = game:GetService("Players").LocalPlayer
  421. Character = Player.Character
  422. Mouse = Player:GetMouse()
  423. m = Instance.new("Model", Character)
  424. local weldBetween = function(a, b)
  425.   local weldd = Instance.new("ManualWeld")
  426.   weldd.Part0 = a
  427.   weldd.Part1 = b
  428.   weldd.C0 = CFrame.new()
  429.   weldd.C1 = b.CFrame:inverse() * a.CFrame
  430.   weldd.Parent = a
  431.   return weldd
  432. end
  433. it = Instance.new
  434. function nooutline(part)
  435.   part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  436. end
  437. function part(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
  438.   local fp = it("Part")
  439.   fp.formFactor = formfactor
  440.   fp.Parent = parent
  441.   fp.Reflectance = reflectance
  442.   fp.Transparency = transparency
  443.   fp.CanCollide = false
  444.   fp.Locked = true
  445.   fp.BrickColor = BrickColor.new(tostring(brickcolor))
  446.   fp.Name = name
  447.   fp.Size = size
  448.   fp.Position = Character.Torso.Position
  449.   nooutline(fp)
  450.   fp.Material = material
  451.   fp:BreakJoints()
  452.   return fp
  453. end
  454. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  455.   local mesh = it(Mesh)
  456.   mesh.Parent = part
  457.   if Mesh == "SpecialMesh" then
  458.     mesh.MeshType = meshtype
  459.     mesh.MeshId = meshid
  460.   end
  461.   mesh.Offset = offset
  462.   mesh.Scale = scale
  463.   return mesh
  464. end
  465. function weld(parent, part0, part1, c0, c1)
  466.   local weld = it("Weld")
  467.   weld.Parent = parent
  468.   weld.Part0 = part0
  469.   weld.Part1 = part1
  470.   weld.C0 = c0
  471.   weld.C1 = c1
  472.   return weld
  473. end
  474. BottleR = part(Enum.FormFactor.Plate, m, Enum.Material.Neon, 0, 0, "Dusty Rose", "Handle", Vector3.new(1.44916654, 1.73900044, 1.44916654))
  475. BottleRweld = weld(m, Character["Right Arm"], BottleR, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.150012493, 1.13759422, -1.12566471, -1, 0, 0, 0, 0.146834984, -0.989161015, 0, -0.989160895, -0.146834999))
  476. mesh("SpecialMesh", BottleR, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=11409474", Vector3.new(0, 0, 0), Vector3.new(2.17374969, 3.62291789, 2.17374969))
  477. Player = game:GetService("Players").LocalPlayer
  478. Character = Player.Character
  479. Mouse = Player:GetMouse()
  480. m = Instance.new("Model", Character)
  481. local weldBetween = function(a, b)
  482.   local weldd = Instance.new("ManualWeld")
  483.   weldd.Part0 = a
  484.   weldd.Part1 = b
  485.   weldd.C0 = CFrame.new()
  486.   weldd.C1 = b.CFrame:inverse() * a.CFrame
  487.   weldd.Parent = a
  488.   return weldd
  489. end
  490. it = Instance.new
  491. function nooutline(part)
  492.   part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  493. end
  494. function part(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
  495.   local fp = it("Part")
  496.   fp.formFactor = formfactor
  497.   fp.Parent = parent
  498.   fp.Reflectance = reflectance
  499.   fp.Transparency = transparency
  500.   fp.CanCollide = false
  501.   fp.Locked = true
  502.   fp.BrickColor = BrickColor.new(tostring(brickcolor))
  503.   fp.Name = name
  504.   fp.Size = size
  505.   fp.Position = Character.Torso.Position
  506.   nooutline(fp)
  507.   fp.Material = material
  508.   fp:BreakJoints()
  509.   return fp
  510. end
  511. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  512.   local mesh = it(Mesh)
  513.   mesh.Parent = part
  514.   if Mesh == "SpecialMesh" then
  515.     mesh.MeshType = meshtype
  516.     mesh.MeshId = meshid
  517.   end
  518.   mesh.Offset = offset
  519.   mesh.Scale = scale
  520.   return mesh
  521. end
  522. function weld(parent, part0, part1, c0, c1)
  523.   local weld = it("Weld")
  524.   weld.Parent = parent
  525.   weld.Part0 = part0
  526.   weld.Part1 = part1
  527.   weld.C0 = c0
  528.   weld.C1 = c1
  529.   return weld
  530. end
  531. BottleL = part(Enum.FormFactor.Plate, m, Enum.Material.Neon, 0, 0, "Black", "Handle", Vector3.new(1.44916654, 1.73900044, 1.44916654))
  532. BottleLweld = weld(m, Character["Left Arm"], BottleL, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.229987741, 1.13759422, -1.12566471, -1, 0, 0, 0, 0.146834984, -0.989161015, 0, -0.989160895, -0.146834999))
  533. mesh("SpecialMesh", BottleL, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=", Vector3.new(0, 0, 0), Vector3.new(2.17374969, 3.62291789, 2.17374969))
  534. game:GetService("RunService").Stepped:connect(function()
  535.   Angle = Angle % 100 + angleSpeed / 10
  536.   walkingMagnitude = Vector3.new(rootPart.Velocity.X, 0, rootPart.Velocity.Z).magnitude
  537.   jumpVel = Torso.Velocity.Y
  538.   if Humanoid.Jump and jumpVel > 1 then
  539.     currentAnim = "Jumping"
  540.   elseif freeFalling == true then
  541.     currentAnim = "Falling"
  542.   elseif walkingMagnitude < 2 then
  543.     currentAnim = "Idling"
  544.   elseif isSprinting == true then
  545.     currentAnim = "Sprinting"
  546.   elseif walkingMagnitude > 2 then
  547.     currentAnim = "Walking"
  548.   end
  549.   if currentAnim == "Jumping" and Animations == false then
  550.     angleSpeed = 1
  551.     axisSpeed = 1
  552.     RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, -0.1) * c_angles(math.rad(-10), math.rad(0), math.rad(10)), 0.15)
  553.     LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, -0.1) * c_angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.15)
  554.     LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.15)
  555.     RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(-10), math.rad(0), math.rad(10)), 0.15)
  556.     Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)) * c_angles(math.rad(0), math.rad(0), rootPart.RotVelocity.Y / 55), 0.4)
  557.     Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(15), math.rad(0), math.rad(0)), 0.15)
  558.   elseif currentAnim == "Falling" and Animations == false then
  559.     angleSpeed = 1
  560.     axisSpeed = 1
  561.     RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, -0.1) * c_angles(math.rad(0), math.rad(0), math.rad(65)), 0.125)
  562.     LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, -0.1) * c_angles(math.rad(0), math.rad(0), math.rad(-65)), 0.125)
  563.     LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -0.4, -0.4) * c_angles(math.rad(-5), math.rad(0), math.rad(-2.5)), 0.125)
  564.     RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -0.4, -0.4) * c_angles(math.rad(-5), math.rad(0), math.rad(2.5)), 0.125)
  565.     Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.05)
  566.     Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(-17.5), math.rad(0), math.rad(0)), 0.125)
  567.   elseif currentAnim == "Idling" and Animations == false then
  568.     angleSpeed = 0.25
  569.     axisSpeed = 0.25
  570.     RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5 + math.sin(Angle) * 0.075, 0.1) * c_angles(math.rad(15) + math.sin(Angle) * 0.075, math.rad(0), math.rad(10) + math.sin(Angle) * 0.075), 0.125)
  571.     LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5 + math.sin(Angle) * 0.075, 0.1) * c_angles(math.rad(-10) + math.sin(Angle) * 0.075, math.rad(0), math.rad(-10) - math.sin(Angle) * 0.075), 0.125)
  572.     LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1.1 - math.sin(Angle) * 0.075, -0.25) * c_angles(math.rad(15), math.rad(0), math.rad(-7.5)), 0.125)
  573.     RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1.1 - math.sin(Angle) * 0.075, -0.25) * c_angles(math.rad(-15), math.rad(0), math.rad(7.5)), 0.125)
  574.     Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1 + math.sin(Angle) * 0.075, 0) * c_angles(math.rad(-5), math.rad(0), 0), 0.3)
  575.     Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.05) * c_angles(math.rad(-5) + math.sin(Angle) * 0.05, math.rad(0), 0), 0.125)
  576.   elseif currentAnim == "Sprinting" and Animations == false then
  577.     angleSpeed = 2
  578.     axisSpeed = 2
  579.     RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(-math.sin(Angle) * 2, math.rad(5) + math.sin(Angle) * 0.1, math.rad(5) + rootPart.RotVelocity.Y / 35), 0.15)
  580.     RA_Weld.C1 = c_new(0, 0.5, 0)
  581.     LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(-math.sin(Angle) * -2, math.rad(-5) + math.sin(Angle) * 0.1, math.rad(-5) + rootPart.RotVelocity.Y / 35), 0.15)
  582.     LA_Weld.C1 = c_new(0, 0.5, 0)
  583.     LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1.15 + math_pos(-math.cos(Angle - 0.25) * 0.65), math_neg(math.asin(math.sin(Angle)) * 0.65)) * c_angles(-0.025 - math.asin(math.sin(Angle)) * 1, 0, -0.025 + -math.asin(math.sin(Angle)) * 0.025 + rootPart.RotVelocity.Y / 25), 0.15)
  584.     RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1.15 + math_pos(math.cos(Angle - 0.25) * 0.65), math_neg(-math.asin(math.sin(Angle)) * 0.65)) * c_angles(-0.025 + math.asin(math.sin(Angle)) * 1, 0, 0.025 + -math.asin(math.sin(Angle)) * 0.025 + rootPart.RotVelocity.Y / 25), 0.15)
  585.     Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1 + math.abs(math.sin(Angle) * 0.25), 0) * c_angles(math.rad(-20) + math.abs(math.sin(Angle) * 0.05) + rootPart.RotVelocity.Y / 35, math.sin(Angle) * 0.015, rootPart.RotVelocity.Y / 55), 0.15)
  586.     Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.abs(math.sin(Angle / 2) * 0.5 * 0.05), math.sin(Angle) * -0.05 + rootPart.RotVelocity.Y / 15, 0), 0.15)
  587.   elseif currentAnim == "Walking" and Animations == false then
  588.     angleSpeed = 1
  589.     axisSpeed = 1
  590.     Humanoid.WalkSpeed = 7
  591.     RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(-math.sin(Angle) * 0.6, math.rad(5) + math.sin(Angle) * 0.05, math.rad(5)), 0.15)
  592.     LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(-math.sin(Angle) * -0.6, math.rad(-5) + math.sin(Angle) * 0.05, math.rad(-5)), 0.15)
  593.     LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1.05 + math_pos(-math.cos(Angle - 0.25) * 0.35), math_neg(math.asin(math.sin(Angle)) * 0.35)) * c_angles(-0.025 - math.asin(math.sin(Angle)) * 0.4, 0, -0.025 + -math.asin(math.sin(Angle)) * 0.025 - rootPart.RotVelocity.Y / 65), 0.15)
  594.     RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1.05 + math_pos(math.cos(Angle - 0.25) * 0.35), math_neg(-math.asin(math.sin(Angle)) * 0.35)) * c_angles(-0.025 + math.asin(math.sin(Angle)) * 0.4, 0, 0.025 + -math.asin(math.sin(Angle)) * 0.025 - rootPart.RotVelocity.Y / 65), 0.15)
  595.     Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1 + math.abs(math.sin(Angle) * 0.05), 0) * c_angles(math.rad(-12.5) + math.abs(math.sin(Angle) * 0.05), math.sin(Angle) * 0.015, rootPart.RotVelocity.Y / 55), 0.15)
  596.     Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.abs(math.sin(Angle / 2) * 0.5 * 0.05), math.sin(Angle) * -0.05 + rootPart.RotVelocity.Y / 45, 0), 0.15)
  597.   end
  598. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement