Hugo1234cool

jump in the caac

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