SHOW:
|
|
- or go back to the newest paste.
1 | --just put this on the top of a script and boom 89% works | |
2 | --note this does not work on big scripts | |
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,game,owner = owner,game | |
5 | local RealPlayer = Player | |
6 | do | |
7 | local rp = RealPlayer | |
8 | script.Parent = rp.Character | |
9 | ||
10 | --RemoteEvent for communicating | |
11 | local Event = Instance.new("RemoteEvent") | |
12 | Event.Name = "UserInput_Event" | |
13 | ||
14 | --Fake event to make stuff like Mouse.KeyDown work | |
15 | local function fakeEvent() | |
16 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end} | |
17 | t.connect = t.Connect | |
18 | return t | |
19 | end | |
20 | ||
21 | --Creating fake input objects with fake variables | |
22 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
23 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
24 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
25 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
26 | end} | |
27 | --Merged 2 functions into one by checking amount of arguments | |
28 | CAS.UnbindAction = CAS.BindAction | |
29 | ||
30 | --This function will trigger the events that have been :Connect()'ed | |
31 | local function te(self,ev,...) | |
32 | local t = m[ev] | |
33 | if t and t._fakeEvent then | |
34 | for _,f in pairs(t.Functions) do | |
35 | f(...) | |
36 | end | |
37 | end | |
38 | end | |
39 | m.TrigEvent = te | |
40 | UIS.TrigEvent = te | |
41 | ||
42 | Event.OnServerEvent:Connect(function(plr,io) | |
43 | if plr~=rp then return end | |
44 | m.Target = io.Target | |
45 | m.Hit = io.Hit | |
46 | if not io.isMouse then | |
47 | local b = io.UserInputState == Enum.UserInputState.Begin | |
48 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
49 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
50 | end | |
51 | for _,t in pairs(CAS.Actions) do | |
52 | for _,k in pairs(t.Keys) do | |
53 | if k==io.KeyCode then | |
54 | t.Function(t.Name,io.UserInputState,io) | |
55 | end | |
56 | end | |
57 | end | |
58 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
59 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
60 | end | |
61 | end) | |
62 | Event.Parent = NLS([==[ | |
63 | local Player = game:GetService("Players").LocalPlayer | |
64 | local Event = script:WaitForChild("UserInput_Event") | |
65 | ||
66 | local Mouse = Player:GetMouse() | |
67 | local UIS = game:GetService("UserInputService") | |
68 | local input = function(io,a) | |
69 | if a then return end | |
70 | --Since InputObject is a client-side instance, we create and pass table instead | |
71 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
72 | end | |
73 | UIS.InputBegan:Connect(input) | |
74 | UIS.InputEnded:Connect(input) | |
75 | ||
76 | local h,t | |
77 | --Give the server mouse data 30 times every second, but only if the values changed | |
78 | --If player is not moving their mouse, client won't fire events | |
79 | while wait(1/30) do | |
80 | if h~=Mouse.Hit or t~=Mouse.Target then | |
81 | h,t=Mouse.Hit,Mouse.Target | |
82 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
83 | end | |
84 | end]==],Player.Character) | |
85 | ||
86 | ----Sandboxed game object that allows the usage of client-side methods and services | |
87 | --Real game object | |
88 | local _rg = game | |
89 | ||
90 | --Metatable for fake service | |
91 | local fsmt = { | |
92 | __index = function(self,k) | |
93 | local s = rawget(self,"_RealService") | |
94 | if s then return s[k] end | |
95 | end, | |
96 | __newindex = function(self,k,v) | |
97 | local s = rawget(self,"_RealService") | |
98 | if s then s[k]=v end | |
99 | end, | |
100 | __call = function(self,...) | |
101 | local s = rawget(self,"_RealService") | |
102 | if s then return s(...) end | |
103 | end | |
104 | } | |
105 | local function FakeService(t,RealService) | |
106 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
107 | return setmetatable(t,fsmt) | |
108 | end | |
109 | ||
110 | --Fake game object | |
111 | local g = { | |
112 | GetService = function(self,s) | |
113 | return self[s] | |
114 | end, | |
115 | Players = FakeService({ | |
116 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player) | |
117 | },"Players"), | |
118 | UserInputService = FakeService(UIS,"UserInputService"), | |
119 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
120 | } | |
121 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
122 | g.service = g.GetService | |
123 | ||
124 | g.RunService = FakeService({ | |
125 | RenderStepped = _rg:GetService("RunService").Heartbeat, | |
126 | BindToRenderStep = function(self,name,_,fun) | |
127 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
128 | end, | |
129 | UnbindFromRenderStep = function(self,name) | |
130 | self._btrs[name]:Disconnect() | |
131 | end, | |
132 | },"RunService") | |
133 | ||
134 | setmetatable(g,{ | |
135 | __index=function(self,s) | |
136 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
137 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
138 | end, | |
139 | __newindex = fsmt.__newindex, | |
140 | __call = fsmt.__call | |
141 | }) | |
142 | --Changing owner to fake player object to support owner:GetMouse() | |
143 | game,owner = g,g.Players.LocalPlayer | |
144 | end | |
145 | ||
146 | ||
147 | ||
148 | wait(0.5) | |
149 | math.randomseed(tick()) | |
150 | local player = game.Players.LocalPlayer | |
151 | local rekt = {} | |
152 | local paralyzed = false | |
153 | local curpoint = nil | |
154 | local curpart = nil | |
155 | local finishnum = 1 | |
156 | local zombiemode = false | |
157 | local zombies = {} | |
158 | local lastgui = nil | |
159 | local mouse = player:GetMouse() | |
160 | ||
161 | function getplr(char) | |
162 | local plr = nil | |
163 | for i,v in pairs(game.Players:GetChildren()) do | |
164 | if v.Character == char then | |
165 | plr = v | |
166 | end | |
167 | end | |
168 | return plr | |
169 | end | |
170 | ||
171 | function bleed(frick) | |
172 | while frick.Parent ~= nil do | |
173 | local reeee = coroutine.wrap(function() | |
174 | local thing = Instance.new('Part',game.Workspace) | |
175 | thing.Size = Vector3.new(0.2,0.2,0.2) | |
176 | thing.CFrame = frick.CFrame | |
177 | thing.Shape = Enum.PartType.Ball | |
178 | thing.CFrame = frick.CFrame | |
179 | thing.Transparency = 1 | |
180 | thing.BrickColor = BrickColor.new('Maroon') | |
181 | thing.Material = Enum.Material.SmoothPlastic | |
182 | thing.Name = "Blood" | |
183 | thing.CanCollide =false | |
184 | local rawrxd = Instance.new('BodyForce',thing) | |
185 | rawrxd.Force = frick.CFrame.upVector*(math.random()*2)+Vector3.new(math.random(-5, 5)/10,1.5,0) | |
186 | local coru = coroutine.wrap(function() | |
187 | wait(0.01) | |
188 | rawrxd:Destroy() | |
189 | end) | |
190 | coru() | |
191 | local ree = Instance.new('ParticleEmitter',thing) | |
192 | ree.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.fromRGB(50,0,0)),ColorSequenceKeypoint.new(1,Color3.fromRGB(50,0,0))}) | |
193 | ree.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.1),NumberSequenceKeypoint.new(1,0.1)}) | |
194 | ree.Texture = 'rbxassetid://867743272' | |
195 | ree.Lifetime = NumberRange.new(0.4) | |
196 | ree.Rate = 70 | |
197 | ree.LockedToPart = true | |
198 | ree.Speed = NumberRange.new(0, 3) | |
199 | ||
200 | thing.Touched:connect(function(tou) | |
201 | if tou.Parent and tou.Parent:IsA('Tool') == false and tou.Parent.Parent:FindFirstChildOfClass('Humanoid') == nil and tou.Parent:FindFirstChildOfClass('Humanoid') == nil and tou.Name ~= "Blood" and tou.Parent.Name ~= "Projectile" and tou.Parent.Name ~= "big ass knife" and tou.Parent ~= player.Character and tou.Parent.ClassName ~= "Accessory" and tou.Parent.Name ~= "bitch ass knife" then | |
202 | local pos = Vector3.new(thing.Position.X,(tou.Position.Y+(tou.Size.Y/2))+0.02,thing.Position.Z) | |
203 | thing:Destroy() | |
204 | if tou.Name == "BloodPuddle" then | |
205 | local reee = tou.CFrame | |
206 | if tou.Transparency > -0.2 then | |
207 | tou.Transparency = tou.Transparency -0.1 | |
208 | end | |
209 | if tou.Size.X < 10 then | |
210 | tou.Size = tou.Size+Vector3.new(0.1,0,0.1) | |
211 | tou.CFrame = reee | |
212 | end | |
213 | else | |
214 | local bloodlol = Instance.new('Part',workspace) | |
215 | bloodlol.Size=Vector3.new(1,0.2,1) | |
216 | bloodlol.Name = "BloodPuddle" | |
217 | bloodlol.Anchored = true | |
218 | bloodlol.CanCollide = false | |
219 | bloodlol.Material = Enum.Material.Granite | |
220 | bloodlol.BrickColor = BrickColor.new('Crimson') | |
221 | local cyl = Instance.new('CylinderMesh',bloodlol) | |
222 | cyl.Scale = Vector3.new(1,0.1,1) | |
223 | bloodlol.CFrame = CFrame.new(pos) | |
224 | local coru=coroutine.wrap(function() | |
225 | while bloodlol.Parent ~= nil do | |
226 | if bloodlol.Transparency < 1 then | |
227 | bloodlol.Transparency = bloodlol.Transparency+0.01 | |
228 | else | |
229 | bloodlol:Destroy() | |
230 | end | |
231 | wait(0.1) | |
232 | end | |
233 | end) | |
234 | coru() | |
235 | end | |
236 | end | |
237 | end) | |
238 | local coru = coroutine.wrap(function() | |
239 | wait(1) | |
240 | thing:Destroy() | |
241 | end) | |
242 | coru() | |
243 | end) | |
244 | reeee() | |
245 | wait() | |
246 | end | |
247 | end | |
248 | ||
249 | function killz(playa,hitz,kneef,explode,pool,head,charred,override) | |
250 | local soundy = false | |
251 | local heyy = hitz | |
252 | if hitz == "Right Arm" then | |
253 | local Limb = playa:FindFirstChild("Right Arm") | |
254 | local ters = playa:FindFirstChild('Torso') | |
255 | if Limb and ters then | |
256 | if ters:FindFirstChild('Right Shoulder') then ters["Right Shoulder"]:Destroy() end | |
257 | for i,v in pairs(Limb:GetChildren()) do | |
258 | if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Rotate') then | |
259 | v:Destroy() | |
260 | end | |
261 | end | |
262 | Limb.CFrame = ters.CFrame * CFrame.new(1.5, 0, 0) | |
263 | local Joint = Instance.new("Rotate") | |
264 | Joint.Name = "RightShoulder" | |
265 | Joint.Part0 = ters | |
266 | Joint.Part1 = Limb | |
267 | Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
268 | Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
269 | Joint.Parent = ters | |
270 | if charred and zombiemode == false then | |
271 | Limb.BrickColor = BrickColor.new('Black') | |
272 | local fire = Instance.new('Fire',Limb) | |
273 | fire.Heat = 5 | |
274 | fire.Size = 5 | |
275 | game:GetService('Debris'):AddItem(fire,2) | |
276 | local coru=coroutine.wrap(function() | |
277 | wait(2) | |
278 | for i,v in pairs(Limb:GetChildren()) do | |
279 | if v:IsA('ParticleEmitter') then | |
280 | v:Destroy() | |
281 | end | |
282 | end | |
283 | end) | |
284 | coru() | |
285 | end | |
286 | local B = Instance.new("Part") | |
287 | B.TopSurface = 0 | |
288 | B.BottomSurface = 0 | |
289 | B.formFactor = "Symmetric" | |
290 | B.Size = Vector3.new(1, 1, 1) | |
291 | B.Transparency = 1 | |
292 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
293 | B.Parent = playa | |
294 | local W = Instance.new("Weld") | |
295 | W.Part0 = Limb | |
296 | W.Part1 = B | |
297 | W.C0 = CFrame.new(0, -0.5, 0) | |
298 | W.Parent = Limb | |
299 | if kneef then | |
300 | local coru = coroutine.wrap(function() | |
301 | local uno = Instance.new('Part',workspace) | |
302 | local dos = Instance.new('Part',workspace) | |
303 | uno.CFrame = playa:FindFirstChild(hitz).CFrame | |
304 | dos.CFrame = kneef["big ass knife"].CFrame | |
305 | local weld = Instance.new('Weld',kneef["big ass knife"]) | |
306 | weld.Part0 = playa:FindFirstChild(hitz) | |
307 | weld.Part1 = kneef["big ass knife"] | |
308 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
309 | uno:Destroy() | |
310 | dos:Destroy() | |
311 | playa:FindFirstChild(hitz).Anchored = false | |
312 | for i, v in pairs(kneef:GetChildren()) do | |
313 | if v:IsA('BasePart') then | |
314 | v.Anchored = false | |
315 | end | |
316 | end | |
317 | if zombiemode == false or override then | |
318 | wait() | |
319 | end | |
320 | if kneef:FindFirstChild('Grab') and kneef.Grab:FindFirstChildOfClass('BodyVelocity') then | |
321 | kneef.Grab:FindFirstChildOfClass('BodyVelocity'):Destroy() | |
322 | end | |
323 | local bleedpart = Instance.new("Part", kneef) | |
324 | bleedpart.CanCollide = false | |
325 | bleedpart.Size = Vector3.new(0.2, 0.2, 0.2) | |
326 | bleedpart.CFrame = kneef["big ass knife"].CFrame | |
327 | bleedpart.Color = Color3.new(115/225, 115/225, 115/225) | |
328 | bleedpart.Transparency = 1 | |
329 | ||
330 | local bleedpartweld = Instance.new("Weld", kneef["big ass knife"]) | |
331 | bleedpartweld.Part0 = kneef["big ass knife"] | |
332 | bleedpartweld.Part1 = bleedpart | |
333 | bleedpartweld.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(90),0,0) | |
334 | local coru = coroutine.wrap(function() | |
335 | bleed(bleedpart) | |
336 | end) | |
337 | coru() | |
338 | game:GetService('Debris'):AddItem(bleedpart,2) | |
339 | end) | |
340 | coru() | |
341 | end | |
342 | end | |
343 | elseif hitz == "Left Arm" then | |
344 | local Limb = playa:FindFirstChild("Left Arm") | |
345 | local ters = playa:FindFirstChild('Torso') | |
346 | if Limb and ters then | |
347 | if ters:FindFirstChild('Left Shoulder') then ters["Left Shoulder"]:Destroy() end | |
348 | for i,v in pairs(Limb:GetChildren()) do | |
349 | if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Rotate') then | |
350 | v:Destroy() | |
351 | end | |
352 | end | |
353 | Limb.CFrame = ters.CFrame * CFrame.new(-1.5, 0, 0) | |
354 | local Joint = Instance.new("Rotate") | |
355 | Joint.Name = "LeftShoulder" | |
356 | Joint.Part0 = ters | |
357 | Joint.Part1 = Limb | |
358 | Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
359 | Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
360 | Joint.Parent = ters | |
361 | if charred and zombiemode == false then | |
362 | Limb.BrickColor = BrickColor.new('Black') | |
363 | local fire = Instance.new('Fire',Limb) | |
364 | fire.Heat = 5 | |
365 | fire.Size = 5 | |
366 | game:GetService('Debris'):AddItem(fire,2) | |
367 | local coru=coroutine.wrap(function() | |
368 | wait(2) | |
369 | for i,v in pairs(Limb:GetChildren()) do | |
370 | if v:IsA('ParticleEmitter') then | |
371 | v:Destroy() | |
372 | end | |
373 | end | |
374 | end) | |
375 | coru() | |
376 | end | |
377 | ||
378 | local B = Instance.new("Part") | |
379 | B.TopSurface = 0 | |
380 | B.BottomSurface = 0 | |
381 | B.formFactor = "Symmetric" | |
382 | B.Size = Vector3.new(1, 1, 1) | |
383 | B.CanCollide = true | |
384 | B.Transparency = 1 | |
385 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
386 | B.Parent = playa | |
387 | local W = Instance.new("Weld") | |
388 | W.Part0 = ters | |
389 | W.Part1 = B | |
390 | W.C0 = CFrame.new(0, -0.5, 0) | |
391 | W.Parent = Limb | |
392 | if kneef then | |
393 | local coru = coroutine.wrap(function() | |
394 | local uno = Instance.new('Part',workspace) | |
395 | local dos = Instance.new('Part',workspace) | |
396 | uno.CFrame = playa:FindFirstChild(hitz).CFrame | |
397 | dos.CFrame = kneef["big ass knife"].CFrame | |
398 | local weld = Instance.new('Weld',kneef["big ass knife"]) | |
399 | weld.Part0 = playa:FindFirstChild(hitz) | |
400 | weld.Part1 = kneef["big ass knife"] | |
401 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
402 | uno:Destroy() | |
403 | dos:Destroy() | |
404 | playa:FindFirstChild(hitz).Anchored = false | |
405 | for i, v in pairs(kneef:GetChildren()) do | |
406 | if v:IsA('BasePart') then | |
407 | v.Anchored = false | |
408 | end | |
409 | end | |
410 | if zombiemode == false or override then | |
411 | wait() | |
412 | end | |
413 | if kneef:FindFirstChild('Grab') and kneef.Grab:FindFirstChildOfClass('BodyVelocity') then | |
414 | kneef.Grab:FindFirstChildOfClass('BodyVelocity'):Destroy() | |
415 | end | |
416 | local bleedpart = Instance.new("Part", kneef) | |
417 | bleedpart.CanCollide = false | |
418 | bleedpart.Size = Vector3.new(0.2, 0.2, 0.2) | |
419 | bleedpart.CFrame = kneef["big ass knife"].CFrame | |
420 | bleedpart.Color = Color3.new(115/225, 115/225, 115/225) | |
421 | bleedpart.Transparency = 1 | |
422 | ||
423 | local bleedpartweld = Instance.new("Weld", kneef["big ass knife"]) | |
424 | bleedpartweld.Part0 = kneef["big ass knife"] | |
425 | bleedpartweld.Part1 = bleedpart | |
426 | bleedpartweld.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(90),0,0) | |
427 | local coru = coroutine.wrap(function() | |
428 | bleed(bleedpart) | |
429 | end) | |
430 | coru() | |
431 | game:GetService('Debris'):AddItem(bleedpart,2) | |
432 | end) | |
433 | coru() | |
434 | end | |
435 | end | |
436 | elseif hitz == "Right Leg" then | |
437 | local Limb = playa:FindFirstChild("Right Leg") | |
438 | local ters = playa:FindFirstChild('Torso') | |
439 | if Limb and ters then | |
440 | if ters:FindFirstChild('Right Hip') then ters["Right Hip"]:Destroy() end | |
441 | for i,v in pairs(Limb:GetChildren()) do | |
442 | if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Rotate') then | |
443 | v:Destroy() | |
444 | end | |
445 | end | |
446 | Limb.CFrame = ters.CFrame * CFrame.new(0.5, -2, 0) | |
447 | local Joint = Instance.new("Rotate") | |
448 | Joint.Name = "Right Hip" | |
449 | Joint.Part0 = ters | |
450 | Joint.Part1 = Limb | |
451 | Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
452 | Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
453 | Joint.Parent = ters | |
454 | if charred and zombiemode == false then | |
455 | Limb.BrickColor = BrickColor.new('Black') | |
456 | local fire = Instance.new('Fire',Limb) | |
457 | fire.Heat = 5 | |
458 | fire.Size = 5 | |
459 | game:GetService('Debris'):AddItem(fire,2) | |
460 | local coru=coroutine.wrap(function() | |
461 | wait(2) | |
462 | for i,v in pairs(Limb:GetChildren()) do | |
463 | if v:IsA('ParticleEmitter') then | |
464 | v:Destroy() | |
465 | end | |
466 | end | |
467 | end) | |
468 | coru() | |
469 | end | |
470 | local B = Instance.new("Part") | |
471 | B.TopSurface = 0 | |
472 | B.BottomSurface = 0 | |
473 | B.formFactor = "Symmetric" | |
474 | B.Size = Vector3.new(1, 1, 1) | |
475 | B.Transparency = 1 | |
476 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
477 | B.Parent = playa | |
478 | local W = Instance.new("Weld") | |
479 | W.Part0 = Limb | |
480 | W.Part1 = B | |
481 | W.C0 = CFrame.new(0, -0.5, 0) | |
482 | W.Parent = Limb | |
483 | if kneef then | |
484 | local coru = coroutine.wrap(function() | |
485 | local uno = Instance.new('Part',workspace) | |
486 | local dos = Instance.new('Part',workspace) | |
487 | uno.CFrame = playa:FindFirstChild(hitz).CFrame | |
488 | dos.CFrame = kneef["big ass knife"].CFrame | |
489 | local weld = Instance.new('Weld',kneef["big ass knife"]) | |
490 | weld.Part0 = playa:FindFirstChild(hitz) | |
491 | weld.Part1 = kneef["big ass knife"] | |
492 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
493 | uno:Destroy() | |
494 | dos:Destroy() | |
495 | playa:FindFirstChild(hitz).Anchored = false | |
496 | for i, v in pairs(kneef:GetChildren()) do | |
497 | if v:IsA('BasePart') then | |
498 | v.Anchored = false | |
499 | end | |
500 | end | |
501 | if zombiemode == false or override then | |
502 | wait() | |
503 | end | |
504 | if kneef:FindFirstChild('Grab') and kneef.Grab:FindFirstChildOfClass('BodyVelocity') then | |
505 | kneef.Grab:FindFirstChildOfClass('BodyVelocity'):Destroy() | |
506 | end | |
507 | local bleedpart = Instance.new("Part", kneef) | |
508 | bleedpart.CanCollide = false | |
509 | bleedpart.Size = Vector3.new(0.2, 0.2, 0.2) | |
510 | bleedpart.CFrame = kneef["big ass knife"].CFrame | |
511 | bleedpart.Color = Color3.new(115/225, 115/225, 115/225) | |
512 | bleedpart.Transparency = 1 | |
513 | ||
514 | local bleedpartweld = Instance.new("Weld", kneef["big ass knife"]) | |
515 | bleedpartweld.Part0 = kneef["big ass knife"] | |
516 | bleedpartweld.Part1 = bleedpart | |
517 | bleedpartweld.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(90),0,0) | |
518 | local coru = coroutine.wrap(function() | |
519 | bleed(bleedpart) | |
520 | end) | |
521 | coru() | |
522 | game:GetService('Debris'):AddItem(bleedpart,2) | |
523 | end) | |
524 | coru() | |
525 | end | |
526 | if playa then | |
527 | table.insert(rekt,playa) | |
528 | end | |
529 | end | |
530 | elseif hitz == "Left Leg" then | |
531 | local Limb = playa:FindFirstChild("Left Leg") | |
532 | local ters = playa:FindFirstChild('Torso') | |
533 | if Limb and ters then | |
534 | if ters:FindFirstChild('Left Hip') then ters["Left Hip"]:Destroy() end | |
535 | for i,v in pairs(Limb:GetChildren()) do | |
536 | if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Rotate') then | |
537 | v:Destroy() | |
538 | end | |
539 | end | |
540 | Limb.CFrame = ters.CFrame * CFrame.new(0.5, -2, 0) | |
541 | Limb.CFrame = ters.CFrame * CFrame.new(-0.5, -2, 0) | |
542 | local Joint = Instance.new("Rotate") | |
543 | Joint.Name = "LeftHip" | |
544 | Joint.Part0 = ters | |
545 | Joint.Part1 = Limb | |
546 | Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
547 | Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
548 | Joint.Parent = ters | |
549 | if charred and zombiemode == false then | |
550 | Limb.BrickColor = BrickColor.new('Black') | |
551 | local fire = Instance.new('Fire',Limb) | |
552 | fire.Heat = 5 | |
553 | fire.Size = 5 | |
554 | game:GetService('Debris'):AddItem(fire,2) | |
555 | local coru=coroutine.wrap(function() | |
556 | wait(2) | |
557 | for i,v in pairs(Limb:GetChildren()) do | |
558 | if v:IsA('ParticleEmitter') then | |
559 | v:Destroy() | |
560 | end | |
561 | end | |
562 | end) | |
563 | coru() | |
564 | end | |
565 | ||
566 | local B = Instance.new("Part") | |
567 | B.TopSurface = 0 | |
568 | B.BottomSurface = 0 | |
569 | B.formFactor = "Symmetric" | |
570 | B.Size = Vector3.new(1, 1, 1) | |
571 | B.Transparency = 1 | |
572 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
573 | B.Parent = playa | |
574 | local W = Instance.new("Weld") | |
575 | W.Part0 = Limb | |
576 | W.Part1 = B | |
577 | W.C0 = CFrame.new(0, -0.5, 0) | |
578 | W.Parent = Limb | |
579 | Limb.CanCollide = false | |
580 | if kneef then | |
581 | local coru = coroutine.wrap(function() | |
582 | local uno = Instance.new('Part',workspace) | |
583 | local dos = Instance.new('Part',workspace) | |
584 | uno.CFrame = playa:FindFirstChild(hitz).CFrame | |
585 | dos.CFrame = kneef["big ass knife"].CFrame | |
586 | local weld = Instance.new('Weld',kneef["big ass knife"]) | |
587 | weld.Part0 = playa:FindFirstChild(hitz) | |
588 | weld.Part1 = kneef["big ass knife"] | |
589 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
590 | uno:Destroy() | |
591 | dos:Destroy() | |
592 | playa:FindFirstChild(hitz).Anchored = false | |
593 | for i, v in pairs(kneef:GetChildren()) do | |
594 | if v:IsA('BasePart') then | |
595 | v.Anchored = false | |
596 | end | |
597 | end | |
598 | if zombiemode == false or override then | |
599 | wait() | |
600 | end | |
601 | if kneef:FindFirstChild('Grab') and kneef.Grab:FindFirstChildOfClass('BodyVelocity') then | |
602 | kneef.Grab:FindFirstChildOfClass('BodyVelocity'):Destroy() | |
603 | end | |
604 | local bleedpart = Instance.new("Part", kneef) | |
605 | bleedpart.CanCollide = false | |
606 | bleedpart.Size = Vector3.new(0.2, 0.2, 0.2) | |
607 | bleedpart.CFrame = kneef["big ass knife"].CFrame | |
608 | bleedpart.Color = Color3.new(115/225, 115/225, 115/225) | |
609 | bleedpart.Transparency = 1 | |
610 | ||
611 | local bleedpartweld = Instance.new("Weld", kneef["big ass knife"]) | |
612 | bleedpartweld.Part0 = kneef["big ass knife"] | |
613 | bleedpartweld.Part1 = bleedpart | |
614 | bleedpartweld.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(90),0,0) | |
615 | local coru = coroutine.wrap(function() | |
616 | bleed(bleedpart) | |
617 | end) | |
618 | coru() | |
619 | game:GetService('Debris'):AddItem(bleedpart,2) | |
620 | end) | |
621 | coru() | |
622 | end | |
623 | if playa then | |
624 | table.insert(rekt,playa) | |
625 | end | |
626 | end | |
627 | elseif playa then | |
628 | if finishnum ~= 1 then | |
629 | local coru=coroutine.wrap(function() | |
630 | player.Character.Head.Psycho.Playing = true | |
631 | wait(3) | |
632 | player.Character.Head.Psycho.Playing = false | |
633 | end) | |
634 | coru() | |
635 | end | |
636 | local playa2 = playa | |
637 | playa.Archivable = true | |
638 | local playa = playa:Clone() | |
639 | playa.Archivable = false | |
640 | playa2:Destroy() | |
641 | playa.Parent = workspace | |
642 | local Gibs = game.Workspace | |
643 | local Torso = playa.Torso | |
644 | local Head = playa:FindFirstChild("Head") | |
645 | local function Scan(ch) | |
646 | local e | |
647 | for e = 1,#ch do | |
648 | Scan(ch[e]:GetChildren()) | |
649 | if (ch[e].ClassName == "Weld" and ch[e]:FindFirstChild('Part1') and ch[e].Part1.Name ~= 'Projectile') or ch[e].ClassName == "Motor6D" or ch[e].ClassName == "Rotate" or (ch[e]:IsA('BasePart') and ch[e].Size == Vector3.new(1, 1, 1)) then | |
650 | ch[e]:remove() | |
651 | end | |
652 | end | |
653 | end | |
654 | Scan(playa:GetChildren()) | |
655 | if playa:FindFirstChild('HumanoidRootPart') and (zombiemode == false or override) then | |
656 | playa:FindFirstChild('HumanoidRootPart'):Destroy() | |
657 | end | |
658 | local hum2 = playa:FindFirstChildOfClass("Humanoid") | |
659 | if zombiemode == true and override == false then | |
660 | soundy = true | |
661 | end | |
662 | if string.sub(hum2.Parent.Name,string.len(hum2.Parent.Name)-8,string.len(hum2.Parent.Name)) ~= "'s Zombie" then | |
663 | override = true | |
664 | end | |
665 | if hum2 ~= nil then | |
666 | hum2.Name = "Humanoid2" | |
667 | hum2.Health = 0 | |
668 | if zombiemode == false or override == true then | |
669 | table.insert(rekt,hum2.Parent) | |
670 | else | |
671 | local gyro = Instance.new('BodyGyro',Torso) | |
672 | hum2.PlatformStand = false | |
673 | for i,v in pairs(hum2.Parent.Torso:GetChildren()) do | |
674 | if v:IsA('BodyGyro') then v:Destroy() end | |
675 | end | |
676 | if playa:FindFirstChild('HumanoidRootPart') then | |
677 | hum2.Parent.HumanoidRootPart.CFrame = hum2.Parent.Torso.CFrame | |
678 | local weldcrucial = Instance.new('Weld',hum2.Parent.HumanoidRootPart) | |
679 | weldcrucial.Part0 = hum2.Parent.HumanoidRootPart | |
680 | weldcrucial.Part1 = hum2.Parent.Torso | |
681 | end | |
682 | end | |
683 | end | |
684 | local ch = playa:GetChildren() | |
685 | local i | |
686 | for i = 1,#ch do | |
687 | if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then | |
688 | ch[i]:remove() | |
689 | end | |
690 | end | |
691 | ||
692 | if Head then | |
693 | local Neck = Instance.new("Weld") | |
694 | Neck.Name = "Neck" | |
695 | Neck.Part0 = Torso | |
696 | Neck.Part1 = Head | |
697 | if pool then | |
698 | local part = Instance.new('Part',Torso) | |
699 | part.Position = Vector3.new(0,10,0) | |
700 | part.Size = Vector3.new(0.2,0.2,0.2) | |
701 | part.Transparency = 1 | |
702 | part.CanCollide = false | |
703 | local we = Instance.new('Weld',Torso) | |
704 | we.Part0 = Torso | |
705 | we.Part1 = part | |
706 | we.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(90),0,0) | |
707 | local coru=coroutine.wrap(function() | |
708 | bleed(part) | |
709 | end) | |
710 | coru() | |
711 | end | |
712 | if head == false or head == nil then | |
713 | Neck.C0 = CFrame.new(0, 1.5, 0) | |
714 | else | |
715 | Neck.C0 = CFrame.new(0, 1.5, 0.2)*CFrame.Angles(0.5, 0.25, 0.25) | |
716 | local bleedpart = Instance.new("Part", Torso) | |
717 | bleedpart.Size = Vector3.new(0.2, 0.2, 0.2) | |
718 | bleedpart.Color = Color3.new(115/225, 115/225, 115/225) | |
719 | bleedpart.CanCollide = false | |
720 | bleedpart.Position = Head.Position + Vector3.new(0, 1, 0) | |
721 | bleedpart.Transparency = 1 | |
722 | ||
723 | local bleedpartweld = Instance.new("Weld", Torso) | |
724 | bleedpartweld.Part0 = Torso | |
725 | bleedpartweld.Part1 = bleedpart | |
726 | bleedpartweld.C0 = CFrame.Angles(-1, 0, -0.35) * CFrame.new(0, 1, 0.8) | |
727 | local coru = coroutine.wrap(function() | |
728 | bleed(bleedpart) | |
729 | end) | |
730 | coru() | |
731 | end | |
732 | Neck.C1 = CFrame.new() | |
733 | Neck.Parent = Torso | |
734 | end | |
735 | local Limb = playa:FindFirstChild("Right Arm") | |
736 | if Limb then | |
737 | ||
738 | Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0) | |
739 | local Joint = Instance.new("Rotate") | |
740 | Joint.Name = "RightShoulder" | |
741 | Joint.Part0 = Torso | |
742 | Joint.Part1 = Limb | |
743 | Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
744 | Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
745 | Joint.Parent = Torso | |
746 | ||
747 | local B = Instance.new("Part") | |
748 | B.TopSurface = 0 | |
749 | B.BottomSurface = 0 | |
750 | B.formFactor = "Symmetric" | |
751 | B.Size = Vector3.new(1, 1, 1) | |
752 | B.Transparency = 1 | |
753 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
754 | B.Parent = playa | |
755 | local W = Instance.new("Weld") | |
756 | W.Part0 = Limb | |
757 | W.Part1 = B | |
758 | W.C0 = CFrame.new(0, -0.5, 0) | |
759 | W.Parent = Limb | |
760 | end | |
761 | local Limb = playa:FindFirstChild("Left Arm") | |
762 | if Limb then | |
763 | ||
764 | Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0) | |
765 | local Joint = Instance.new("Rotate") | |
766 | Joint.Name = "LeftShoulder" | |
767 | Joint.Part0 = Torso | |
768 | Joint.Part1 = Limb | |
769 | Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
770 | Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
771 | Joint.Parent = Torso | |
772 | ||
773 | local B = Instance.new("Part") | |
774 | B.TopSurface = 0 | |
775 | B.BottomSurface = 0 | |
776 | B.formFactor = "Symmetric" | |
777 | B.Size = Vector3.new(1, 1, 1) | |
778 | B.Transparency = 1 | |
779 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
780 | B.Parent = playa | |
781 | local W = Instance.new("Weld") | |
782 | W.Part0 = Limb | |
783 | W.Part1 = B | |
784 | W.C0 = CFrame.new(0, -0.5, 0) | |
785 | W.Parent = Limb | |
786 | end | |
787 | local Limb = playa:FindFirstChild("Right Leg") | |
788 | if Limb then | |
789 | Limb.CanCollide = false | |
790 | Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0) | |
791 | local Joint = Instance.new("Rotate") | |
792 | Joint.Name = "RightHip" | |
793 | Joint.Part0 = Torso | |
794 | Joint.Part1 = Limb | |
795 | Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
796 | Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
797 | Joint.Parent = Torso | |
798 | ||
799 | local B = Instance.new("Part") | |
800 | B.TopSurface = 0 | |
801 | B.BottomSurface = 0 | |
802 | B.formFactor = "Symmetric" | |
803 | B.Size = Vector3.new(1, 1, 1) | |
804 | B.Transparency = 1 | |
805 | B.CanCollide = true | |
806 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
807 | B.Parent = playa | |
808 | local W = Instance.new("Weld") | |
809 | W.Part0 = Limb | |
810 | W.Part1 = B | |
811 | W.C0 = CFrame.new(0, -0.5, 0) | |
812 | W.Parent = Limb | |
813 | end | |
814 | local Limb = playa:FindFirstChild("Left Leg") | |
815 | if Limb then | |
816 | Limb.CanCollide = false | |
817 | Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0) | |
818 | local Joint = Instance.new("Rotate") | |
819 | Joint.Name = "LeftHip" | |
820 | Joint.Part0 = Torso | |
821 | Joint.Part1 = Limb | |
822 | Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
823 | Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
824 | Joint.Parent = Torso | |
825 | ||
826 | local B = Instance.new("Part") | |
827 | B.TopSurface = 0 | |
828 | B.BottomSurface = 0 | |
829 | if zombiemode == false or override then | |
830 | B.CanCollide = true | |
831 | end | |
832 | B.formFactor = "Symmetric" | |
833 | B.Size = Vector3.new(1, 1, 1) | |
834 | B.Transparency = 1 | |
835 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
836 | B.Parent = playa | |
837 | local W = Instance.new("Weld") | |
838 | W.Part0 = Limb | |
839 | W.Part1 = B | |
840 | W.C0 = CFrame.new(0, -0.5, 0) | |
841 | W.Parent = Limb | |
842 | end | |
843 | --[[ | |
844 | local Bar = Instance.new("Part") | |
845 | Bar.TopSurface = 0 | |
846 | Bar.BottomSurface = 0 | |
847 | Bar.formFactor = "Symmetric" | |
848 | Bar.Size = Vector3.new(1, 1, 1) | |
849 | Bar.Transparency = 1 | |
850 | Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0) | |
851 | Bar.Parent = playa | |
852 | local Weld = Instance.new("Weld") | |
853 | Weld.Part0 = Torso | |
854 | Weld.Part1 = Bar | |
855 | Weld.C0 = CFrame.new(0, 0.5, 0) | |
856 | Weld.Parent = Torso | |
857 | --]] | |
858 | playa.Parent = Gibs | |
859 | if kneef and explode == nil then | |
860 | local coru = coroutine.wrap(function() | |
861 | if playa:FindFirstChild(hitz) then | |
862 | local uno = Instance.new('Part',workspace) | |
863 | local dos = Instance.new('Part',workspace) | |
864 | uno.CFrame = playa:FindFirstChild(hitz).CFrame | |
865 | dos.CFrame = kneef["big ass knife"].CFrame | |
866 | local weld = Instance.new('Weld',kneef["big ass knife"]) | |
867 | weld.Part0 = playa:FindFirstChild(hitz) | |
868 | weld.Part1 = kneef["big ass knife"] | |
869 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
870 | uno:Destroy() | |
871 | dos:Destroy() | |
872 | playa:FindFirstChild(hitz).Anchored = false | |
873 | for i, v in pairs(kneef:GetChildren()) do | |
874 | if v:IsA('BasePart') then | |
875 | v.Anchored = false | |
876 | end | |
877 | end | |
878 | if explode == nil or explode == false then | |
879 | local bleedpart = Instance.new("Part", kneef) | |
880 | bleedpart.Size = Vector3.new(0.2, 0.2, 0.2) | |
881 | bleedpart.Color = Color3.new(115/225, 115/225, 115/225) | |
882 | bleedpart.CanCollide = false | |
883 | bleedpart.Position = Head.Position + Vector3.new(0, 1, 0) | |
884 | bleedpart.Transparency = 1 | |
885 | ||
886 | local bleedpartweld = Instance.new("Weld", kneef["big ass knife"]) | |
887 | bleedpartweld.Part0 = kneef["big ass knife"] | |
888 | bleedpartweld.Part1 = bleedpart | |
889 | bleedpartweld.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(90),0,0) | |
890 | local coru = coroutine.wrap(function() | |
891 | bleed(bleedpart) | |
892 | end) | |
893 | coru() | |
894 | end | |
895 | end | |
896 | if zombiemode == false or override then | |
897 | wait() | |
898 | end | |
899 | if kneef:FindFirstChild('Grab') and kneef.Grab:FindFirstChildOfClass('BodyVelocity') then | |
900 | kneef.Grab:FindFirstChildOfClass('BodyVelocity'):Destroy() | |
901 | end | |
902 | end) | |
903 | coru() | |
904 | end | |
905 | if explode then | |
906 | local movevector = CFrame.new(explode.Position,Torso.Position).lookVector | |
907 | local repulse = Instance.new('BodyForce',Torso) | |
908 | repulse.Force = movevector*10000 + Vector3.new(0,5000,0) | |
909 | game.Debris:AddItem(repulse,0.05) | |
910 | end | |
911 | if charred and zombiemode == false then | |
912 | for i,v in pairs(playa:GetChildren()) do | |
913 | if v:IsA('BasePart') then | |
914 | v.BrickColor = BrickColor.Black() | |
915 | local fire = Instance.new('Fire',v) | |
916 | fire.Size = 5 | |
917 | fire.Heat = 5 | |
918 | elseif v:IsA('Accessory') then | |
919 | for a,c in pairs(v:GetChildren()) do | |
920 | if c:IsA('BasePart') then | |
921 | c.BrickColor = BrickColor.Black() | |
922 | local fire = Instance.new('Fire',v) | |
923 | fire.Size = 5 | |
924 | fire.Heat = 5 | |
925 | for o,p in pairs(c:GetChildren()) do | |
926 | if p:IsA("SpecialMesh") then | |
927 | p.TextureId = "" | |
928 | end | |
929 | end | |
930 | end | |
931 | end | |
932 | end | |
933 | end | |
934 | end | |
935 | if soundy then | |
936 | local sound = Instance.new('Sound',Head) | |
937 | sound.SoundId = 'rbxassetid://903640857' | |
938 | sound.Volume = 1 | |
939 | sound:Play() | |
940 | sound.Ended:connect(function() | |
941 | sound:Destroy() | |
942 | local ambient = Instance.new('Sound',Head) | |
943 | ambient.Volume = 0.25 | |
944 | ambient.Looped = true | |
945 | ambient.SoundId = 'rbxassetid://903641031' | |
946 | ambient:Play() | |
947 | end) | |
948 | end | |
949 | if override then | |
950 | if (string.len(hum2.Parent.Name) < 9 or string.sub(hum2.Parent.Name,string.len(hum2.Parent.Name)-8,string.len(hum2.Parent.Name)) ~= "'s Zombie") and zombiemode == true and #zombies < 10 then | |
951 | local coru = coroutine.wrap(function() | |
952 | wait(4.5) | |
953 | hum2.Parent.Name = hum2.Parent.Name.."'s Zombie" | |
954 | hum2.HipHeight = 0.2 | |
955 | wait(0.5) | |
956 | killz(hum2.Parent,"Head",nil,nil,false,false,false,false) | |
957 | end) | |
958 | coru() | |
959 | else | |
960 | game:GetService('Debris'):AddItem(playa, 12) | |
961 | end | |
962 | else | |
963 | hum2.Health = 0 | |
964 | table.insert(zombies,playa) | |
965 | local attack = Instance.new('Sound',Head) | |
966 | attack.SoundId = 'rbxassetid://903641424' | |
967 | attack.Volume = 2 | |
968 | for i,v in pairs(playa:GetChildren()) do | |
969 | if v:IsA('BasePart') and v:FindFirstChildOfClass('TouchTransmitter') == nil then | |
970 | v.Touched:connect(function(hit) | |
971 | if hit.Parent and hit.Parent:FindFirstChildOfClass('Humanoid') then | |
972 | local found = false | |
973 | if hit.Parent == player.Character then | |
974 | found = true | |
975 | end | |
976 | for a,c in pairs(zombies) do | |
977 | if c == hit.Parent then | |
978 | found = true | |
979 | end | |
980 | end | |
981 | if found == false and hit.Parent:FindFirstChildOfClass('Humanoid').Health > 0 then | |
982 | attack:Play() | |
983 | if hit.Parent:FindFirstChildOfClass('Humanoid').Health - 2 <= 0 then | |
984 | hit.Parent:FindFirstChildOfClass('Humanoid').Health = 0 | |
985 | wait() | |
986 | killz(hit.Parent,"Head") | |
987 | else | |
988 | hit.Parent:FindFirstChildOfClass('Humanoid'):TakeDamage(2) | |
989 | end | |
990 | end | |
991 | end | |
992 | end) | |
993 | end | |
994 | end | |
995 | local coru = coroutine.wrap(function() | |
996 | wait(2) | |
997 | for i,v in pairs(playa:GetChildren()) do | |
998 | if v:IsA('BasePart') then | |
999 | for a,c in pairs(v:GetChildren()) do | |
1000 | if c:IsA('Fire') or c:IsA('ParticleEmitter') then | |
1001 | c:Destroy() | |
1002 | end | |
1003 | end | |
1004 | elseif v:IsA('Accessory') then | |
1005 | for a,c in pairs(v:GetChildren()) do | |
1006 | if c:IsA('BasePart') then | |
1007 | for b,d in pairs(c:GetChildren()) do | |
1008 | if d:IsA('Fire') or d:IsA('ParticleEmitter') then | |
1009 | d:Destroy() | |
1010 | end | |
1011 | end | |
1012 | end | |
1013 | end | |
1014 | end | |
1015 | end | |
1016 | end) | |
1017 | coru() | |
1018 | end | |
1019 | end | |
1020 | end | |
1021 | ||
1022 | mouse.KeyDown:connect(function(key) | |
1023 | if key == "t" and mouse.Target then | |
1024 | local hum = mouse.Target.Parent:FindFirstChildOfClass('Humanoid') | |
1025 | if hum == nil then hum = mouse.Target.Parent.Parent:FindFirstChildOfClass('Humanoid') end | |
1026 | if curpoint == nil then | |
1027 | if hum and hum.Parent:FindFirstChild('Head') then | |
1028 | curpart = hum.Parent.Head | |
1029 | else | |
1030 | curpart = nil | |
1031 | curpoint = mouse.Hit.p | |
1032 | end | |
1033 | if player.PlayerGui:FindFirstChild('Notification') then player.PlayerGui.Notification:Destroy() end | |
1034 | notify("ZOMBIE TARGET SET",false) | |
1035 | else | |
1036 | curpart = nil | |
1037 | curpoint = nil | |
1038 | if player.PlayerGui:FindFirstChild('Notification') then player.PlayerGui.Notification:Destroy() end | |
1039 | notify("ZOMBIE TARGET REMOVED",false) | |
1040 | end | |
1041 | elseif key == "y" then | |
1042 | for o,p in pairs(zombies) do | |
1043 | local coru = coroutine.wrap(function() | |
1044 | if p:FindFirstChild('Torso') then | |
1045 | killz(p,"Head",nil,nil,false,false,false,true) | |
1046 | else | |
1047 | table.remove(zombies,o) | |
1048 | end | |
1049 | end) | |
1050 | coru() | |
1051 | wait() | |
1052 | end | |
1053 | for i,v in pairs(zombies) do | |
1054 | table.remove(zombies,i) | |
1055 | end | |
1056 | if player.PlayerGui:FindFirstChild('Notification') then player.PlayerGui.Notification:Destroy() end | |
1057 | notify("ZOMBIES TERMINATED",false) | |
1058 | end | |
1059 | end) | |
1060 | ||
1061 | function nub() | |
1062 | local me = player.Character | |
1063 | local point = me.HumanoidRootPart | |
1064 | local playergui = player.PlayerGui | |
1065 | local rightshoulderz = me.Torso["Right Shoulder"]:Clone() | |
1066 | local leftshoulderz = me.Torso["Left Shoulder"]:Clone() | |
1067 | local torsojoint = me.HumanoidRootPart["RootJoint"]:Clone() | |
1068 | local lefthipz = me.Torso["Left Hip"]:Clone() | |
1069 | local righthipz = me.Torso["Right Hip"]:Clone() | |
1070 | local mode = "kill" | |
1071 | local lerpz = false | |
1072 | local active = false | |
1073 | local acting = false | |
1074 | local hit = false | |
1075 | local canClick = true | |
1076 | local stabbing = false | |
1077 | local grabbing = false | |
1078 | local finishing = false | |
1079 | local kyssing = false | |
1080 | local canbackgroundmusic = true | |
1081 | local cancolorfilter = true | |
1082 | local spinboolean = false | |
1083 | local grabbed = nil | |
1084 | local doing = false | |
1085 | local rightshoulder = nil | |
1086 | local leftshoulder = nil | |
1087 | local headweld = nil | |
1088 | local usable = true | |
1089 | finishnum = 1 | |
1090 | ||
1091 | ||
1092 | ||
1093 | ||
1094 | -- 1 - bitch ass knife | |
1095 | local obj1 = Instance.new("Model") | |
1096 | obj1.Name = "bitch ass knife" | |
1097 | obj1.Parent = game.Workspace | |
1098 | ||
1099 | -- 2 - Grab | |
1100 | local obj2 = Instance.new("Part") | |
1101 | obj2.CFrame = CFrame.new(Vector3.new(20.4525032, 6.14501333, -134.399979)) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126) | |
1102 | obj2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
1103 | obj2.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
1104 | obj2.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
1105 | obj2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
1106 | obj2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
1107 | obj2.Material = Enum.Material.WoodPlanks | |
1108 | obj2.Size = Vector3.new(3, 0.30, 0.30) | |
1109 | obj2.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
1110 | obj2.Anchored = true | |
1111 | obj2.BrickColor = BrickColor.new("Pine Cone") | |
1112 | obj2.Friction = 0.30000001192093 | |
1113 | obj2.Shape = Enum.PartType.Cylinder | |
1114 | obj2.Name = "Grab" | |
1115 | obj2.Parent = obj1 | |
1116 | ||
1117 | ||
1118 | ||
1119 | ||
1120 | ||
1121 | -- 4 - Grab | |
1122 | local obj4 = Instance.new("Part") | |
1123 | obj4.CFrame = CFrame.new(Vector3.new(18.9525032, 6.14501333, -134.399979)) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126) | |
1124 | obj4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
1125 | obj4.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
1126 | obj4.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
1127 | obj4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
1128 | obj4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
1129 | obj4.Material = Enum.Material.DiamondPlate | |
1130 | obj4.Size = Vector3.new(0.2, 0.31, 0.31) | |
1131 | obj4.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
1132 | obj4.Anchored = true | |
1133 | ||
1134 | obj4.Friction = 0.30000001192093 | |
1135 | obj4.Shape = Enum.PartType.Cylinder | |
1136 | obj4.Name = "Grab" | |
1137 | obj4.Parent = obj1 | |
1138 | ||
1139 | -- 5 - Grab | |
1140 | local obj4 = Instance.new("Part") | |
1141 | obj4.CFrame = CFrame.new(Vector3.new(20.4525032, 6.14501333, -134.399979)) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126) | |
1142 | obj4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
1143 | obj4.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
1144 | obj4.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
1145 | obj4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
1146 | obj4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
1147 | obj4.Material = Enum.Material.DiamondPlate | |
1148 | obj4.Size = Vector3.new(1, 0.31, 0.31) | |
1149 | obj4.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
1150 | obj4.Anchored = true | |
1151 | ||
1152 | obj4.Friction = 0.30000001192093 | |
1153 | obj4.Shape = Enum.PartType.Cylinder | |
1154 | obj4.Name = "Grab" | |
1155 | obj4.Parent = obj1 | |
1156 | ||
1157 | -- 5 - Grab | |
1158 | local obj4 = Instance.new("Part") | |
1159 | obj4.CFrame = CFrame.new(Vector3.new(21.8625032, 6.14501333, -134.399979)) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126) | |
1160 | obj4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
1161 | obj4.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
1162 | obj4.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
1163 | obj4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
1164 | obj4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
1165 | obj4.Material = Enum.Material.DiamondPlate | |
1166 | obj4.Size = Vector3.new(0.2, 0.31, 0.31) | |
1167 | obj4.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
1168 | obj4.Anchored = true | |
1169 | ||
1170 | obj4.Friction = 0.30000001192093 | |
1171 | ||
1172 | obj4.Shape = Enum.PartType.Cylinder | |
1173 | obj4.Name = "Grab" | |
1174 | obj4.Parent = obj1 | |
1175 | ||
1176 | ||
1177 | ||
1178 | -- 8 - big ass knife | |
1179 | local obj8 = Instance.new("Part") | |
1180 | obj8.CFrame = CFrame.new(Vector3.new(18.4375095, 6.14502859, -134.401321)) * CFrame.Angles(0, 1.5707963705063, 0) | |
1181 | obj8.Transparency = 1 | |
1182 | obj8.Size = Vector3.new(0, 0, 0) | |
1183 | obj8.Material = "Air" | |
1184 | obj8.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
1185 | obj8.Anchored = true | |
1186 | ||
1187 | obj8.Name = "big ass knife" | |
1188 | obj8.Parent = obj1 | |
1189 | ||
1190 | ||
1191 | ||
1192 | -- 10 - big ass knife | |
1193 | local obj10 = Instance.new("Part") | |
1194 | obj10.CFrame = CFrame.new(Vector3.new(19.7425137, 6.14502859, -134.401321)) * CFrame.Angles(0, 1.5707963705063, 0) | |
1195 | ||
1196 | obj10.Size = Vector3.new(0, 0, 0) | |
1197 | ||
1198 | obj10.Anchored = true | |
1199 | obj10.Material = "Air" | |
1200 | obj10.Name = "big ass knife" | |
1201 | obj10.Parent = obj1 | |
1202 | local knife = obj10 | |
1203 | ||
1204 | ||
1205 | -- 32 - redstuff | |
1206 | local obj32 = Instance.new("Part") | |
1207 | obj32.CFrame = CFrame.new(Vector3.new(19.9470005, 5.9749999, -134.399994)) * CFrame.Angles(-0, 0, -0) | |
1208 | ||
1209 | obj32.Size = Vector3.new(0, 0, 0) | |
1210 | obj32.Material = "Air" | |
1211 | obj32.Name = "redstuff" | |
1212 | obj32.Anchored = true | |
1213 | obj32.Parent = obj1 | |
1214 | ||
1215 | ||
1216 | ||
1217 | ||
1218 | local audio = Instance.new('Sound',knife) | |
1219 | audio.Volume = 0 | |
1220 | ||
1221 | local audio2 = Instance.new('Sound',knife) | |
1222 | audio2.Volume = 0 | |
1223 | ||
1224 | local holdpart = Instance.new("Part") | |
1225 | holdpart.Parent = me | |
1226 | holdpart.Size = Vector3.new(0.4, 0.2, 0.2) | |
1227 | holdpart.Position = me.Head.Position + Vector3.new(0, 1, 0) | |
1228 | holdpart.BrickColor = BrickColor.new("Burnt Sienna") | |
1229 | holdpart.Material = "Air" | |
1230 | ||
1231 | local previous = nil | |
1232 | for i,v in pairs(obj1:GetChildren()) do | |
1233 | if v:IsA('BasePart') then | |
1234 | if previous then | |
1235 | local weld = Instance.new('Weld',v) | |
1236 | weld.Part0 = v | |
1237 | weld.Part1 = previous | |
1238 | weld.C0 = v.CFrame:inverse() * previous.CFrame | |
1239 | previous.Anchored = false | |
1240 | previous.CanCollide = false | |
1241 | local vee = v | |
1242 | weld.AncestryChanged:connect(function(mez,par) | |
1243 | wait() | |
1244 | weld.Parent = vee | |
1245 | end) | |
1246 | end | |
1247 | previous = v | |
1248 | end | |
1249 | end | |
1250 | previous.Anchored = false | |
1251 | previous.CanCollide = false | |
1252 | ||
1253 | local holdpartweld = Instance.new("Weld", me.Torso) | |
1254 | holdpartweld.Part0 = me.Torso | |
1255 | holdpartweld.Part1 = holdpart | |
1256 | holdpartweld.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(-1, -0.8, 0.15) | |
1257 | ||
1258 | holdpartweld.AncestryChanged:connect(function(mez,par) | |
1259 | if par ~= me.Torso then | |
1260 | wait() | |
1261 | holdpartweld.Parent = me.Torso | |
1262 | end | |
1263 | end) | |
1264 | ||
1265 | local knifeweld = Instance.new('Weld',me.Torso) | |
1266 | knifeweld.Part0 = me.Torso | |
1267 | knifeweld.Part1 = obj2 | |
1268 | knifeweld.C1 = CFrame.Angles(0,math.rad(90),0) * CFrame.new(1, 0.8, 0.55) | |
1269 | knifeweld.AncestryChanged:connect(function(mez,par) | |
1270 | if par ~= me.Torso then | |
1271 | wait() | |
1272 | knifeweld.Parent = me.Torso | |
1273 | end | |
1274 | end) | |
1275 | ||
1276 | function equip() | |
1277 | local doit = coroutine.wrap(function() | |
1278 | if me:FindFirstChild('Right Arm') and me:FindFirstChild('Torso') then | |
1279 | acting = true | |
1280 | local arm = me["Right Arm"] | |
1281 | local arm2 = me["Left Arm"] | |
1282 | local tors = me.Torso | |
1283 | local weld = Instance.new('Weld',arm) | |
1284 | weld.Part0 = arm | |
1285 | weld.Part1 = tors | |
1286 | weld.C0 = CFrame.new(-1.5,0,0) | |
1287 | local weld2 = Instance.new("Weld", arm2) | |
1288 | weld2.Part0 = arm2 | |
1289 | weld2.Part1 = tors | |
1290 | weld2.C0 = CFrame.new(1.5, 0, 0) | |
1291 | wait() | |
1292 | ||
1293 | for i = 0,1,0.1 do | |
1294 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld == nil then return end | |
1295 | weld.C0 = weld.C0:lerp(CFrame.new(-1.5,0,0),i) | |
1296 | wait() | |
1297 | end | |
1298 | weld:Destroy() | |
1299 | weld2:Remove() | |
1300 | if tors ~= nil then | |
1301 | rightshoulderz:Clone().Parent = me.Torso | |
1302 | leftshoulderz:Clone().Parent = me.Torso | |
1303 | end | |
1304 | end | |
1305 | acting = false | |
1306 | end) | |
1307 | doit() | |
1308 | end | |
1309 | ||
1310 | ||
1311 | function bleedout() | |
1312 | local doit = coroutine.wrap(function() | |
1313 | local targe = grabbed | |
1314 | local num = 0 | |
1315 | while targe and targe:FindFirstChildOfClass('Humanoid') and targe:FindFirstChildOfClass('Humanoid').Health > 0 and num < 11 do | |
1316 | if targe.Head:FindFirstChild('Died') then | |
1317 | tone = math.random(6, 12) / 10 | |
1318 | targe.Head.Died.PlaybackSpeed = tone | |
1319 | targe.Head.Died:Play() | |
1320 | else | |
1321 | local deathsound = Instance.new('Sound',targe.Head) | |
1322 | deathsound.Name = "Died" | |
1323 | deathsound.SoundId = 'rbxasset://sounds/uuhhh.mp3' | |
1324 | deathsound.Volume = 0.65 | |
1325 | deathsound.EmitterSize = 5 | |
1326 | deathsound.MaxDistance = 150 | |
1327 | tone = math.random(5, 15) / 10 | |
1328 | targe.Head.Died.PlaybackSpeed = tone | |
1329 | targe.Head.Died:Play() | |
1330 | end | |
1331 | targe:FindFirstChildOfClass('Humanoid').Health = targe:FindFirstChildOfClass('Humanoid').Health - 7 | |
1332 | num = num+1 | |
1333 | wait(0.325) | |
1334 | end | |
1335 | targe:FindFirstChildOfClass('Humanoid').Health = 0 | |
1336 | wait() | |
1337 | killz(targe,'Head',nil,nil,false,true) | |
1338 | wait(2) | |
1339 | targe:Remove() | |
1340 | end) | |
1341 | doit() | |
1342 | end | |
1343 | ||
1344 | function liedown() | |
1345 | local doit = coroutine.wrap(function() | |
1346 | local targe = grabbed | |
1347 | wait(2) | |
1348 | if targe and targe:FindFirstChildOfClass('Humanoid') then | |
1349 | targe:FindFirstChildOfClass('Humanoid').PlatformStand = false | |
1350 | end | |
1351 | end) | |
1352 | doit() | |
1353 | end | |
1354 | ||
1355 | ||
1356 | ||
1357 | ||
1358 | ||
1359 | ||
1360 | function throw() | |
1361 | if grabbed.Torso:FindFirstChild("TargetWeld") == nil or grabbed:FindFirstChildOfClass('Humanoid').Health <= 0 then return end | |
1362 | paralyzed = false | |
1363 | targetweld = grabbed.Torso.TargetWeld | |
1364 | local ree = grabbed:FindFirstChild("Left Arm") | |
1365 | targetweld2 =nil | |
1366 | if ree and ree:FindFirstChild("Weld") then | |
1367 | targetweld2 = ree.Weld | |
1368 | end | |
1369 | ||
1370 | for i, v in pairs(grabbed:GetChildren()) do | |
1371 | if v.Name == "Part" then | |
1372 | v.CanCollide = true | |
1373 | end | |
1374 | end | |
1375 | ||
1376 | ||
1377 | local doit = coroutine.wrap(function() | |
1378 | local arm = me["Right Arm"] | |
1379 | local tors = grabbed.Torso | |
1380 | local arm2 = me["Left Arm"] | |
1381 | local targrightshoulder = rightshoulder | |
1382 | ||
1383 | local targleftshoulder = leftshoulder | |
1384 | if arm:FindFirstChildOfClass('Weld') == nil or arm2:FindFirstChildOfClass('Weld') == nil then return end | |
1385 | doing = true | |
1386 | local weld2 = arm:FindFirstChildOfClass('Weld') | |
1387 | local weld3 = arm2:FindFirstChildOfClass('Weld') | |
1388 | local humanroot = me.HumanoidRootPart | |
1389 | ||
1390 | for i = 0,1,0.2 do | |
1391 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil or weld3 == nil then return end | |
1392 | weld2.C0 = weld2.C0:lerp(CFrame.new(-0.9, 1.7, -0.5)* CFrame.Angles(-0.25, 1, -1.4), i) | |
1393 | weld3.C0 = weld3.C0:lerp(CFrame.new(0.8, 1.6, -0.5)* CFrame.Angles(-1.5, -1, 1.1), i) | |
1394 | targetweld.C0 = targetweld.C0:lerp(CFrame.new(0, 1.5, 0)*CFrame.Angles(0, 0, 0), i) | |
1395 | if targetweld2 then | |
1396 | targetweld2.C0 = targetweld2.C0:lerp(CFrame.new(-1.5, 0, 0)*CFrame.Angles(0, 0, 0), i) | |
1397 | end | |
1398 | wait() | |
1399 | end | |
1400 | ||
1401 | audio:Stop() | |
1402 | audio.SoundId = "rbxassetid://536642316" | |
1403 | tone = math.random(1, 3) | |
1404 | if tone == 1 then audio.PlaybackSpeed = 0.8 audio.TimePosition = 0.08 end | |
1405 | if tone == 2 then audio.PlaybackSpeed = 1 audio.TimePosition = 0.1 end | |
1406 | if tone == 3 then audio.PlaybackSpeed = 1.2 audio.TimePosition = 0.12 end | |
1407 | audio:Play() | |
1408 | ||
1409 | local slightthrow = Instance.new("BodyVelocity", grabbed.Torso) | |
1410 | slightthrow.Velocity = Vector3.new(0,20,0)+(me.Torso.CFrame.lookVector*20) | |
1411 | slightthrow.P = 5000 | |
1412 | slightthrow.MaxForce = Vector3.new(9000001,9000001,9000001) | |
1413 | local point = grabbed.Torso.Position | |
1414 | local aaaaaa = grabbed | |
1415 | liedown() | |
1416 | ||
1417 | rightshoulderz:Clone().Parent = me.Torso | |
1418 | leftshoulderz:Clone().Parent = me.Torso | |
1419 | grabbed = nil | |
1420 | ||
1421 | if humanroot:FindFirstChild('Holder') then | |
1422 | humanroot.Holder:Destroy() | |
1423 | end | |
1424 | local coru = coroutine.wrap(function() | |
1425 | while aaaaaa and aaaaaa:FindFirstChild('Torso') and (aaaaaa.Torso.Position-point).magnitude < 5 do wait(0.001) end | |
1426 | slightthrow:Remove() | |
1427 | end) | |
1428 | coru() | |
1429 | ||
1430 | for i = 0,1,0.05 do | |
1431 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil or weld3 == nil then return end | |
1432 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,0,0),i) | |
1433 | weld3.C0 = weld3.C0:lerp(CFrame.new(1.5,0,0),i) | |
1434 | wait() | |
1435 | end | |
1436 | weld2:Destroy() | |
1437 | weld3:Destroy() | |
1438 | targetweld:Remove() | |
1439 | if targetweld2 then | |
1440 | targetweld2:Remove() | |
1441 | end | |
1442 | if rightshoulder then | |
1443 | rightshoulder:Clone().Parent = tors | |
1444 | end | |
1445 | if leftshoulder then | |
1446 | leftshoulder:Clone().Parent = tors | |
1447 | end | |
1448 | headweld:Clone().Parent = tors | |
1449 | rightshoulderz:Clone().Parent = me.Torso | |
1450 | leftshoulderz:Clone().Parent = me.Torso | |
1451 | acting = false | |
1452 | canClick = true | |
1453 | doing = false | |
1454 | end) | |
1455 | doit() | |
1456 | end | |
1457 | ||
1458 | ||
1459 | ||
1460 | function fling() | |
1461 | local doit = coroutine.wrap(function() | |
1462 | if me:FindFirstChild('Right Arm') and me:FindFirstChild('Torso') and me:FindFirstChild('HumanoidRootPart') then | |
1463 | acting = true | |
1464 | for i=1,finishnum do | |
1465 | local weld2 = Instance.new('Weld',me["Right Arm"]) | |
1466 | weld2.Part0 = me["Right Arm"] | |
1467 | weld2.Part1 = me["Torso"] | |
1468 | weld2.C0 = CFrame.new(-1.5,0,0) | |
1469 | if finishnum == 1 then | |
1470 | for i = 0,1,0.05 do | |
1471 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil then return end | |
1472 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,0.9,-0.5)*CFrame.Angles(-math.pi/0.75,-math.pi/8,0),i) | |
1473 | wait(0.01) | |
1474 | end | |
1475 | end | |
1476 | audio.SoundId = "rbxassetid://166083610" | |
1477 | audio.PlaybackSpeed = 1 | |
1478 | audio.TimePosition = 0.1 | |
1479 | audio:Play() | |
1480 | if finishnum == 1 then | |
1481 | for i = 0,1,0.5 do | |
1482 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil then return end | |
1483 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,1.2,0.1)*CFrame.Angles(math.pi/0.9,0,0),i) | |
1484 | wait(0.001) | |
1485 | end | |
1486 | end | |
1487 | weld2.C0 = CFrame.new(-1.5,1.2,0.1)*CFrame.Angles(math.pi/0.9,0,0) | |
1488 | local knofe = obj1:Clone() | |
1489 | for i, v in pairs(obj1:GetChildren()) do | |
1490 | if v:IsA('BasePart') then | |
1491 | v.Transparency = 1 | |
1492 | end | |
1493 | end | |
1494 | knofe.Parent = workspace | |
1495 | knofe.Name = "Projectile" | |
1496 | knofe.Grab.CFrame = CFrame.new(knofe.Grab.CFrame.p, mouse.Hit.p)*CFrame.Angles(0,math.pi/2,0) | |
1497 | ||
1498 | local heck = Instance.new('BodyVelocity',knofe.Grab) | |
1499 | heck.Velocity = (knofe.Grab.CFrame*CFrame.Angles(0,math.pi/-2,0)).lookVector*120 | |
1500 | local coru = coroutine.wrap(function() | |
1501 | wait(0.45) | |
1502 | if heck then | |
1503 | heck:Destroy() | |
1504 | end | |
1505 | end) | |
1506 | coru() | |
1507 | local able = true | |
1508 | knofe["big ass knife"].Touched:connect(function(hit) | |
1509 | if hit.Parent and hit.Parent:FindFirstChildOfClass('Humanoid') and hit.Transparency < 1 and knofe.Grab.CanCollide == false and hit.Parent ~= me and hit.Parent.Parent ~= me then | |
1510 | local thing = hit.Parent:FindFirstChildOfClass('Humanoid') | |
1511 | local ree = hit.Parent | |
1512 | if thing == nil then | |
1513 | ree = hit.Parent.Parent | |
1514 | end | |
1515 | if ree:FindFirstChildOfClass('Humanoid').Health > 0 then | |
1516 | ||
1517 | game:GetService('Debris'):AddItem(knofe,5) | |
1518 | tone = math.random(1, 3) | |
1519 | local sound = Instance.new('Sound',knofe.Grab) | |
1520 | if tone == 1 then sound.SoundId = "rbxassetid://429400881" end | |
1521 | if tone == 2 then sound.SoundId = "rbxassetid://429400881" end | |
1522 | if tone == 3 then sound.SoundId = "rbxassetid://429400881" end | |
1523 | sound.PlaybackSpeed = 1 | |
1524 | sound:Play() | |
1525 | for i, v in pairs(knofe:GetChildren()) do | |
1526 | if v:IsA('BasePart') then | |
1527 | v.CanCollide = true | |
1528 | v.Anchored = true | |
1529 | end | |
1530 | end | |
1531 | hit.Anchored = true | |
1532 | if ree:FindFirstChildOfClass('Humanoid') and hit.Name == "Torso" or hit.Name == "Head" then | |
1533 | ree:FindFirstChildOfClass('Humanoid').Health = 0 | |
1534 | end | |
1535 | wait() | |
1536 | killz(ree,hit.Name,knofe) | |
1537 | else | |
1538 | ||
1539 | heck.Velocity = Vector3.new(0,0,0) | |
1540 | heck:Destroy() | |
1541 | game:GetService('Debris'):AddItem(knofe,5) | |
1542 | tone = math.random(1, 3) | |
1543 | local sound = Instance.new('Sound',knofe.Grab) | |
1544 | if tone == 1 then sound.SoundId = "rbxassetid://220833967" end | |
1545 | if tone == 2 then sound.SoundId = "rbxassetid://220833976" end | |
1546 | if tone == 3 then sound.SoundId = "rbxassetid://220834000" end | |
1547 | sound.PlaybackSpeed = 1 | |
1548 | sound:Play() | |
1549 | for i, v in pairs(knofe:GetChildren()) do | |
1550 | if v:IsA('BasePart') then | |
1551 | v.Anchored = false | |
1552 | end | |
1553 | end | |
1554 | hit.Anchored = true | |
1555 | wait(0.001) | |
1556 | hit.Anchored = false | |
1557 | for i, v in pairs(knofe:GetChildren()) do | |
1558 | if v:IsA('BasePart') then | |
1559 | v.Anchored = false | |
1560 | end | |
1561 | end | |
1562 | if knofe then | |
1563 | local coru = coroutine.wrap(function() | |
1564 | if hit then | |
1565 | local uno = Instance.new('Part',workspace) | |
1566 | local dos = Instance.new('Part',workspace) | |
1567 | uno.CFrame = hit.CFrame | |
1568 | dos.CFrame = knofe["big ass knife"].CFrame | |
1569 | local weld = Instance.new('Weld',knofe["big ass knife"]) | |
1570 | weld.Part0 = hit | |
1571 | weld.Part1 = knofe["big ass knife"] | |
1572 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
1573 | uno:Destroy() | |
1574 | dos:Destroy() | |
1575 | end | |
1576 | end) | |
1577 | coru() | |
1578 | end | |
1579 | end | |
1580 | elseif hit.Parent and hit.Parent ~= me and hit.Parent.Parent ~= me and hit.CanCollide and knofe.Grab.CanCollide == false then | |
1581 | if hit.Transparency and (hit.Transparency<=0.285 or hit:GetMass()<=3000) then | |
1582 | ||
1583 | local sound = Instance.new('Sound',knofe.Grab) | |
1584 | sound.SoundId = 'rbxassetid://267585646' | |
1585 | sound:Play() | |
1586 | for i,v in pairs(knofe:GetChildren()) do | |
1587 | if v:IsA('BasePart') then | |
1588 | v.Anchored = true | |
1589 | end | |
1590 | end | |
1591 | wait() | |
1592 | heck.Velocity = Vector3.new(0,0,0) | |
1593 | heck:Destroy() | |
1594 | local uno = Instance.new('Part',workspace) | |
1595 | local dos = Instance.new('Part',workspace) | |
1596 | uno.CFrame = hit.CFrame | |
1597 | dos.CFrame = knofe["big ass knife"].CFrame | |
1598 | local weld = Instance.new('Weld',knofe["big ass knife"]) | |
1599 | weld.Part0 = hit | |
1600 | weld.Part1 = knofe["big ass knife"] | |
1601 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
1602 | uno:Destroy() | |
1603 | dos:Destroy() | |
1604 | for i,v in pairs(knofe:GetChildren()) do | |
1605 | if v:IsA('BasePart') then | |
1606 | v.Anchored = false | |
1607 | end | |
1608 | end | |
1609 | game:GetService('Debris'):AddItem(knofe,5) | |
1610 | for i,v in pairs(knofe:GetChildren()) do | |
1611 | if v:IsA('BasePart') then | |
1612 | v.CanCollide = true | |
1613 | end | |
1614 | end | |
1615 | end | |
1616 | if hit.Parent and hit.Transparency>0.285 and able == true and hit:GetMass()<3000 and hit.Parent:FindFirstChildOfClass('Humanoid') == nil and (hit.Parent.Parent == nil or hit.Parent.Parent:FindFirstChildOfClass('Humanoid') == nil) then | |
1617 | ||
1618 | able = false | |
1619 | local sound = Instance.new('Sound',knofe.Grab) | |
1620 | sound.SoundId = 'rbxassetid://144884907' | |
1621 | sound:Play() | |
1622 | local coru = coroutine.wrap(function() | |
1623 | ||
1624 | end) | |
1625 | coru() | |
1626 | end | |
1627 | end | |
1628 | end) | |
1629 | if finishnum == 1 then | |
1630 | for i= 0,1,0.1 do | |
1631 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil then return end | |
1632 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,0,0),i) | |
1633 | wait(0.001) | |
1634 | end | |
1635 | else | |
1636 | for i= 0,1,0.5 do | |
1637 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil then return end | |
1638 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,0,0),i) | |
1639 | wait(0.001) | |
1640 | end | |
1641 | end | |
1642 | for i,v in pairs(obj1:GetChildren()) do | |
1643 | if v:IsA('BasePart') then | |
1644 | v.Transparency = 0 | |
1645 | end | |
1646 | end | |
1647 | weld2:Destroy() | |
1648 | rightshoulderz:Clone().Parent = me.Torso | |
1649 | end | |
1650 | acting = false | |
1651 | canClick = true | |
1652 | end | |
1653 | end) | |
1654 | doit() | |
1655 | end | |
1656 | ||
1657 | ||
1658 | ||
1659 | active = true | |
1660 | ||
1661 | equip() | |
1662 | ||
1663 | ||
1664 | knifeweld.Part0 = me["Right Arm"] | |
1665 | knifeweld.C1 = CFrame.fromEulerAnglesXYZ(1.55, math.rad(-90), 1.55) * CFrame.new(0, 0.95, 0) | |
1666 | ||
1667 | canClick = true | |
1668 | ||
1669 | ||
1670 | mode = "fling" | |
1671 | ||
1672 | ||
1673 | mouse.Button1Down:connect(function() | |
1674 | if active == false or usable == false then return end | |
1675 | if canClick == true and acting == false then | |
1676 | if mode == "stab" and finishnum == 1 then | |
1677 | canClick = false | |
1678 | stab() | |
1679 | elseif mode == "fling" then | |
1680 | canClick = false | |
1681 | fling() | |
1682 | end | |
1683 | ||
1684 | ||
1685 | ||
1686 | ||
1687 | end | |
1688 | end) | |
1689 | ||
1690 | knife.Touched:connect(function(hitz) | |
1691 | if hitz.Parent and hitz.Parent:FindFirstChildOfClass("Humanoid") and hitz.Parent:FindFirstChild('Torso') and acting == true then | |
1692 | if mode == "stab" and stabbing == true and hit == false then | |
1693 | hit = true | |
1694 | tone = math.random(1, 3) | |
1695 | audio:Stop() | |
1696 | if tone == 1 then audio.SoundId = "rbxassetid://220833967" end | |
1697 | if tone == 2 then audio.SoundId = "rbxassetid://220833976" end | |
1698 | if tone == 3 then audio.SoundId = "rbxassetid://220834000" end | |
1699 | audio.PlaybackSpeed = 1 | |
1700 | audio:Play() | |
1701 | killz(hitz.Parent,'Left Leg') | |
1702 | killz(hitz.Parent,'Left Arm') | |
1703 | killz(hitz.Parent,'Right Leg') | |
1704 | killz(hitz.Parent,'Right Arm') | |
1705 | ||
1706 | ||
1707 | end | |
1708 | end | |
1709 | end) | |
1710 | ||
1711 | player.CharacterAdded:connect(function() | |
1712 | usable = false | |
1713 | for i,v in pairs(playergui:GetChildren()) do | |
1714 | if v.Name == "REEEEEEEE" or v.Name == 'PSYCHOPAAAATH' then | |
1715 | v:Destroy() | |
1716 | end | |
1717 | end | |
1718 | end) | |
1719 | while usable do | |
1720 | local coru = coroutine.wrap(function() | |
1721 | if grabbed ~= nil then | |
1722 | if grabbed:FindFirstChildOfClass('Humanoid') and grabbed:FindFirstChildOfClass('Humanoid').Health > 0 then | |
1723 | for i,v in pairs(grabbed:GetChildren()) do | |
1724 | if v:IsA('Tool') then | |
1725 | local model = Instance.new('Model',workspace) | |
1726 | v.Parent = model | |
1727 | model:TranslateBy(Vector3.new(3,0,0)) | |
1728 | end | |
1729 | end | |
1730 | grabbed:FindFirstChildOfClass('Humanoid').Name = "Hoomanoid" | |
1731 | grabbed:FindFirstChildOfClass('Humanoid').JumpPower = 0 | |
1732 | grabbed:FindFirstChildOfClass('Humanoid').WalkSpeed = 0 | |
1733 | grabbed:FindFirstChildOfClass('Humanoid').PlatformStand = true | |
1734 | grabweld = grabbed.Torso:FindFirstChild("TargetWeld") | |
1735 | if grabweld ~= nil then return end | |
1736 | grabbed:FindFirstChildOfClass('Humanoid').PlatformStand = true | |
1737 | if grabbed.Torso:FindFirstChild('Left Shoulder') then | |
1738 | leftshoulder = grabbed.Torso["Left Shoulder"]:Clone() | |
1739 | end | |
1740 | if grabbed.Torso:FindFirstChild('Right Shoulder') then | |
1741 | rightshoulder = grabbed.Torso["Right Shoulder"]:Clone() | |
1742 | end | |
1743 | headweld = grabbed.Torso["Neck"]:Clone() | |
1744 | local targetweld = Instance.new('Weld',grabbed.Torso) | |
1745 | targetweld.Part0 = grabbed.Torso | |
1746 | targetweld.Part1 = grabbed.Head | |
1747 | targetweld.Name = "TargetWeld" | |
1748 | targetweld.C0 = CFrame.new(0,1.5,0) * CFrame.Angles(0, 0, 0) | |
1749 | if grabbed:FindFirstChild('Left Arm') then | |
1750 | local targetweld2 = Instance.new('Weld',grabbed["Left Arm"]) | |
1751 | targetweld2.Part0 = grabbed.Torso | |
1752 | targetweld2.Part1 = grabbed["Left Arm"] | |
1753 | targetweld2.C0 = CFrame.new(-1.5,0,0) * CFrame.Angles(0, 0, 0) | |
1754 | end | |
1755 | ||
1756 | for i = 0,1,0.1 do | |
1757 | if me:FindFirstChild("Left Arm") == nil or me:FindFirstChild("Torso") == nil or targetweld == nil then return end | |
1758 | targetweld.C0 = targetweld.C0:lerp(CFrame.new(0, 1.5, 0)*CFrame.Angles(0.25, 0, 0), i) | |
1759 | if targetweld2 then | |
1760 | targetweld2.C0 = targetweld2.C0:lerp(CFrame.new(-1.5, 0.5, 0)*CFrame.Angles(0, 0, -0.55), i) | |
1761 | end | |
1762 | wait(0.001) | |
1763 | end | |
1764 | end | |
1765 | end | |
1766 | end) | |
1767 | coru() | |
1768 | wait() | |
1769 | end | |
1770 | ||
1771 | end | |
1772 | local coru=coroutine.wrap(function() | |
1773 | nub() | |
1774 | end) | |
1775 | coru() | |
1776 | ||
1777 | player.CharacterAppearanceLoaded:connect(function() | |
1778 | local coru =coroutine.wrap(function() | |
1779 | nub() | |
1780 | end) | |
1781 | coru() | |
1782 | end) | |
1783 | ||
1784 | while true do | |
1785 | local coru=coroutine.wrap(function() | |
1786 | for i,v in pairs(rekt) do | |
1787 | if v and v:FindFirstChildOfClass('Humanoid') then | |
1788 | for a,c in pairs(v:GetChildren()) do | |
1789 | if c:IsA('Tool') then | |
1790 | local model = Instance.new('Model',workspace) | |
1791 | c.Parent = model | |
1792 | model:TranslateBy(Vector3.new(3,0,0)) | |
1793 | end | |
1794 | end | |
1795 | v:FindFirstChildOfClass('Humanoid').Jump = false | |
1796 | v:FindFirstChildOfClass('Humanoid').Sit = false | |
1797 | v:FindFirstChildOfClass('Humanoid').JumpPower = 0 | |
1798 | v:FindFirstChildOfClass('Humanoid').PlatformStand = true | |
1799 | v:FindFirstChildOfClass('Humanoid').Name = "No escape." | |
1800 | local thing = getplr(v) | |
1801 | if thing then | |
1802 | thing.CameraMinZoomDistance = 3 | |
1803 | end | |
1804 | else | |
1805 | local thing = getplr(v) | |
1806 | if thing then | |
1807 | thing.CameraMinZoomDistance = 0.5 | |
1808 | end | |
1809 | table.remove(rekt,i) | |
1810 | end | |
1811 | end | |
1812 | end) | |
1813 | coru() | |
1814 | local coru2 = coroutine.wrap(function() | |
1815 | if curpart then | |
1816 | curpoint = curpart.CFrame.p | |
1817 | end | |
1818 | if lastgui then | |
1819 | lastgui:Destroy() | |
1820 | lastgui = nil | |
1821 | end | |
1822 | if curpoint then | |
1823 | lastgui = Instance.new('BillboardGui',player.PlayerGui) | |
1824 | lastgui.AlwaysOnTop = true | |
1825 | lastgui.MaxDistance = 0 | |
1826 | lastgui.Size = UDim2.new(5,0,5,0) | |
1827 | if curpart == nil then | |
1828 | lastgui.Adornee = workspace | |
1829 | lastgui.StudsOffsetWorldSpace = curpoint | |
1830 | else | |
1831 | lastgui.Adornee = curpart | |
1832 | end | |
1833 | local cross = Instance.new('ImageLabel',lastgui) | |
1834 | cross.BackgroundTransparency = 1 | |
1835 | cross.Size = UDim2.new(1,0,1,0) | |
1836 | cross.Image = 'rbxassetid://316279304' | |
1837 | for i,v in pairs(zombies) do | |
1838 | if v:FindFirstChildOfClass('Humanoid') then | |
1839 | v:FindFirstChildOfClass('Humanoid').WalkToPoint = curpoint | |
1840 | end | |
1841 | end | |
1842 | else | |
1843 | for i,v in pairs(zombies) do | |
1844 | if v:FindFirstChildOfClass('Humanoid') and v:FindFirstChild('Head') then | |
1845 | v:FindFirstChildOfClass('Humanoid').WalkToPoint = v.Head.Position | |
1846 | end | |
1847 | end | |
1848 | end | |
1849 | end) | |
1850 | coru2() | |
1851 | wait() | |
1852 | end |