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