feigum777

sada

Jun 6th, 2019
243
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  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, "Hot pink", "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=1029012", 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. for i = 0, 3, 0.01 do
  331. Animations = true
  332. 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)
  333. 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)
  334. 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)
  335. 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)
  336. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), 0), 0.01)
  337. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(-5), math.rad(0), 0), 0.005)
  338. Head.face.Texture = "http://www.roblox.com/asset/?id=7317691"
  339. swait()
  340. end
  341. z2:Play()
  342. z = Instance.new("Sound", char)
  343. z.SoundId = "rbxassetid://638644877"
  344. z.Looped = false
  345. z.Pitch = 1
  346. z.Volume = 10
  347. wait(0.1)
  348. z:Play()
  349. wait(7.5)
  350. Head.face.Texture = currentFace
  351. Humanoid.WalkSpeed = 16
  352. Humanoid.JumpPower = 50
  353. Animations = false
  354. wait(1)
  355. Vaping = false
  356. vapePower = 2.5
  357. elseif vapePower < 5 then
  358. Vaping = false
  359. vapePower = 2.5
  360. end
  361. end
  362. Mouse.KeyDown:connect(function(key)
  363. if key == "z" and followMouse == false then
  364. followMouse = true
  365. gyro = Instance.new("BodyGyro", rootPart)
  366. gyro.P = 10000000
  367. gyro.D = 1000
  368. gyro.MaxTorque = Vector3.new(0, 10000000, 0)
  369. coroutine.resume(coroutine.create(function()
  370. while wait() do
  371. gyro.CFrame = CFrame.new(Vector3.new(), (Mouse.Hit.p - rootPart.CFrame.p).unit * 100)
  372. end
  373. end))
  374. elseif key == "z" and followMouse == true then
  375. followMouse = false
  376. gyro:Destroy()
  377. end
  378. end)
  379. Mouse.Button1Down:connect(function()
  380. if Vaping == false then
  381. Vaping = true
  382. Release = false
  383. Mouse.Button1Up:connect(function()
  384. Release = true
  385. end)
  386. if Release == false then
  387. repeat
  388. Animations = true
  389. vapePower = vapePower + 0.1
  390. Humanoid.WalkSpeed = 0
  391. Humanoid.JumpPower = 0
  392. wait()
  393. 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)
  394. 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)
  395. 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)
  396. 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)
  397. 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)
  398. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(15), math.rad(0), 0), 0.01)
  399. if vapePower > 5 then
  400. Head.face.Texture = "http://www.roblox.com/asset/?id=7317691"
  401. elseif vapePower < 5 then
  402. Humanoid.WalkSpeed = 16
  403. Humanoid.JumpPower = 50
  404. end
  405. print(vapePower)
  406. until Release == true
  407. end
  408. Animations = false
  409. Vape()
  410. end
  411. end)
  412. Vepr = Instance.new("Model", Character)
  413. Handle = part(Enum.FormFactor.Symmetric, Vepr, Enum.Material.Metal, 1, 0, "Hot pink", "Handle", Vector3.new(0.200000003, 0.800000012, 0.200000003))
  414. 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))
  415. Player = game:GetService("Players").LocalPlayer
  416. Character = Player.Character
  417. Mouse = Player:GetMouse()
  418. m = Instance.new("Model", Character)
  419. local weldBetween = function(a, b)
  420. local weldd = Instance.new("ManualWeld")
  421. weldd.Part0 = a
  422. weldd.Part1 = b
  423. weldd.C0 = CFrame.new()
  424. weldd.C1 = b.CFrame:inverse() * a.CFrame
  425. weldd.Parent = a
  426. return weldd
  427. end
  428. it = Instance.new
  429. function nooutline(part)
  430. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  431. end
  432. function part(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
  433. local fp = it("Part")
  434. fp.formFactor = formfactor
  435. fp.Parent = parent
  436. fp.Reflectance = reflectance
  437. fp.Transparency = transparency
  438. fp.CanCollide = false
  439. fp.Locked = true
  440. fp.BrickColor = BrickColor.new(tostring(brickcolor))
  441. fp.Name = name
  442. fp.Size = size
  443. fp.Position = Character.Torso.Position
  444. nooutline(fp)
  445. fp.Material = material
  446. fp:BreakJoints()
  447. return fp
  448. end
  449. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  450. local mesh = it(Mesh)
  451. mesh.Parent = part
  452. if Mesh == "SpecialMesh" then
  453. mesh.MeshType = meshtype
  454. mesh.MeshId = meshid
  455. end
  456. mesh.Offset = offset
  457. mesh.Scale = scale
  458. return mesh
  459. end
  460. function weld(parent, part0, part1, c0, c1)
  461. local weld = it("Weld")
  462. weld.Parent = parent
  463. weld.Part0 = part0
  464. weld.Part1 = part1
  465. weld.C0 = c0
  466. weld.C1 = c1
  467. return weld
  468. end
  469. BottleR = part(Enum.FormFactor.Plate, m, Enum.Material.Neon, 0, 0, "Hot pink", "Handle", Vector3.new(1.44916654, 1.73900044, 1.44916654))
  470. 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))
  471. 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))
  472. Player = game:GetService("Players").LocalPlayer
  473. Character = Player.Character
  474. Mouse = Player:GetMouse()
  475. m = Instance.new("Model", Character)
  476. local weldBetween = function(a, b)
  477. local weldd = Instance.new("ManualWeld")
  478. weldd.Part0 = a
  479. weldd.Part1 = b
  480. weldd.C0 = CFrame.new()
  481. weldd.C1 = b.CFrame:inverse() * a.CFrame
  482. weldd.Parent = a
  483. return weldd
  484. end
  485. it = Instance.new
  486. function nooutline(part)
  487. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  488. end
  489. function part(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
  490. local fp = it("Part")
  491. fp.formFactor = formfactor
  492. fp.Parent = parent
  493. fp.Reflectance = reflectance
  494. fp.Transparency = transparency
  495. fp.CanCollide = false
  496. fp.Locked = true
  497. fp.BrickColor = BrickColor.new(tostring(brickcolor))
  498. fp.Name = name
  499. fp.Size = size
  500. fp.Position = Character.Torso.Position
  501. nooutline(fp)
  502. fp.Material = material
  503. fp:BreakJoints()
  504. return fp
  505. end
  506. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  507. local mesh = it(Mesh)
  508. mesh.Parent = part
  509. if Mesh == "SpecialMesh" then
  510. mesh.MeshType = meshtype
  511. mesh.MeshId = meshid
  512. end
  513. mesh.Offset = offset
  514. mesh.Scale = scale
  515. return mesh
  516. end
  517. function weld(parent, part0, part1, c0, c1)
  518. local weld = it("Weld")
  519. weld.Parent = parent
  520. weld.Part0 = part0
  521. weld.Part1 = part1
  522. weld.C0 = c0
  523. weld.C1 = c1
  524. return weld
  525. end
  526. BottleL = part(Enum.FormFactor.Plate, m, Enum.Material.Neon, 0, 0, "Hot pink", "Handle", Vector3.new(1.44916654, 1.73900044, 1.44916654))
  527. 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))
  528. 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))
  529. game:GetService("RunService").Stepped:connect(function()
  530. Angle = Angle % 100 + angleSpeed / 10
  531. walkingMagnitude = Vector3.new(rootPart.Velocity.X, 0, rootPart.Velocity.Z).magnitude
  532. jumpVel = Torso.Velocity.Y
  533. if Humanoid.Jump and jumpVel > 1 then
  534. currentAnim = "Jumping"
  535. elseif freeFalling == true then
  536. currentAnim = "Falling"
  537. elseif walkingMagnitude < 2 then
  538. currentAnim = "Idling"
  539. elseif isSprinting == true then
  540. currentAnim = "Sprinting"
  541. elseif walkingMagnitude > 2 then
  542. currentAnim = "Walking"
  543. end
  544. if currentAnim == "Jumping" and Animations == false then
  545. angleSpeed = 1
  546. axisSpeed = 1
  547. 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)
  548. 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)
  549. 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)
  550. 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)
  551. 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)
  552. 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)
  553. elseif currentAnim == "Falling" and Animations == false then
  554. angleSpeed = 1
  555. axisSpeed = 1
  556. 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)
  557. 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)
  558. 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)
  559. 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)
  560. 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)
  561. 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)
  562. elseif currentAnim == "Idling" and Animations == false then
  563. angleSpeed = 0.25
  564. axisSpeed = 0.25
  565. 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)
  566. 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)
  567. 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)
  568. 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)
  569. 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)
  570. 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)
  571. elseif currentAnim == "Sprinting" and Animations == false then
  572. angleSpeed = 2
  573. axisSpeed = 2
  574. 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)
  575. RA_Weld.C1 = c_new(0, 0.5, 0)
  576. 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)
  577. LA_Weld.C1 = c_new(0, 0.5, 0)
  578. 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)
  579. 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)
  580. 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)
  581. 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)
  582. elseif currentAnim == "Walking" and Animations == false then
  583. angleSpeed = 1
  584. axisSpeed = 1
  585. Humanoid.WalkSpeed = 7
  586. 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)
  587. 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)
  588. 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)
  589. 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)
  590. 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)
  591. 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)
  592. end
  593. end)
RAW Paste Data