Hugo1234cool

Untitled

Feb 28th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.95 KB | None | 0 0
  1.  
  2.  
  3. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  4. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  5. do
  6. print("FE Compatibility code by Mokiros")
  7. script.Parent = Player.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent and t.Function then
  33. t.Function(...)
  34. end
  35. end
  36. m.TrigEvent = te
  37. UIS.TrigEvent = te
  38.  
  39. Event.OnServerEvent:Connect(function(plr,io)
  40. if plr~=Player then return end
  41. if io.isMouse then
  42. m.Target = io.Target
  43. m.Hit = io.Hit
  44. else
  45. local b = io.UserInputState == Enum.UserInputState.Begin
  46. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  47. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  48. end
  49. for _,t in pairs(CAS.Actions) do
  50. for _,k in pairs(t.Keys) do
  51. if k==io.KeyCode then
  52. t.Function(t.Name,io.UserInputState,io)
  53. end
  54. end
  55. end
  56. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  57. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  58. end
  59. end)
  60. Event.Parent = NLS([==[
  61. local Player = game:GetService("Players").LocalPlayer
  62. local Event = script:WaitForChild("UserInput_Event")
  63.  
  64. local UIS = game:GetService("UserInputService")
  65. local input = function(io,a)
  66. if a then return end
  67. --Since InputObject is a client-side instance, we create and pass table instead
  68. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  69. end
  70. UIS.InputBegan:Connect(input)
  71. UIS.InputEnded:Connect(input)
  72.  
  73. local Mouse = Player:GetMouse()
  74. local h,t
  75. --Give the server mouse data 30 times every second, but only if the values changed
  76. --If player is not moving their mouse, client won't fire events
  77. while wait(1/30) do
  78. if h~=Mouse.Hit or t~=Mouse.Target then
  79. h,t=Mouse.Hit,Mouse.Target
  80. Event:FireServer({isMouse=true,Target=t,Hit=h})
  81. end
  82. end]==],Player.Character)
  83. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  84. end
  85. local plr =owner
  86. local char = plr.Character
  87. local hum = char:FindFirstChildOfClass("Humanoid")
  88. local t = tick()
  89. local action = ""
  90. local torsorot = 0
  91. if hum:FindFirstChild("Animator") then
  92. hum.Animator:Destroy()
  93. end
  94.  
  95. hum.WalkSpeed = 0
  96.  
  97. --https://github.com/Mokiros/roblox-FE-compatibility
  98. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  99. local Player,game,owner = owner,game
  100. local RealPlayer = Player
  101. do
  102. print("FE Compatibility code V2 by Mokiros")
  103. local RealPlayer = RealPlayer
  104. script.Parent = RealPlayer.Character
  105.  
  106. --Fake event to make stuff like Mouse.KeyDown work
  107. local Disconnect_Function = function(this)
  108. this[1].Functions[this[2]] = nil
  109. end
  110. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  111. local FakeEvent_Metatable = {__index={
  112. Connect = function(this,f)
  113. local i = tostring(math.random(0,10000))
  114. while this.Functions[i] do
  115. i = tostring(math.random(0,10000))
  116. end
  117. this.Functions[i] = f
  118. return setmetatable({this,i},Disconnect_Metatable)
  119. end
  120. }}
  121. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  122. local function fakeEvent()
  123. return setmetatable({Functions={}},FakeEvent_Metatable)
  124. end
  125.  
  126. --Creating fake input objects with fake variables
  127. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  128. FakeMouse.keyUp = FakeMouse.KeyUp
  129. FakeMouse.keyDown = FakeMouse.KeyDown
  130. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  131. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  132. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  133. end}
  134. --Merged 2 functions into one by checking amount of arguments
  135. CAS.UnbindAction = CAS.BindAction
  136.  
  137. --This function will trigger the events that have been :Connect()'ed
  138. local function TriggerEvent(self,ev,...)
  139. for _,f in pairs(self[ev].Functions) do
  140. f(...)
  141. end
  142. end
  143. FakeMouse.TriggerEvent = TriggerEvent
  144. UIS.TriggerEvent = TriggerEvent
  145.  
  146. --Client communication
  147. local Event = Instance.new("RemoteEvent")
  148. Event.Name = "UserInput_Event"
  149. Event.OnServerEvent:Connect(function(plr,io)
  150. if plr~=RealPlayer then return end
  151. FakeMouse.Target = io.Target
  152. FakeMouse.Hit = io.Hit
  153. if not io.isMouse then
  154. local b = io.UserInputState == Enum.UserInputState.Begin
  155. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  156. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  157. end
  158. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  159. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  160. end
  161. for _,t in pairs(CAS.Actions) do
  162. for _,k in pairs(t.Keys) do
  163. if k==io.KeyCode then
  164. t.Function(t.Name,io.UserInputState,io)
  165. end
  166. end
  167. end
  168. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  169. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  170. end
  171. end)
  172. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  173. local Mouse = owner:GetMouse()
  174. local UIS = game:GetService("UserInputService")
  175. local input = function(io,RobloxHandled)
  176. if RobloxHandled then return end
  177. --Since InputObject is a client-side instance, we create and pass table instead
  178. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  179. end
  180. UIS.InputBegan:Connect(input)
  181. UIS.InputEnded:Connect(input)
  182.  
  183. local h,t
  184. --Give the server mouse data every second frame, but only if the values changed
  185. --If player is not moving their mouse, client won't fire events
  186. local HB = game:GetService("RunService").Heartbeat
  187. while true do
  188. if h~=Mouse.Hit or t~=Mouse.Target then
  189. h,t=Mouse.Hit,Mouse.Target
  190. Event:FireServer({isMouse=true,Target=t,Hit=h})
  191. end
  192. --Wait 2 frames
  193. for i=1,2 do
  194. HB:Wait()
  195. end
  196. end]==],script)
  197.  
  198. ----Sandboxed game object that allows the usage of client-side methods and services
  199. --Real game object
  200. local RealGame = game
  201.  
  202. --Metatable for fake service
  203. local FakeService_Metatable = {
  204. __index = function(self,k)
  205. local s = rawget(self,"_RealService")
  206. if s then
  207. return typeof(s[k])=="function"
  208. and function(_,...)return s[k](s,...)end or s[k]
  209. end
  210. end,
  211. __newindex = function(self,k,v)
  212. local s = rawget(self,"_RealService")
  213. if s then s[k]=v end
  214. end
  215. }
  216. local function FakeService(t,RealService)
  217. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  218. return setmetatable(t,FakeService_Metatable)
  219. end
  220.  
  221. --Fake game object
  222. local FakeGame = {
  223. GetService = function(self,s)
  224. return rawget(self,s) or RealGame:GetService(s)
  225. end,
  226. Players = FakeService({
  227. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  228. },"Players"),
  229. UserInputService = FakeService(UIS,"UserInputService"),
  230. ContextActionService = FakeService(CAS,"ContextActionService"),
  231. RunService = FakeService({
  232. _btrs = {},
  233. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  234. BindToRenderStep = function(self,name,_,fun)
  235. self._btrs[name] = self.Heartbeat:Connect(fun)
  236. end,
  237. UnbindFromRenderStep = function(self,name)
  238. self._btrs[name]:Disconnect()
  239. end,
  240. },"RunService")
  241. }
  242. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  243. FakeGame.service = FakeGame.GetService
  244. FakeService(FakeGame,game)
  245. --Changing owner to fake player object to support owner:GetMouse()
  246. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  247. end
  248. local song = Instance.new("Sound", char)
  249. song.SoundId = "rbxassetid://1883633498"
  250. song.Volume = 1
  251. song.TimePosition = 3
  252. song:Play()
  253. function createJoint(wp0, wp1, wc0x, wc0y, wc0z, wc1x, wc1y, wc1z, name)
  254. local joint = Instance.new("Motor6D", wp0)
  255. joint.Part0 = wp0
  256. joint.Part1 = wp1
  257. joint.C0 = CFrame.new(wc0x, wc0y, wc0z)
  258. joint.C1 = CFrame.new(wc1x, wc1y, wc1z)
  259. joint.Name = name
  260. return joint
  261. end
  262.  
  263. local RS = createJoint(char.Torso, char["Right Arm"], 1.5, 0.5, 0, 0, 0.5, 0, "Right Shoulder")
  264. local TS = createJoint(char.HumanoidRootPart, char.Torso, 0, 0, 0, 0, 0, 0, "RootJoint")
  265. local LS = createJoint(char.Torso, char["Left Arm"], -1.5, 0.5, 0, 0, 0.5, 0, "Left Shoulder")
  266. local RH = createJoint(char.Torso, char["Right Leg"], 0.5, -1, 0, 0, 1, 0, "Right Hip")
  267. local LH = createJoint(char.Torso, char["Left Leg"], -0.5, -1, 0, 0, 1, 0, "Left Hip")
  268. local NK = createJoint(char.Torso, char.Head, 0, 1, 0, 0, -1/2, 0, "Neck")
  269.  
  270. local rsc0 = RS.C0
  271. local lsc0 = LS.C0
  272. local tsc0 = TS.C0
  273. local rhc0 = RH.C0
  274. local lhc0 = LH.C0
  275. local nkc0 = NK.C0
  276.  
  277. local gun = Instance.new("Part", char)
  278. gun.Size = Vector3.new(1, 1, 1)
  279. gun.Anchored = false
  280. gun.CFrame = CFrame.new(0, 10, 0)
  281. gun.BrickColor = BrickColor.new("Black")
  282. gun:BreakJoints()
  283. local gunMesh = Instance.new("SpecialMesh", gun)
  284. gunMesh.MeshId = "rbxassetid://430697201"
  285. gunMesh.Scale = Vector3.new(1, 1, 1)
  286.  
  287. local gunWeld = Instance.new("Weld", gun)
  288. gunWeld.Part0 = char["Right Arm"]
  289. gunWeld.Part1 = gun
  290. gunWeld.C0 = CFrame.new(0, -1.2, -0.3) * CFrame.Angles(0, 0, math.rad(90))
  291. * CFrame.Angles(math.rad(-90), 0, 0)
  292. * CFrame.Angles(0, math.rad(180), 0)
  293.  
  294.  
  295. TS.C0 = CFrame.new(0, 10000, 0)
  296. game:GetService("RunService").RenderStepped:connect(function()
  297. t = t + 0.5
  298. if action == "IGotAGun" then
  299. local speed = 0.3
  300. torsorot = torsorot + 45
  301. NK.C0 = NK.C0:lerp(nkc0, speed)
  302. TS.C0 = TS.C0:lerp(tsc0 * CFrame.Angles(math.rad(torsorot), 0, 0)
  303. * CFrame.new(0, -math.cos(t/5)/10/2, 0), speed)
  304. RS.C0 = RS.C0:lerp(rsc0 * CFrame.new(0, math.sin(t/5)/10/2, 0)
  305. * CFrame.Angles(math.rad(90), 0, 0), speed)
  306. LS.C0 = LS.C0:lerp(lsc0 * CFrame.new(0, math.sin(t/5)/10/2, 0)
  307. * CFrame.Angles(math.rad(-5), 0, math.rad(5)), speed)
  308. RH.C0 = RH.C0:lerp(rhc0 * CFrame.new(0, math.cos(t/5)/10/2, 0), speed)
  309. LH.C0 = LH.C0:lerp(lhc0 * CFrame.new(0, math.cos(t/5)/10/2, 0), speed)
  310. elseif action == "IGotAGun2" then
  311. local speed = 0.3
  312.  
  313. NK.C0 = NK.C0:lerp(nkc0, speed)
  314. TS.C0 = TS.C0:lerp(tsc0 * CFrame.Angles(0, 0, 0)
  315. * CFrame.new(0, -math.cos(t/5)/10/2, 0), speed)
  316. RS.C0 = RS.C0:lerp(rsc0 * CFrame.new(0, math.sin(t/5)/10/2, 0)
  317. * CFrame.Angles(math.rad(90), 0, 0), speed)
  318. LS.C0 = LS.C0:lerp(lsc0 * CFrame.new(0, math.sin(t/5)/10/2, 0)
  319. * CFrame.Angles(math.rad(-5), 0, math.rad(5)), speed)
  320. RH.C0 = RH.C0:lerp(rhc0 * CFrame.new(0, math.cos(t/5)/10/2, 0), speed)
  321. LH.C0 = LH.C0:lerp(lhc0 * CFrame.new(0, math.cos(t/5)/10/2, 0), speed)
  322. elseif action == "CoufCouf" then
  323. local speed = 1
  324. NK.C0 = NK.C0:lerp(nkc0 * CFrame.Angles(math.rad(math.random(-360, 360)),
  325. math.rad(math.random(-360, 360)),
  326. math.rad(math.random(-360, 360))), speed)
  327. TS.C0 = TS.C0:lerp(tsc0 * CFrame.new(0, -math.cos(t/5)/10/2, 0), speed)
  328. RS.C0 = RS.C0:lerp(rsc0 * CFrame.Angles(math.rad(math.random(-360, 360)),
  329. math.rad(math.random(-360, 360)),
  330. math.rad(math.random(-360, 360))), speed)
  331. LS.C0 = LS.C0:lerp(lsc0 * CFrame.Angles(math.rad(math.random(-360, 360)),
  332. math.rad(math.random(-360, 360)),
  333. math.rad(math.random(-360, 360))), speed)
  334. RH.C0 = RH.C0:lerp(rhc0 * CFrame.Angles(math.rad(math.random(-360, 360)),
  335. math.rad(math.random(-360, 360)),
  336. math.rad(math.random(-360, 360))), speed)
  337. LH.C0 = LH.C0:lerp(lhc0 * CFrame.Angles(math.rad(math.random(-360, 360)),
  338. math.rad(math.random(-360, 360)),
  339. math.rad(math.random(-360, 360))), speed)
  340. elseif action == "Sleep" then
  341. local speed = 1
  342. NK.C0 = NK.C0:lerp(nkc0 * CFrame.Angles(0, math.rad(10), 0), speed)
  343. TS.C0 = TS.C0:lerp(tsc0 * CFrame.new(0, -0.5, 1)
  344. * CFrame.Angles(math.rad(90), 0, 0), speed)
  345. RS.C0 = RS.C0:lerp(rsc0 * CFrame.Angles(0, 0, math.rad(60)), speed)
  346. LS.C0 = LS.C0:lerp(lsc0 * CFrame.Angles(0, 0, math.rad(-45)), speed)
  347. RH.C0 = RH.C0:lerp(rhc0 * CFrame.Angles(0, 0, math.rad(20)), speed)
  348. LH.C0 = LH.C0:lerp(lhc0 * CFrame.Angles(0, 0, math.rad(-40)), speed)
  349. elseif action == "WakeUp" then
  350. local speed = 0.3
  351. NK.C0 = NK.C0:lerp(nkc0 * CFrame.Angles(math.rad(-10), 0, 0), speed)
  352. TS.C0 = TS.C0:lerp(tsc0 * CFrame.new(0, 0, 0.5), speed)
  353. RS.C0 = RS.C0:lerp(rsc0 * CFrame.Angles(0, 0, math.rad(-20)), speed)
  354. LS.C0 = LS.C0:lerp(lsc0 * CFrame.Angles(0, 0, math.rad(20)), speed)
  355. RH.C0 = RH.C0:lerp(rhc0 * CFrame.Angles(math.rad(90), 0, math.rad(20)), speed)
  356. LH.C0 = LH.C0:lerp(lhc0 * CFrame.Angles(math.rad(90), 0, math.rad(-20)), speed)
  357. elseif action == "Whehw" then
  358. local speed = 1
  359. NK.C0 = NK.C0:lerp(nkc0 * CFrame.Angles(math.random(-360, 360),math.random(-360, 360), math.random(-360, 360)), speed)
  360. TS.C0 = TS.C0:lerp(tsc0 * CFrame.new(0, 0, 0.5), speed)
  361. RS.C0 = RS.C0:lerp(rsc0 * CFrame.Angles(math.random(-360, 360),math.random(-360, 360), math.random(-360, 360)), speed)
  362. LS.C0 = LS.C0:lerp(lsc0 * CFrame.Angles(math.random(-360, 360),math.random(-360, 360), math.random(-360, 360)), speed)
  363. RH.C0 = RH.C0:lerp(rhc0 * CFrame.Angles(math.rad(90), 0, math.rad(20)), speed)
  364. LH.C0 = LH.C0:lerp(lhc0 * CFrame.Angles(math.rad(90), 0, math.rad(-20)), speed)
  365. elseif action == "Julioliolio" then
  366. local speed = 1
  367. NK.C0 = NK.C0:lerp(nkc0 * CFrame.Angles(math.random(-360, 360),math.random(-360, 360), math.random(-360, 360)), speed)
  368. TS.C0 = TS.C0:lerp(tsc0 * CFrame.Angles(math.random(-360, 360),math.random(-360, 360), math.random(-360, 360)), speed)
  369. RS.C0 = RS.C0:lerp(rsc0 * CFrame.Angles(math.random(-360, 360),math.random(-360, 360), math.random(-360, 360)), speed)
  370. LS.C0 = LS.C0:lerp(lsc0 * CFrame.Angles(math.random(-360, 360),math.random(-360, 360), math.random(-360, 360)), speed)
  371. RH.C0 = RH.C0:lerp(rhc0 * CFrame.Angles(math.random(-360, 360),math.random(-360, 360), math.random(-360, 360)), speed)
  372. LH.C0 = LH.C0:lerp(lhc0 * CFrame.Angles(math.random(-360, 360),math.random(-360, 360), math.random(-360, 360)), speed)
  373. elseif action == "ICan" then
  374. local speed = 1
  375. NK.C0 = NK.C0:lerp(nkc0 * CFrame.Angles(0, math.rad(20), 0), speed)
  376. TS.C0 = TS.C0:lerp(tsc0 * CFrame.Angles(0, math.rad(-20), 0)
  377. * CFrame.new(0, -math.cos(t/5)/10/2, 0), speed)
  378. RS.C0 = RS.C0:lerp(rsc0 * CFrame.new(0, math.sin(t/5)/10/2, 0)
  379. * CFrame.Angles(math.rad(-5), 0, 0), speed)
  380. LS.C0 = LS.C0:lerp(lsc0 * CFrame.new(0, math.sin(t/5)/10/2, 0)
  381. * CFrame.Angles(math.rad(90), 0, math.rad(-5)), speed)
  382. RH.C0 = RH.C0:lerp(rhc0 * CFrame.new(0, math.cos(t/5)/10/2, 0), speed)
  383. LH.C0 = LH.C0:lerp(lhc0 * CFrame.new(0, math.cos(t/5)/10/2, 0), speed)
  384. elseif action == "ICan2" then
  385. local speed = 0.4
  386. NK.C0 = NK.C0:lerp(nkc0 * CFrame.Angles(0, math.rad(20), 0), speed)
  387. TS.C0 = TS.C0:lerp(tsc0 * CFrame.Angles(0, math.rad(-20), 0)
  388. * CFrame.new(0, -math.cos(t/5)/10/2, 0), speed)
  389. RS.C0 = RS.C0:lerp(rsc0 * CFrame.new(0, math.sin(t/5)/10/2, 0)
  390. * CFrame.Angles(math.rad(-5), 0, 0), speed)
  391. LS.C0 = LS.C0:lerp(lsc0 * CFrame.new(0, math.sin(t/5)/10/2, 0)
  392. * CFrame.Angles(math.rad(90), 0, math.rad(-5)), speed)
  393. RH.C0 = RH.C0:lerp(rhc0 * CFrame.new(0, math.cos(t/5)/10/2, 0), speed)
  394. LH.C0 = LH.C0:lerp(lhc0 * CFrame.new(0, math.cos(t/5)/10/2, 0), speed)
  395. elseif action == "ICant" then
  396. local speed = 0.4
  397. NK.C0 = NK.C0:lerp(nkc0 * CFrame.Angles(0, math.rad(20), 0), speed)
  398. TS.C0 = TS.C0:lerp(tsc0 * CFrame.Angles(0, math.rad(-20), 0)
  399. * CFrame.new(0, -math.cos(t/5)/10/2, 0), speed)
  400. RS.C0 = RS.C0:lerp(rsc0 * CFrame.new(0, math.sin(t/5)/10/2, 0)
  401. * CFrame.Angles(math.rad(-5), 0, 0), speed)
  402. LS.C0 = LS.C0:lerp(lsc0 * CFrame.new(0, math.sin(t/5)/10/2, 0)
  403. * CFrame.Angles(math.rad(90), 0, math.rad(-70)), speed)
  404. RH.C0 = RH.C0:lerp(rhc0 * CFrame.new(0, math.cos(t/5)/10/2, 0), speed)
  405. LH.C0 = LH.C0:lerp(lhc0 * CFrame.new(0, math.cos(t/5)/10/2, 0), speed)
  406. elseif action == "BabyJeans" then
  407. NK.C0 = nkc0
  408. TS.C0 = tsc0 * CFrame.new(0, 8, 0)
  409. LS.C0 = lsc0
  410. RS.C0 = rsc0
  411. LH.C0 = lhc0
  412. RH.C0 = rhc0
  413. elseif action == "YouAndYour" then
  414. local speed = 1
  415. NK.C0 = NK.C0:lerp(nkc0 * CFrame.Angles(0, -math.rad(20), 0), speed)
  416. TS.C0 = TS.C0:lerp(tsc0 * CFrame.Angles(0, math.rad(20), 0)
  417. * CFrame.new(0, -math.cos(t/5)/10/2, 0), speed)
  418. RS.C0 = RS.C0:lerp(rsc0 * CFrame.new(0, math.sin(t/5)/10/2, 0)
  419. * CFrame.Angles(math.rad(90), 0, math.rad(20)), speed)
  420. LS.C0 = LS.C0:lerp(lsc0 * CFrame.new(0, math.sin(t/5)/10/2, 0), speed)
  421. RH.C0 = RH.C0:lerp(rhc0 * CFrame.new(0, math.cos(t/5)/10/2, 0), speed)
  422. LH.C0 = LH.C0:lerp(lhc0 * CFrame.new(0, math.cos(t/5)/10/2, 0), speed)
  423. elseif action == "Painis" then
  424. local speed = 0.4
  425. NK.C0 = NK.C0:lerp(nkc0 * CFrame.Angles(math.rad(-20), 0, 0), speed)
  426. TS.C0 = TS.C0:lerp(tsc0 * CFrame.Angles(0, 0, 0)
  427. * CFrame.new(0, -math.cos(t/5)/10/2, 0), speed)
  428. RS.C0 = RS.C0:lerp(rsc0 * CFrame.new(-0.5, -0.1, 0)
  429. * CFrame.Angles(math.rad(10), 0, math.rad(-45)), speed)
  430. LS.C0 = LS.C0:lerp(lsc0 * CFrame.new(0.5, -0.1, 0)
  431. * CFrame.Angles(math.rad(10), 0, math.rad(45)), speed)
  432. RH.C0 = RH.C0:lerp(rhc0 * CFrame.new(0, math.cos(t/5)/10/2, 0), speed)
  433. LH.C0 = LH.C0:lerp(lhc0 * CFrame.new(0, math.cos(t/5)/10/2, 0), speed)
  434. elseif action == "Impoopments" then
  435. local speed = 1
  436. NK.C0 = NK.C0:lerp(nkc0, speed)
  437. TS.C0 = TS.C0:lerp(tsc0, speed)
  438. RS.C0 = RS.C0:lerp(rsc0 * CFrame.Angles(math.rad(math.random(-360, 360)),
  439. math.rad(math.random(-360, 360)),
  440. math.rad(math.random(-360, 360))), speed)
  441. LS.C0 = LS.C0:lerp(lsc0 * CFrame.Angles(math.rad(math.random(-360, 360)),
  442. math.rad(math.random(-360, 360)),
  443. math.rad(math.random(-360, 360))), speed)
  444. RH.C0 = RH.C0:lerp(rhc0, speed)
  445. LH.C0 = LH.C0:lerp(lhc0, speed)
  446. elseif action == "Normal" then
  447. local speed = 1
  448. NK.C0 = nkc0
  449. TS.C0 = tsc0
  450. LS.C0 = lsc0
  451. RS.C0 = rsc0
  452. LH.C0 = lhc0
  453. RH.C0 = rhc0
  454. elseif action == "Jooj" then
  455. NK.C0 = nkc0 * CFrame.new(math.random(-10, 10)/10, math.random(-10, 10)/10, math.random(-10, 10)/10)
  456. TS.C0 = tsc0 * CFrame.new(math.random(-10, 10)/10, math.random(-10, 10)/10, math.random(-10, 10)/10)
  457. LS.C0 = lsc0 * CFrame.new(math.random(-10, 10)/10, math.random(-10, 10)/10, math.random(-10, 10)/10)
  458. LH.C0 = lhc0 * CFrame.new(math.random(-10, 10)/10, math.random(-10, 10)/10, math.random(-10, 10)/10)
  459. RS.C0 = rsc0 * CFrame.new(math.random(-10, 10)/10, math.random(-10, 10)/10, math.random(-10, 10)/10)
  460. RH.C0 = rhc0 * CFrame.new(math.random(-10, 10)/10, math.random(-10, 10)/10, math.random(-10, 10)/10)
  461. elseif action == "Upsidedown" then
  462. local speed = 1
  463. NK.C0 = nkc0
  464. TS.C0 = tsc0 * CFrame.Angles(0, 0, math.rad(180))
  465. LS.C0 = lsc0
  466. RS.C0 = rsc0
  467. LH.C0 = lhc0
  468. RH.C0 = rhc0
  469. elseif action == "CAAC" then
  470. local speed = 0.1
  471. NK.C0 = nkc0
  472. TS.C0 = TS.C0:lerp(tsc0 * CFrame.new(0, 4, 0), speed)
  473. LS.C0 = lsc0
  474. RS.C0 = rsc0
  475. LH.C0 = lhc0
  476. RH.C0 = rhc0
  477. end
  478. end)
  479.  
  480.  
  481. action = "IGotAGun"
  482. wait(0.5)
  483. action = "IGotAGun2"
  484. wait(2.9)
  485. action = "CoufCouf"
  486. local part = Instance.new("Part", char)
  487. part.Anchored = true
  488. part.Material = "Neon"
  489. part.BrickColor = BrickColor.new("New Yeller")
  490. part.CanCollide = false
  491. part.Size = Vector3.new(0.1, 0.1, 10000)
  492. for i = 1, 16 do
  493.  
  494.  
  495. part.CFrame = CFrame.new(char.HumanoidRootPart.Position, Vector3.new(math.random(-100, 100), math.random(-100, 100),math.random(-100, 100)))
  496. wait(0.5/16)
  497.  
  498. end
  499. part:Destroy()
  500. gun:Destroy()
  501. local bed = Instance.new("Part", char)
  502. bed.Anchored = false
  503. bed.CanCollide = false
  504. bed.Size = Vector3.new(4, 8, 2)
  505. bed:BreakJoints()
  506. local bedmesh = Instance.new("SpecialMesh", bed)
  507. bedmesh.Scale = Vector3.new(0.4, 0.5, 0.4)
  508. bedmesh.MeshId = "rbxassetid://473508427"
  509. bedmesh.TextureId = "rbxassetid://473508936"
  510. local bedweld = Instance.new("Weld", bed)
  511. bedweld.Part0 = char.HumanoidRootPart
  512. bedweld.Part1 = bed
  513. bedweld.C0 = CFrame.new(0, -1.35, 1) * CFrame.Angles(0, math.rad(-180), 0)
  514. * CFrame.Angles(math.rad(-90), 0, 0)
  515. action = "Sleep"
  516. wait(0.25)
  517. action = "WakeUp"
  518. wait(0.5)
  519. action = "Whehw"
  520. wait(0.7)
  521. action = "Julioliolio"
  522. for i = 1, 16 do
  523. bedweld.C0 = CFrame.new(0, -1.35, 1) * CFrame.Angles(0, math.rad(-180), 0)
  524. * CFrame.Angles(math.rad(-90) + math.random(-360, 360), math.random(-360, 360), math.random(-360, 360))
  525. wait(1/16)
  526. end
  527. bed:Destroy()
  528. action = "ICan"
  529. wait(0.2)
  530. action = "ICant"
  531. wait(0.25)
  532. action = "ICan2"
  533. wait(0.2)
  534. action = "ICant"
  535. wait(0.35)
  536. action = "BabyJeans"
  537. local baby = Instance.new("Part", char)
  538. baby.Size = Vector3.new(2, 2, 1)
  539. baby.Anchored = false
  540. baby.CanCollide = false
  541. baby:BreakJoints()
  542.  
  543. local baby2 = Instance.new("SpecialMesh", baby)
  544. baby2.MeshId = "rbxassetid://430300723"
  545. baby2.Scale = Vector3.new(5, 5, 5)
  546. baby2.TextureId = "rbxassetid://430300725"
  547.  
  548. local babyweld = Instance.new("Weld", baby)
  549. babyweld.Part0 = char.Torso
  550. babyweld.Part1 = baby
  551. babyweld.C0 = CFrame.new(0, -1, 0)
  552. * CFrame.Angles(0, math.rad(180), 0)
  553. wait(0.5)
  554. baby2.TextureId = "rbxassetid://140688857"
  555. wait(1.1)
  556. baby:Destroy()
  557. action = "YouAndYour"
  558. wait(0.5)
  559. action = "Painis"
  560. wait(0.4)
  561. action = "Impoopments"
  562. wait(1)
  563.  
  564. local pp = Instance.new("Part", char)
  565. pp.Size = Vector3.new(1, 1, 1)
  566. pp.Anchored = true
  567. pp.CanCollide = false
  568. pp.BrickColor = char.Torso.BrickColor
  569. pp:BreakJoints()
  570. pp.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0, -1, 0)
  571.  
  572. for i = 1, 20 do
  573. pp.Size = pp.Size + Vector3.new(0, 0, 2)
  574. pp.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0, -1, -i)
  575. wait(0.5/20)
  576. end
  577. pp:Destroy()
  578. action = "Jooj"
  579. wait(1.7)
  580. action = "Normal"
  581. wait(0.5)
  582. action = "Upsidedown"
  583. wait(0.5)
  584. action = "Normal"
  585. TS.C0 = tsc0 * CFrame.new(0, 10, 0)
  586. local caac = Instance.new("Part", char)
  587. caac.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0, -1, 0)
  588. caac.Anchored = true
  589. caac.CanCollide = true
  590. caac.Size = Vector3.new(8, 4, 1)
  591. caac:BreakJoints()
  592. local caactext = Instance.new("SurfaceGui", caac)
  593. caactext.Adornee = caac
  594. local caactext2 = Instance.new("TextLabel", caactext)
  595. caactext2.Size = UDim2.new(1, 0, 1, 0)
  596. caactext2.TextScaled = true
  597. caactext2.Text = "CAAC"
  598. caactext2.Font = "Legacy"
  599. action = "CAAC"
  600. wait(1.7)
  601. coroutine.resume(coroutine.create(function()
  602. for i = 1, 100 do
  603. if char.Head ~= nil then
  604. char.Head.Mesh.Scale = char.Head.Mesh.Scale + Vector3.new(1, 1, 1)
  605. end
  606. wait(0.5/100)
  607. end
  608. end))
  609. wait(1)
  610. caac.Anchored = false
  611. char.Head:Destroy()
  612. local sound = Instance.new("Sound", char.Torso)
  613. sound.SoundId = "rbxassetid://440431180"
  614. sound.Volume = 1
  615. sound:Play()
  616.  
  617. local explosion = Instance.new("Explosion", char)
  618. explosion.BlastRadius = 1
  619. explosion.BlastPressure = 9000
  620. explosion.Position = char.Torso.Position
Advertisement
Add Comment
Please, Sign In to add comment