Guest User

Untitled

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