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