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