Advertisement
bruhhhhhhhh

Untitled

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