Advertisement
DaOMEGAa32

steve

Dec 1st, 2019
363
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.82 KB | None | 0 0
  1. wait (1)
  2.  
  3.  
  4. local plr = owner
  5. local char = plr.Character
  6. local hum = char.Humanoid
  7. local rarm = char["Right Arm"]
  8. local larm = char["Left Arm"]
  9. local rleg = char["Right Leg"]
  10. local lleg = char["Left Leg"]
  11. local root = char.HumanoidRootPart
  12. local tors = char.Torso
  13. local head = char.Head
  14. local action = ""
  15. local t = tick()
  16. local RunS = game:GetService("RunService")
  17. local playback = 0
  18.  
  19. hum.HipHeight = 0.5
  20. hum.WalkSpeed = 20
  21.  
  22. head.Size = Vector3.new(2, 2, 2)
  23. rarm.Size = Vector3.new(1, 3, 1)
  24. larm.Size = Vector3.new(1, 3, 1)
  25. tors.Size = Vector3.new(2, 3, 1)
  26. rleg.Size = Vector3.new(1, 3, 1)
  27. lleg.Size = Vector3.new(1, 3, 1)
  28.  
  29. local f = Instance.new("Decal", head)
  30. f.Name = "Texture"
  31. f.Texture = "http://www.roblox.com/asset/?id=132053115"
  32. f.Face = "Front"
  33. local fc = f:Clone()
  34. fc.Parent = head
  35. fc.Texture = "http://www.roblox.com/asset/?id=94897615"
  36. fc.Face = "Back"
  37. local fc = f:Clone()
  38. fc.Parent = head
  39. fc.Texture = "http://www.roblox.com/asset/?id=94897615"
  40. fc.Face = "Left"
  41. local fc = f:Clone()
  42. fc.Parent = head
  43. fc.Texture = "http://www.roblox.com/asset/?id=94897615"
  44. fc.Face = "Right"
  45. local fc = f:Clone()
  46. fc.Parent = head
  47. fc.Texture = "http://www.roblox.com/asset/?id=94897615"
  48. fc.Face = "Top"
  49.  
  50. local glasses = Instance.new("Part", char)
  51. glasses.Anchored = false
  52. glasses.CanCollide = false
  53. glasses.Material = "Neon"
  54. glasses.Transparency = 1
  55. glasses.Size = Vector3.new(2.25, 2.25, 2.25)
  56. glasses.CastShadow = false
  57. local g = Instance.new("Decal", glasses)
  58. g.Name = "Texture"
  59. g.Texture = "rbxassetid://1"
  60. g.Face = "Front"
  61. local gc = g:Clone()
  62. gc.Parent = glasses
  63. gc.Texture = "rbxassetid://1"
  64. gc.Face = "Right"
  65. local gc = g:Clone()
  66. gc.Parent = glasses
  67. gc.Texture = "rbxassetid://1"
  68. gc.Face = "Left"
  69. local glassesw = Instance.new("Weld", glasses)
  70. glassesw.Part0 = head
  71. glassesw.Part1 = glasses
  72.  
  73. local mouth = Instance.new("Part", char)
  74. mouth.Name = "Mouth"
  75. mouth.BrickColor = BrickColor.new(Color3.new(0, 0, 0))
  76. mouth.Size = Vector3.new(1, 0.5, 2)
  77. local mouthm = Instance.new("Weld", mouth)
  78. mouthm.Part0 = head
  79. mouthm.Part1 = mouth
  80. mouthm.C0 = CFrame.new(0, -0.6, -0.01)
  81. local mouthsize = Instance.new("BlockMesh", mouth)
  82.  
  83. for i,stuff in pairs(char:GetChildren()) do
  84. if stuff:IsA("Shirt") or stuff:IsA("Pants") or stuff:IsA("BodyColors") or stuff:IsA("Hat") or stuff:IsA("Accessory") or stuff:IsA("Accoutrement") or stuff:IsA("CharacterMesh") then
  85. stuff:Destroy()
  86. end
  87. end
  88.  
  89. local music = Instance.new("Sound", head)
  90. music.SoundId = "rbxassetid://1125780619"
  91. music.Name = "Music"
  92. music.Volume = 3
  93. music.Looped = true
  94. music:Play()
  95.  
  96. if head:FindFirstChild("Mesh") then head.Mesh:Destroy() end
  97. if head:FindFirstChild("face") then head.face:Destroy() end
  98.  
  99. local shirt = Instance.new("Shirt", char)
  100. shirt.ShirtTemplate = "rbxassetid://87659315"
  101. local pants = Instance.new("Pants", char)
  102. pants.PantsTemplate = "rbxassetid://94947271"
  103.  
  104.  
  105. local colors = Instance.new("BodyColors", char)
  106. colors.HeadColor = BrickColor.new("Brick yellow")
  107. colors.LeftArmColor = BrickColor.new("Brick yellow")
  108. colors.RightArmColor = BrickColor.new("Brick yellow")
  109. colors.TorsoColor = BrickColor.new("Brick yellow")
  110. colors.LeftLegColor = BrickColor.new("Brick yellow")
  111. colors.RightLegColor = BrickColor.new("Brick yellow")
  112.  
  113. function createJoint(wp0, wp1, wc0x, wc0y, wc0z, wc1x, wc1y, wc1z, name)
  114. local joint = Instance.new("Weld", wp0)
  115. joint.Part0 = wp0
  116. joint.Part1 = wp1
  117. joint.C0 = CFrame.new(wc0x, wc0y, wc0z)
  118. joint.C1 = CFrame.new(wc1x, wc1y, wc1z)
  119. joint.Name = name
  120. return joint
  121. end
  122.  
  123. local RS = createJoint(char.Torso, char["Right Arm"], 1.5, 1, 0, 0, 1, 0, "Right Shoulder")
  124. local TS = createJoint(char.HumanoidRootPart, char.Torso, 0, 0, 0, 0, 0, 0, "RootJoint")
  125. local LS = createJoint(char.Torso, char["Left Arm"], -1.5, 1, 0, 0, 1, 0, "Left Shoulder")
  126. local RH = createJoint(char.Torso, char["Right Leg"], 0.5, -1.5, 0, 0, 1.5, 0, "Right Hip")
  127. local LH = createJoint(char.Torso, char["Left Leg"], -0.5, -1.5, 0, 0, 1.5, 0, "Left Hip")
  128. local NK = createJoint(char.Torso, char.Head, 0, 2, 0, 0, -1/2, 0, "Neck")
  129.  
  130. local rsc0 = RS.C0
  131. local lsc0 = LS.C0
  132. local tsc0 = TS.C0
  133. local rhc0 = RH.C0
  134. local lhc0 = LH.C0
  135. local nkc0 = NK.C0
  136.  
  137. local remote = Instance.new("RemoteFunction", char)
  138. remote.Name = "MouthRemote"
  139.  
  140. function recieveInfo(player, info, n, t, ls, rs, lh, rh)
  141. playback = info
  142. NK.C0 = n
  143. TS.C0 = t
  144. LS.C0 = ls
  145. RS.C0 = rs
  146. LH.C0 = lh
  147. RH.C0 = rh
  148. return info
  149. end
  150. remote.OnServerInvoke = recieveInfo
  151.  
  152. NLS([[
  153. local plr = owner
  154. local cam = workspace.CurrentCamera
  155. local char = plr.Character
  156. local NK = char.Torso:WaitForChild("Neck")
  157. local RS = char.Torso:WaitForChild("Right Shoulder")
  158. local LS = char.Torso:WaitForChild("Left Shoulder")
  159. local RH = char.Torso:WaitForChild("Right Hip")
  160. local LH = char.Torso:WaitForChild("Left Hip")
  161. local TS = char.HumanoidRootPart:WaitForChild("RootJoint")
  162. local hum = char.Humanoid
  163.  
  164. local rsc0 = CFrame.new(1.5, 1, 0)
  165. local lsc0 = CFrame.new(-1.5, 1, 0)
  166. local tsc0 = CFrame.new()
  167. local rhc0 = CFrame.new(0.5, -1.5, 0)
  168. local lhc0 =CFrame.new(-0.5, -1.5, 0)
  169. local nkc0 = CFrame.new(0, 2, 0)
  170.  
  171. local music = owner.Character.Head:WaitForChild("Music")
  172. local mouth = char:WaitForChild("Mouth")
  173. local mouthsize = mouth:WaitForChild("Mesh")
  174. local t = tick()
  175. local root = char.HumanoidRootPart
  176. local action = ""
  177.  
  178. function lerp(a, b, t)
  179. return a * (1-t) + (b*t)
  180. end
  181.  
  182. game:GetService("RunService").RenderStepped:connect(function()
  183. t = t + 0.5
  184.  
  185. local playback = music.PlaybackLoudness
  186. local a = playback - 350
  187. a = a * 3
  188. if a < 0 then
  189. a = 0
  190. elseif a > 45 then
  191. a = 45
  192. end
  193. cam.FieldOfView = lerp(cam.FieldOfView, 70 + playback/20, 0.3)
  194. NK.C0 = NK.C0:lerp(nkc0 * CFrame.Angles(math.rad(a)/3, 0, 0), 0.1)
  195. mouthsize.Scale = mouthsize.Scale:lerp(Vector3.new(0.75+a/45/2, a/45, 1), 0.1)
  196.  
  197.  
  198. if not hum.Sit then
  199. if math.abs(root.Velocity.x) > 1 or math.abs(root.Velocity.z) > 1 and hum:GetState() ~= Enum.HumanoidStateType.Freefall then
  200. action = "Walk"
  201. elseif math.abs(root.Velocity.x) < 1 or math.abs(root.Velocity.z) < 1 then
  202. action = "Idle"
  203. end
  204. else
  205. action = "Sit"
  206. end
  207.  
  208. NK.C0 = NK.C0:lerp(nkc0 * CFrame.Angles(math.rad(a)/3, 0, 0), 0.1)
  209. mouthsize.Scale = mouthsize.Scale:lerp(Vector3.new(0.75+a/45/2, a/45, 1), 0.1)
  210.  
  211. if action == "Idle" then
  212. speed = 0.5
  213.  
  214. TS.C0 = TS.C0:lerp(tsc0, speed)
  215. LS.C0 = LS.C0:lerp(lsc0 * CFrame.Angles(0, 0, math.rad(-2) + -math.sin(t/20)/10/2), speed)
  216. RS.C0 = RS.C0:lerp(rsc0 * CFrame.Angles(0, 0, math.rad(2) + math.sin(t/20)/10/2), speed)
  217. LH.C0 = LH.C0:lerp(lhc0, speed)
  218. RH.C0 = RH.C0:lerp(rhc0, speed)
  219. elseif action == "Walk" then
  220. speed = 0.5
  221.  
  222. TS.C0 = TS.C0:lerp(tsc0, speed)
  223. LS.C0 = LS.C0:lerp(lsc0 * CFrame.Angles(math.sin(t/3)/1.5, 0, 0), speed)
  224. RS.C0 = RS.C0:lerp(rsc0 * CFrame.Angles(-math.sin(t/3)/1.5, 0, 0), speed)
  225. LH.C0 = LH.C0:lerp(lhc0 * CFrame.Angles(-math.sin(t/3)/1.5, 0, 0), speed)
  226. RH.C0 = RH.C0:lerp(rhc0 * CFrame.Angles(math.sin(t/3)/1.5, 0, 0), speed)
  227. elseif action == "Sit" then
  228. speed = 0.5
  229.  
  230. TS.C0 = TS.C0:lerp(tsc0 * CFrame.new(0, 0.5, 0), speed)
  231. LS.C0 = LS.C0:lerp(lsc0 * CFrame.Angles(math.rad(15), 0, math.rad(-2) + -math.sin(t/20)/10/2), speed)
  232. RS.C0 = RS.C0:lerp(rsc0 * CFrame.Angles(math.rad(15), 0, math.rad(2) + math.sin(t/20)/10/2), speed)
  233. LH.C0 = LH.C0:lerp(lhc0 * CFrame.Angles(math.rad(90), 0, -math.rad(15)), speed)
  234. RH.C0 = RH.C0:lerp(rhc0 * CFrame.Angles(math.rad(90), 0, math.rad(15)), speed)
  235. end
  236.  
  237.  
  238. if owner.Character:WaitForChild("MouthRemote") then
  239. owner.Character.MouthRemote:InvokeServer(music.PlaybackLoudness, NK.C0, TS.C0, LS.C0, RS.C0, LH.C0, RH.C0)
  240. end
  241.  
  242.  
  243.  
  244. end)
  245. ]], char)
  246.  
  247.  
  248.  
  249. RunS.Stepped:connect(function()
  250. t = t + 0.5
  251. local a = playback - 350
  252. a = a * 3
  253. if a < 0 then
  254. a = 0
  255. elseif a > 45 then
  256. a = 45
  257. end
  258.  
  259. NK.C0 = NK.C0:lerp(nkc0 * CFrame.Angles(math.rad(a)/3, 0, 0), 0.1)
  260. mouthsize.Scale = mouthsize.Scale:lerp(Vector3.new(0.75+a/45/2, a/45, 1), 0.1)
  261.  
  262.  
  263. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement