Advertisement
ERROR_CODE

WakeUp.Game

Jul 23rd, 2023 (edited)
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.51 KB | None | 0 0
  1. local plr = game.Players.LocalPlayer
  2. local char = plr.Character
  3. local hum = char:FindFirstChildOfClass("Humanoid")
  4. local t = tick()
  5. local action = ""
  6. local torsorot = 0
  7. if hum:FindFirstChild("Animator") then
  8. hum.Animator:Destroy()
  9. end
  10.  
  11. hum.WalkSpeed = 0
  12.  
  13.  
  14. local song = Instance.new("Sound", char)
  15. song.SoundId = "rbxassetid://1883633498"
  16. song.Volume = 1
  17. song.TimePosition = 3
  18. song:Play()
  19. function createJoint(wp0, wp1, wc0x, wc0y, wc0z, wc1x, wc1y, wc1z, name)
  20.  local joint = Instance.new("Motor6D", wp0)
  21.  joint.Part0 = wp0
  22.  joint.Part1 = wp1
  23.  joint.C0 = CFrame.new(wc0x, wc0y, wc0z)
  24.         joint.C1 = CFrame.new(wc1x, wc1y, wc1z)
  25.         joint.Name = name
  26.  return joint
  27. end
  28.  
  29. local RS = createJoint(char.Torso, char["Right Arm"], 1.5, 0.5, 0, 0, 0.5, 0, "Right Shoulder")
  30. local TS = createJoint(char.HumanoidRootPart, char.Torso, 0, 0, 0, 0, 0, 0, "RootJoint")
  31. local LS = createJoint(char.Torso, char["Left Arm"], -1.5, 0.5, 0, 0, 0.5, 0, "Left Shoulder")
  32. local RH = createJoint(char.Torso, char["Right Leg"], 0.5, -1, 0, 0, 1, 0, "Right Hip")
  33. local LH = createJoint(char.Torso, char["Left Leg"], -0.5, -1, 0, 0, 1, 0, "Left Hip")
  34. local NK = createJoint(char.Torso, char.Head, 0, 1, 0, 0, -1/2, 0, "Neck")
  35.  
  36. local rsc0 = RS.C0
  37. local lsc0 = LS.C0
  38. local tsc0 = TS.C0
  39. local rhc0 = RH.C0
  40. local lhc0 = LH.C0
  41. local nkc0 = NK.C0
  42.  
  43.  
  44.  
  45. TS.C0 = CFrame.new(0, 10000, 0)
  46. game:GetService("RunService").RenderStepped:connect(function()
  47. t = t + 0.5
  48. if action == "IGotAGun" then
  49. local speed = 0.3
  50. torsorot = torsorot + 45
  51. NK.C0 = NK.C0:lerp(nkc0, speed)
  52. TS.C0 = TS.C0:lerp(tsc0 * CFrame.Angles(math.rad(torsorot), 0, 0)
  53. * CFrame.new(0, -math.cos(t/5)/10/2, 0), speed)
  54. RS.C0 = RS.C0:lerp(rsc0 * CFrame.new(0, math.sin(t/5)/10/2, 0)
  55. * CFrame.Angles(math.rad(90), 0, 0), speed)
  56. LS.C0 = LS.C0:lerp(lsc0 *  CFrame.new(0, math.sin(t/5)/10/2, 0)
  57. * CFrame.Angles(math.rad(-5), 0, math.rad(5)), speed)
  58. RH.C0 = RH.C0:lerp(rhc0 * CFrame.new(0, math.cos(t/5)/10/2, 0), speed)
  59. LH.C0 = LH.C0:lerp(lhc0 * CFrame.new(0, math.cos(t/5)/10/2, 0), speed)
  60. elseif action == "IGotAGun2" then
  61. local speed = 0.3
  62.  
  63. NK.C0 = NK.C0:lerp(nkc0, speed)
  64. TS.C0 = TS.C0:lerp(tsc0 * CFrame.Angles(0, 0, 0)
  65. * CFrame.new(0, -math.cos(t/5)/10/2, 0), speed)
  66. RS.C0 = RS.C0:lerp(rsc0 * CFrame.new(0, math.sin(t/5)/10/2, 0)
  67. * CFrame.Angles(math.rad(90), 0, 0), speed)
  68. LS.C0 = LS.C0:lerp(lsc0 *  CFrame.new(0, math.sin(t/5)/10/2, 0)
  69. * CFrame.Angles(math.rad(-5), 0, math.rad(5)), speed)
  70. RH.C0 = RH.C0:lerp(rhc0 * CFrame.new(0, math.cos(t/5)/10/2, 0), speed)
  71. LH.C0 = LH.C0:lerp(lhc0 * CFrame.new(0, math.cos(t/5)/10/2, 0), speed)
  72. elseif action == "CoufCouf" then
  73. local speed = 1
  74. NK.C0 = NK.C0:lerp(nkc0 * CFrame.Angles(math.rad(math.random(-360, 360)),
  75. math.rad(math.random(-360, 360)),
  76. math.rad(math.random(-360, 360))), speed)
  77. TS.C0 = TS.C0:lerp(tsc0 * CFrame.new(0, -math.cos(t/5)/10/2, 0), speed)
  78. RS.C0 = RS.C0:lerp(rsc0 * CFrame.Angles(math.rad(math.random(-360, 360)),
  79. math.rad(math.random(-360, 360)),
  80. math.rad(math.random(-360, 360))), speed)
  81. LS.C0 = LS.C0:lerp(lsc0 * CFrame.Angles(math.rad(math.random(-360, 360)),
  82. math.rad(math.random(-360, 360)),
  83. math.rad(math.random(-360, 360))), speed)
  84. RH.C0 = RH.C0:lerp(rhc0 * CFrame.Angles(math.rad(math.random(-360, 360)),
  85. math.rad(math.random(-360, 360)),
  86.  
  87. math.rad(math.random(-360, 360))), speed)
  88. LH.C0 = LH.C0:lerp(lhc0 * CFrame.Angles(math.rad(math.random(-360, 360)),
  89. math.rad(math.random(-360, 360)),
  90. math.rad(math.random(-360, 360))), speed)
  91. elseif action == "Sleep" then
  92. local speed = 1
  93. NK.C0 = NK.C0:lerp(nkc0 * CFrame.Angles(0, math.rad(10), 0), speed)
  94. TS.C0 = TS.C0:lerp(tsc0 * CFrame.new(0, -0.5, 1)
  95. * CFrame.Angles(math.rad(90), 0, 0), speed)
  96. RS.C0 = RS.C0:lerp(rsc0 * CFrame.Angles(0, 0, math.rad(60)), speed)
  97. LS.C0 = LS.C0:lerp(lsc0 * CFrame.Angles(0, 0, math.rad(-45)), speed)
  98. RH.C0 = RH.C0:lerp(rhc0 * CFrame.Angles(0, 0, math.rad(20)), speed)
  99. LH.C0 = LH.C0:lerp(lhc0 * CFrame.Angles(0, 0, math.rad(-40)), speed)
  100. elseif action == "WakeUp" then
  101. local speed = 0.3
  102. NK.C0 = NK.C0:lerp(nkc0 * CFrame.Angles(math.rad(-10), 0, 0), speed)
  103. TS.C0 = TS.C0:lerp(tsc0 * CFrame.new(0, 0, 0.5), speed)
  104. RS.C0 = RS.C0:lerp(rsc0 * CFrame.Angles(0, 0, math.rad(-20)), speed)
  105. LS.C0 = LS.C0:lerp(lsc0 * CFrame.Angles(0, 0, math.rad(20)), speed)
  106. RH.C0 = RH.C0:lerp(rhc0 * CFrame.Angles(math.rad(90), 0, math.rad(20)), speed)
  107. LH.C0 = LH.C0:lerp(lhc0 * CFrame.Angles(math.rad(90), 0, math.rad(-20)), speed)
  108.  
  109.  
  110. elseif action == "ICan" then
  111. local speed = 1
  112. NK.C0 = NK.C0:lerp(nkc0 * CFrame.Angles(0, math.rad(20), 0), speed)
  113. TS.C0 = TS.C0:lerp(tsc0 * CFrame.Angles(0, math.rad(-20), 0)
  114. * CFrame.new(0, -math.cos(t/5)/10/2, 0), speed)
  115. RS.C0 = RS.C0:lerp(rsc0 * CFrame.new(0, math.sin(t/5)/10/2, 0)
  116. * CFrame.Angles(math.rad(-5), 0, 0), speed)
  117. LS.C0 = LS.C0:lerp(lsc0 *  CFrame.new(0, math.sin(t/5)/10/2, 0)
  118. * CFrame.Angles(math.rad(90), 0, math.rad(-5)), speed)
  119. RH.C0 = RH.C0:lerp(rhc0 * CFrame.new(0, math.cos(t/5)/10/2, 0), speed)
  120. LH.C0 = LH.C0:lerp(lhc0 * CFrame.new(0, math.cos(t/5)/10/2, 0), speed)
  121. elseif action == "ICan2" then
  122. local speed = 0.4
  123. NK.C0 = NK.C0:lerp(nkc0 * CFrame.Angles(0, math.rad(20), 0), speed)
  124. TS.C0 = TS.C0:lerp(tsc0 * CFrame.Angles(0, math.rad(-20), 0)
  125. * CFrame.new(0, -math.cos(t/5)/10/2, 0), speed)
  126. RS.C0 = RS.C0:lerp(rsc0 * CFrame.new(0, math.sin(t/5)/10/2, 0)
  127. * CFrame.Angles(math.rad(-5), 0, 0), speed)
  128. LS.C0 = LS.C0:lerp(lsc0 *  CFrame.new(0, math.sin(t/5)/10/2, 0)
  129. * CFrame.Angles(math.rad(90), 0, math.rad(-5)), speed)
  130. RH.C0 = RH.C0:lerp(rhc0 * CFrame.new(0, math.cos(t/5)/10/2, 0), speed)
  131. LH.C0 = LH.C0:lerp(lhc0 * CFrame.new(0, math.cos(t/5)/10/2, 0), speed)
  132. elseif action == "ICant" then
  133. local speed = 0.4
  134. NK.C0 = NK.C0:lerp(nkc0 * CFrame.Angles(0, math.rad(20), 0), speed)
  135.  
  136. TS.C0 = TS.C0:lerp(tsc0 * CFrame.Angles(0, math.rad(-20), 0)
  137. * CFrame.new(0, -math.cos(t/5)/10/2, 0), speed)
  138. RS.C0 = RS.C0:lerp(rsc0 * CFrame.new(0, math.sin(t/5)/10/2, 0)
  139. * CFrame.Angles(math.rad(-5), 0, 0), speed)
  140. LS.C0 = LS.C0:lerp(lsc0 *  CFrame.new(0, math.sin(t/5)/10/2, 0)
  141. * CFrame.Angles(math.rad(90), 0, math.rad(-70)), speed)
  142. RH.C0 = RH.C0:lerp(rhc0 * CFrame.new(0, math.cos(t/5)/10/2, 0), speed)
  143. LH.C0 = LH.C0:lerp(lhc0 * CFrame.new(0, math.cos(t/5)/10/2, 0), speed)
  144.  
  145.  
  146.  
  147.  
  148. end
  149. end)
  150.  
  151.  
  152. action = "IGotAGun"
  153. wait(0.5)
  154. action = "IGotAGun2"
  155. wait(2.9)
  156. action = "CoufCouf"
  157. local part = Instance.new("Part", char)
  158. part.Anchored = true
  159. part.Material = "Neon"
  160. part.BrickColor = BrickColor.new("New Yeller")
  161. part.CanCollide = false
  162. part.Size = Vector3.new(0.1, 0.1, 10000)
  163. for i = 1, 16 do
  164.  
  165.  
  166. part.CFrame = CFrame.new(char.HumanoidRootPart.Position, Vector3.new(math.random(-100, 100), math.random(-100, 100),math.random(-100, 100)))
  167. wait(0.5/16)
  168.  
  169. end
  170. part:Destroy()
  171.  
  172.  
  173. local bed = Instance.new("Part", char)
  174. bed.Anchored = false
  175. bed.CanCollide = false
  176. bed.Size = Vector3.new(4, 8, 2)
  177. bed:BreakJoints()
  178. local bedmesh = Instance.new("SpecialMesh", bed)
  179. bedmesh.Scale = Vector3.new(0.4, 0.5, 0.4)
  180. bedmesh.MeshId = "rbxassetid://473508427"
  181. bedmesh.TextureId = "rbxassetid://473508936"
  182. local bedweld = Instance.new("Weld", bed)
  183. bedweld.Part0 = char.HumanoidRootPart
  184. bedweld.Part1 = bed
  185. bedweld.C0 = CFrame.new(0, -1.35, 1) * CFrame.Angles(0, math.rad(-180), 0)
  186. * CFrame.Angles(math.rad(-90), 0, 0)
  187. action = "Sleep"
  188. wait(0.25)
  189. action = "WakeUp"
  190. wait(0.5)
  191. end
  192. bed:Destroy()
  193. action = "ICan"
  194. wait(0.2)
  195. action = "ICant"
  196. wait(0.25)
  197. action = "ICan2"
  198. wait(0.2)
  199. action = "ICant"
  200. wait(0.35)
  201.  
  202.  
  203.  
  204.  
  205. action = "YouAndYour"
  206. wait(0.5)
  207. action = "Painis"
  208. wait(0.4)
  209. action = "Impoopments"
  210. wait(1)
  211.  
  212.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement