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