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