SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
2 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
3 | do | |
4 | - | local player = game.Players.LocalPlayer |
4 | + | print("FE Compatibility code by Mokiros | Translated to FE by iPxter") |
5 | print("Original by Shackluster, Edit by prostoRobot") | |
6 | script.Parent = Player.Character | |
7 | ||
8 | --RemoteEvent for communicating | |
9 | local Event = Instance.new("RemoteEvent") | |
10 | Event.Name = "UserInput_Event" | |
11 | ||
12 | --Fake event to make stuff like Mouse.KeyDown work | |
13 | - | local mouse = player:GetMouse() |
13 | + | local function fakeEvent() |
14 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} | |
15 | t.connect = t.Connect | |
16 | return t | |
17 | end | |
18 | ||
19 | --Creating fake input objects with fake variables | |
20 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
21 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
22 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
23 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
24 | end} | |
25 | --Merged 2 functions into one by checking amount of arguments | |
26 | CAS.UnbindAction = CAS.BindAction | |
27 | ||
28 | --This function will trigger the events that have been :Connect()'ed | |
29 | local function te(self,ev,...) | |
30 | local t = m[ev] | |
31 | if t and t._fakeEvent and t.Function then | |
32 | t.Function(...) | |
33 | end | |
34 | end | |
35 | m.TrigEvent = te | |
36 | UIS.TrigEvent = te | |
37 | ||
38 | Event.OnServerEvent:Connect(function(plr,io) | |
39 | if plr~=Player then return end | |
40 | if io.isMouse then | |
41 | m.Target = io.Target | |
42 | m.Hit = io.Hit | |
43 | else | |
44 | local b = io.UserInputState == Enum.UserInputState.Begin | |
45 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
46 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
47 | end | |
48 | for _,t in pairs(CAS.Actions) do | |
49 | for _,k in pairs(t.Keys) do | |
50 | if k==io.KeyCode then | |
51 | t.Function(t.Name,io.UserInputState,io) | |
52 | end | |
53 | end | |
54 | end | |
55 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
56 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
57 | end | |
58 | end) | |
59 | Event.Parent = NLS([==[ | |
60 | local Player = game:GetService("Players").LocalPlayer | |
61 | local Event = script:WaitForChild("UserInput_Event") | |
62 | ||
63 | local UIS = game:GetService("UserInputService") | |
64 | local input = function(io,a) | |
65 | if a then return end | |
66 | --Since InputObject is a client-side instance, we create and pass table instead | |
67 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) | |
68 | end | |
69 | UIS.InputBegan:Connect(input) | |
70 | UIS.InputEnded:Connect(input) | |
71 | ||
72 | local Mouse = Player:GetMouse() | |
73 | local h,t | |
74 | --Give the server mouse data 30 times every second, but only if the values changed | |
75 | --If player is not moving their mouse, client won't fire events | |
76 | while wait(1/30) do | |
77 | if h~=Mouse.Hit or t~=Mouse.Target then | |
78 | h,t=Mouse.Hit,Mouse.Target | |
79 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
80 | end | |
81 | end]==],Player.Character) | |
82 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
83 | end | |
84 | ||
85 | -- Grab knife V3 | |
86 | wait(0.5) | |
87 | math.randomseed(tick()) | |
88 | local player = owner | |
89 | local rekt = {} | |
90 | local paralyzed = false | |
91 | local curpoint = nil | |
92 | local curpart = nil | |
93 | local finishnum = 1 | |
94 | local zombiemode = false | |
95 | local zombies = {} | |
96 | local lastgui = nil | |
97 | ||
98 | function getplr(char) | |
99 | local plr = nil | |
100 | for i,v in pairs(game.Players:GetChildren()) do | |
101 | if v.Character == char then | |
102 | plr = v | |
103 | end | |
104 | end | |
105 | return plr | |
106 | end | |
107 | ||
108 | function bleed(frick) | |
109 | while frick.Parent ~= nil do | |
110 | local reeee = coroutine.wrap(function() | |
111 | local thing = Instance.new('Part',game.Workspace) | |
112 | thing.Size = Vector3.new(0.2,0.2,0.2) | |
113 | thing.CFrame = frick.CFrame | |
114 | thing.Shape = Enum.PartType.Ball | |
115 | thing.CFrame = frick.CFrame | |
116 | thing.Transparency = 1 | |
117 | thing.BrickColor = BrickColor.new('Maroon') | |
118 | thing.Material = Enum.Material.SmoothPlastic | |
119 | thing.Name = "Blood" | |
120 | thing.CanCollide =false | |
121 | local rawrxd = Instance.new('BodyForce',thing) | |
122 | rawrxd.Force = frick.CFrame.upVector*(math.random()*2)+Vector3.new(math.random(-5, 5)/10,1.5,0) | |
123 | local coru = coroutine.wrap(function() | |
124 | wait(0.01) | |
125 | rawrxd:Destroy() | |
126 | end) | |
127 | coru() | |
128 | local ree = Instance.new('ParticleEmitter',thing) | |
129 | ree.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.fromRGB(100,0,0)),ColorSequenceKeypoint.new(1,Color3.fromRGB(100,0,0))}) | |
130 | ree.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.1),NumberSequenceKeypoint.new(1,0.1)}) | |
131 | ree.Texture = 'rbxassetid://867743272' | |
132 | ree.Lifetime = NumberRange.new(0.4) | |
133 | ree.Rate = 50 | |
134 | ree.LockedToPart = true | |
135 | ree.Speed = NumberRange.new(0, 2) | |
136 | ||
137 | thing.Touched:connect(function(tou) | |
138 | 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 | |
139 | local pos = Vector3.new(thing.Position.X,(tou.Position.Y+(tou.Size.Y/2))+0.02,thing.Position.Z) | |
140 | thing:Destroy() | |
141 | if tou.Name == "BloodPuddle" then | |
142 | local reee = tou.CFrame | |
143 | if tou.Transparency > -0.2 then | |
144 | tou.Transparency = tou.Transparency -0.1 | |
145 | end | |
146 | if tou.Size.X < 10 then | |
147 | tou.Size = tou.Size+Vector3.new(0.1,0,0.1) | |
148 | tou.CFrame = reee | |
149 | end | |
150 | else | |
151 | local bloodlol = Instance.new('Part',workspace) | |
152 | bloodlol.Size=Vector3.new(1,0.2,1) | |
153 | bloodlol.Name = "BloodPuddle" | |
154 | bloodlol.Anchored = true | |
155 | bloodlol.CanCollide = false | |
156 | bloodlol.Material = Enum.Material.SmoothPlastic | |
157 | bloodlol.BrickColor = BrickColor.new('Maroon') | |
158 | local cyl = Instance.new('CylinderMesh',bloodlol) | |
159 | cyl.Scale = Vector3.new(1,0.1,1) | |
160 | bloodlol.CFrame = CFrame.new(pos) | |
161 | local coru=coroutine.wrap(function() | |
162 | while bloodlol.Parent ~= nil do | |
163 | if bloodlol.Transparency < 1 then | |
164 | bloodlol.Transparency = bloodlol.Transparency+0.05 | |
165 | else | |
166 | bloodlol:Destroy() | |
167 | end | |
168 | wait(0.1) | |
169 | end | |
170 | end) | |
171 | coru() | |
172 | end | |
173 | end | |
174 | end) | |
175 | local coru = coroutine.wrap(function() | |
176 | wait(1) | |
177 | thing:Destroy() | |
178 | end) | |
179 | coru() | |
180 | end) | |
181 | reeee() | |
182 | wait() | |
183 | end | |
184 | end | |
185 | ||
186 | function killz(playa,hitz,kneef,explode,pool,head,charred,override) | |
187 | local soundy = false | |
188 | local heyy = hitz | |
189 | if hitz == "Right Arm" then | |
190 | local Limb = playa:FindFirstChild("Right Arm") | |
191 | local ters = playa:FindFirstChild('Torso') | |
192 | if Limb and ters then | |
193 | if ters:FindFirstChild('Right Shoulder') then ters["Right Shoulder"]:Destroy() end | |
194 | for i,v in pairs(Limb:GetChildren()) do | |
195 | if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Rotate') then | |
196 | v:Destroy() | |
197 | end | |
198 | end | |
199 | Limb.CFrame = ters.CFrame * CFrame.new(1.5, 0, 0) | |
200 | local Joint = Instance.new("Rotate") | |
201 | Joint.Name = "RightShoulder" | |
202 | Joint.Part0 = ters | |
203 | Joint.Part1 = Limb | |
204 | Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
205 | Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
206 | Joint.Parent = ters | |
207 | if charred and zombiemode == false then | |
208 | Limb.BrickColor = BrickColor.new('Black') | |
209 | local fire = Instance.new('Fire',Limb) | |
210 | fire.Heat = 5 | |
211 | fire.Size = 5 | |
212 | game:GetService('Debris'):AddItem(fire,2) | |
213 | local coru=coroutine.wrap(function() | |
214 | wait(2) | |
215 | for i,v in pairs(Limb:GetChildren()) do | |
216 | if v:IsA('ParticleEmitter') then | |
217 | v:Destroy() | |
218 | end | |
219 | end | |
220 | end) | |
221 | coru() | |
222 | end | |
223 | local B = Instance.new("Part") | |
224 | B.TopSurface = 0 | |
225 | B.BottomSurface = 0 | |
226 | B.formFactor = "Symmetric" | |
227 | B.Size = Vector3.new(1, 1, 1) | |
228 | B.Transparency = 1 | |
229 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
230 | B.Parent = playa | |
231 | local W = Instance.new("Weld") | |
232 | W.Part0 = Limb | |
233 | W.Part1 = B | |
234 | W.C0 = CFrame.new(0, -0.5, 0) | |
235 | W.Parent = Limb | |
236 | if kneef then | |
237 | local coru = coroutine.wrap(function() | |
238 | local uno = Instance.new('Part',workspace) | |
239 | local dos = Instance.new('Part',workspace) | |
240 | uno.CFrame = playa:FindFirstChild(hitz).CFrame | |
241 | dos.CFrame = kneef["big ass knife"].CFrame | |
242 | local weld = Instance.new('Weld',kneef["big ass knife"]) | |
243 | weld.Part0 = playa:FindFirstChild(hitz) | |
244 | weld.Part1 = kneef["big ass knife"] | |
245 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
246 | uno:Destroy() | |
247 | dos:Destroy() | |
248 | playa:FindFirstChild(hitz).Anchored = false | |
249 | for i, v in pairs(kneef:GetChildren()) do | |
250 | if v:IsA('BasePart') then | |
251 | v.Anchored = false | |
252 | end | |
253 | end | |
254 | if zombiemode == false or override then | |
255 | wait() | |
256 | end | |
257 | if kneef:FindFirstChild('Grab') and kneef.Grab:FindFirstChildOfClass('BodyVelocity') then | |
258 | kneef.Grab:FindFirstChildOfClass('BodyVelocity'):Destroy() | |
259 | end | |
260 | local bleedpart = Instance.new("Part", kneef) | |
261 | bleedpart.CanCollide = false | |
262 | bleedpart.Size = Vector3.new(0.2, 0.2, 0.2) | |
263 | bleedpart.CFrame = kneef["big ass knife"].CFrame | |
264 | bleedpart.Color = Color3.new(115/225, 115/225, 115/225) | |
265 | bleedpart.Transparency = 1 | |
266 | ||
267 | local bleedpartweld = Instance.new("Weld", kneef["big ass knife"]) | |
268 | bleedpartweld.Part0 = kneef["big ass knife"] | |
269 | bleedpartweld.Part1 = bleedpart | |
270 | bleedpartweld.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(90),0,0) | |
271 | local coru = coroutine.wrap(function() | |
272 | bleed(bleedpart) | |
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) | |
366 | end) | |
367 | coru() | |
368 | game:GetService('Debris'):AddItem(bleedpart,2) | |
369 | end) | |
370 | coru() | |
371 | end | |
372 | end | |
373 | elseif hitz == "Right Leg" then | |
374 | local Limb = playa:FindFirstChild("Right Leg") | |
375 | local ters = playa:FindFirstChild('Torso') | |
376 | if Limb and ters then | |
377 | if ters:FindFirstChild('Right Hip') then ters["Right Hip"]:Destroy() end | |
378 | for i,v in pairs(Limb:GetChildren()) do | |
379 | if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Rotate') then | |
380 | v:Destroy() | |
381 | end | |
382 | end | |
383 | Limb.CFrame = ters.CFrame * CFrame.new(0.5, -2, 0) | |
384 | local Joint = Instance.new("Rotate") | |
385 | Joint.Name = "Right Hip" | |
386 | Joint.Part0 = ters | |
387 | Joint.Part1 = Limb | |
388 | Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
389 | Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
390 | Joint.Parent = ters | |
391 | if charred and zombiemode == false then | |
392 | Limb.BrickColor = BrickColor.new('Black') | |
393 | local fire = Instance.new('Fire',Limb) | |
394 | fire.Heat = 5 | |
395 | fire.Size = 5 | |
396 | game:GetService('Debris'):AddItem(fire,2) | |
397 | local coru=coroutine.wrap(function() | |
398 | wait(2) | |
399 | for i,v in pairs(Limb:GetChildren()) do | |
400 | if v:IsA('ParticleEmitter') then | |
401 | v:Destroy() | |
402 | end | |
403 | end | |
404 | end) | |
405 | coru() | |
406 | end | |
407 | local B = Instance.new("Part") | |
408 | B.TopSurface = 0 | |
409 | B.BottomSurface = 0 | |
410 | B.formFactor = "Symmetric" | |
411 | B.Size = Vector3.new(1, 1, 1) | |
412 | B.Transparency = 1 | |
413 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
414 | B.Parent = playa | |
415 | local W = Instance.new("Weld") | |
416 | W.Part0 = Limb | |
417 | W.Part1 = B | |
418 | W.C0 = CFrame.new(0, -0.5, 0) | |
419 | W.Parent = Limb | |
420 | if kneef then | |
421 | local coru = coroutine.wrap(function() | |
422 | local uno = Instance.new('Part',workspace) | |
423 | local dos = Instance.new('Part',workspace) | |
424 | uno.CFrame = playa:FindFirstChild(hitz).CFrame | |
425 | dos.CFrame = kneef["big ass knife"].CFrame | |
426 | local weld = Instance.new('Weld',kneef["big ass knife"]) | |
427 | weld.Part0 = playa:FindFirstChild(hitz) | |
428 | weld.Part1 = kneef["big ass knife"] | |
429 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
430 | uno:Destroy() | |
431 | dos:Destroy() | |
432 | playa:FindFirstChild(hitz).Anchored = false | |
433 | for i, v in pairs(kneef:GetChildren()) do | |
434 | if v:IsA('BasePart') then | |
435 | v.Anchored = false | |
436 | end | |
437 | end | |
438 | if zombiemode == false or override then | |
439 | wait() | |
440 | end | |
441 | if kneef:FindFirstChild('Grab') and kneef.Grab:FindFirstChildOfClass('BodyVelocity') then | |
442 | kneef.Grab:FindFirstChildOfClass('BodyVelocity'):Destroy() | |
443 | end | |
444 | local bleedpart = Instance.new("Part", kneef) | |
445 | bleedpart.CanCollide = false | |
446 | bleedpart.Size = Vector3.new(0.2, 0.2, 0.2) | |
447 | bleedpart.CFrame = kneef["big ass knife"].CFrame | |
448 | bleedpart.Color = Color3.new(115/225, 115/225, 115/225) | |
449 | bleedpart.Transparency = 1 | |
450 | ||
451 | local bleedpartweld = Instance.new("Weld", kneef["big ass knife"]) | |
452 | bleedpartweld.Part0 = kneef["big ass knife"] | |
453 | bleedpartweld.Part1 = bleedpart | |
454 | bleedpartweld.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(90),0,0) | |
455 | local coru = coroutine.wrap(function() | |
456 | bleed(bleedpart) | |
457 | end) | |
458 | coru() | |
459 | game:GetService('Debris'):AddItem(bleedpart,2) | |
460 | end) | |
461 | coru() | |
462 | end | |
463 | if playa then | |
464 | table.insert(rekt,playa) | |
465 | end | |
466 | end | |
467 | elseif hitz == "Left Leg" then | |
468 | local Limb = playa:FindFirstChild("Left Leg") | |
469 | local ters = playa:FindFirstChild('Torso') | |
470 | if Limb and ters then | |
471 | if ters:FindFirstChild('Left Hip') then ters["Left Hip"]:Destroy() end | |
472 | for i,v in pairs(Limb:GetChildren()) do | |
473 | if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Rotate') then | |
474 | v:Destroy() | |
475 | end | |
476 | end | |
477 | Limb.CFrame = ters.CFrame * CFrame.new(0.5, -2, 0) | |
478 | Limb.CFrame = ters.CFrame * CFrame.new(-0.5, -2, 0) | |
479 | local Joint = Instance.new("Rotate") | |
480 | Joint.Name = "LeftHip" | |
481 | Joint.Part0 = ters | |
482 | Joint.Part1 = Limb | |
483 | Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
484 | Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
485 | Joint.Parent = ters | |
486 | if charred and zombiemode == false then | |
487 | Limb.BrickColor = BrickColor.new('Black') | |
488 | local fire = Instance.new('Fire',Limb) | |
489 | fire.Heat = 5 | |
490 | fire.Size = 5 | |
491 | game:GetService('Debris'):AddItem(fire,2) | |
492 | local coru=coroutine.wrap(function() | |
493 | wait(2) | |
494 | for i,v in pairs(Limb:GetChildren()) do | |
495 | if v:IsA('ParticleEmitter') then | |
496 | v:Destroy() | |
497 | end | |
498 | end | |
499 | end) | |
500 | coru() | |
501 | end | |
502 | ||
503 | local B = Instance.new("Part") | |
504 | B.TopSurface = 0 | |
505 | B.BottomSurface = 0 | |
506 | B.formFactor = "Symmetric" | |
507 | B.Size = Vector3.new(1, 1, 1) | |
508 | B.Transparency = 1 | |
509 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
510 | B.Parent = playa | |
511 | local W = Instance.new("Weld") | |
512 | W.Part0 = Limb | |
513 | W.Part1 = B | |
514 | W.C0 = CFrame.new(0, -0.5, 0) | |
515 | W.Parent = Limb | |
516 | Limb.CanCollide = false | |
517 | if kneef then | |
518 | local coru = coroutine.wrap(function() | |
519 | local uno = Instance.new('Part',workspace) | |
520 | local dos = Instance.new('Part',workspace) | |
521 | uno.CFrame = playa:FindFirstChild(hitz).CFrame | |
522 | dos.CFrame = kneef["big ass knife"].CFrame | |
523 | local weld = Instance.new('Weld',kneef["big ass knife"]) | |
524 | weld.Part0 = playa:FindFirstChild(hitz) | |
525 | weld.Part1 = kneef["big ass knife"] | |
526 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
527 | uno:Destroy() | |
528 | dos:Destroy() | |
529 | playa:FindFirstChild(hitz).Anchored = false | |
530 | for i, v in pairs(kneef:GetChildren()) do | |
531 | if v:IsA('BasePart') then | |
532 | v.Anchored = false | |
533 | end | |
534 | end | |
535 | if zombiemode == false or override then | |
536 | wait() | |
537 | end | |
538 | if kneef:FindFirstChild('Grab') and kneef.Grab:FindFirstChildOfClass('BodyVelocity') then | |
539 | kneef.Grab:FindFirstChildOfClass('BodyVelocity'):Destroy() | |
540 | end | |
541 | local bleedpart = Instance.new("Part", kneef) | |
542 | bleedpart.CanCollide = false | |
543 | bleedpart.Size = Vector3.new(0.2, 0.2, 0.2) | |
544 | bleedpart.CFrame = kneef["big ass knife"].CFrame | |
545 | bleedpart.Color = Color3.new(115/225, 115/225, 115/225) | |
546 | bleedpart.Transparency = 1 | |
547 | ||
548 | local bleedpartweld = Instance.new("Weld", kneef["big ass knife"]) | |
549 | bleedpartweld.Part0 = kneef["big ass knife"] | |
550 | bleedpartweld.Part1 = bleedpart | |
551 | bleedpartweld.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(90),0,0) | |
552 | local coru = coroutine.wrap(function() | |
553 | bleed(bleedpart) | |
554 | end) | |
555 | coru() | |
556 | game:GetService('Debris'):AddItem(bleedpart,2) | |
557 | end) | |
558 | coru() | |
559 | end | |
560 | if playa then | |
561 | table.insert(rekt,playa) | |
562 | end | |
563 | end | |
564 | elseif playa then | |
565 | if finishnum ~= 1 then | |
566 | local coru=coroutine.wrap(function() | |
567 | player.Character.Head.Psycho.Playing = true | |
568 | wait(3) | |
569 | player.Character.Head.Psycho.Playing = false | |
570 | end) | |
571 | coru() | |
572 | end | |
573 | local playa2 = playa | |
574 | playa.Archivable = true | |
575 | local playa = playa:Clone() | |
576 | playa.Archivable = false | |
577 | playa2:Destroy() | |
578 | playa.Parent = workspace | |
579 | local Gibs = game.Workspace | |
580 | local Torso = playa.Torso | |
581 | local Head = playa:FindFirstChild("Head") | |
582 | local function Scan(ch) | |
583 | local e | |
584 | for e = 1,#ch do | |
585 | Scan(ch[e]:GetChildren()) | |
586 | 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 | |
587 | ch[e]:remove() | |
588 | end | |
589 | end | |
590 | end | |
591 | Scan(playa:GetChildren()) | |
592 | if playa:FindFirstChild('HumanoidRootPart') and (zombiemode == false or override) then | |
593 | playa:FindFirstChild('HumanoidRootPart'):Destroy() | |
594 | end | |
595 | local hum2 = playa:FindFirstChildOfClass("Humanoid") | |
596 | if zombiemode == true and override == false then | |
597 | soundy = true | |
598 | end | |
599 | if string.sub(hum2.Parent.Name,string.len(hum2.Parent.Name)-8,string.len(hum2.Parent.Name)) ~= "'s Zombie" then | |
600 | override = true | |
601 | end | |
602 | if hum2 ~= nil then | |
603 | hum2.Name = "Humanoid2" | |
604 | hum2.Health = 0 | |
605 | if zombiemode == false or override == true then | |
606 | table.insert(rekt,hum2.Parent) | |
607 | else | |
608 | local gyro = Instance.new('BodyGyro',Torso) | |
609 | hum2.PlatformStand = false | |
610 | for i,v in pairs(hum2.Parent.Torso:GetChildren()) do | |
611 | if v:IsA('BodyGyro') then v:Destroy() end | |
612 | end | |
613 | if playa:FindFirstChild('HumanoidRootPart') then | |
614 | hum2.Parent.HumanoidRootPart.CFrame = hum2.Parent.Torso.CFrame | |
615 | local weldcrucial = Instance.new('Weld',hum2.Parent.HumanoidRootPart) | |
616 | weldcrucial.Part0 = hum2.Parent.HumanoidRootPart | |
617 | weldcrucial.Part1 = hum2.Parent.Torso | |
618 | end | |
619 | end | |
620 | end | |
621 | local ch = playa:GetChildren() | |
622 | local i | |
623 | for i = 1,#ch do | |
624 | if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then | |
625 | ch[i]:remove() | |
626 | end | |
627 | end | |
628 | ||
629 | if Head then | |
630 | local Neck = Instance.new("Weld") | |
631 | Neck.Name = "Neck" | |
632 | Neck.Part0 = Torso | |
633 | Neck.Part1 = Head | |
634 | if pool then | |
635 | local part = Instance.new('Part',Torso) | |
636 | part.Position = Vector3.new(0,10,0) | |
637 | part.Size = Vector3.new(0.2,0.2,0.2) | |
638 | part.Transparency = 1 | |
639 | part.CanCollide = false | |
640 | local we = Instance.new('Weld',Torso) | |
641 | we.Part0 = Torso | |
642 | we.Part1 = part | |
643 | we.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(90),0,0) | |
644 | local coru=coroutine.wrap(function() | |
645 | bleed(part) | |
646 | end) | |
647 | coru() | |
648 | end | |
649 | if head == false or head == nil then | |
650 | Neck.C0 = CFrame.new(0, 1.5, 0) | |
651 | else | |
652 | Neck.C0 = CFrame.new(0, 1.5, 0.2)*CFrame.Angles(0.5, 0.25, 0.25) | |
653 | local bleedpart = Instance.new("Part", Torso) | |
654 | bleedpart.Size = Vector3.new(0.2, 0.2, 0.2) | |
655 | bleedpart.Color = Color3.new(115/225, 115/225, 115/225) | |
656 | bleedpart.CanCollide = false | |
657 | bleedpart.Position = Head.Position + Vector3.new(0, 1, 0) | |
658 | bleedpart.Transparency = 1 | |
659 | ||
660 | local bleedpartweld = Instance.new("Weld", Torso) | |
661 | bleedpartweld.Part0 = Torso | |
662 | bleedpartweld.Part1 = bleedpart | |
663 | bleedpartweld.C0 = CFrame.Angles(-1, 0, -0.35) * CFrame.new(0, 1, 0.8) | |
664 | local coru = coroutine.wrap(function() | |
665 | bleed(bleedpart) | |
666 | end) | |
667 | coru() | |
668 | end | |
669 | Neck.C1 = CFrame.new() | |
670 | Neck.Parent = Torso | |
671 | end | |
672 | local Limb = playa:FindFirstChild("Right Arm") | |
673 | if Limb then | |
674 | ||
675 | Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0) | |
676 | local Joint = Instance.new("Rotate") | |
677 | Joint.Name = "RightShoulder" | |
678 | Joint.Part0 = Torso | |
679 | Joint.Part1 = Limb | |
680 | Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
681 | Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
682 | Joint.Parent = Torso | |
683 | ||
684 | local B = Instance.new("Part") | |
685 | B.TopSurface = 0 | |
686 | B.BottomSurface = 0 | |
687 | B.formFactor = "Symmetric" | |
688 | B.Size = Vector3.new(1, 1, 1) | |
689 | B.Transparency = 1 | |
690 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
691 | B.Parent = playa | |
692 | local W = Instance.new("Weld") | |
693 | W.Part0 = Limb | |
694 | W.Part1 = B | |
695 | W.C0 = CFrame.new(0, -0.5, 0) | |
696 | W.Parent = Limb | |
697 | end | |
698 | local Limb = playa:FindFirstChild("Left Arm") | |
699 | if Limb then | |
700 | ||
701 | Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0) | |
702 | local Joint = Instance.new("Rotate") | |
703 | Joint.Name = "LeftShoulder" | |
704 | Joint.Part0 = Torso | |
705 | Joint.Part1 = Limb | |
706 | Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
707 | Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
708 | Joint.Parent = Torso | |
709 | ||
710 | local B = Instance.new("Part") | |
711 | B.TopSurface = 0 | |
712 | B.BottomSurface = 0 | |
713 | B.formFactor = "Symmetric" | |
714 | B.Size = Vector3.new(1, 1, 1) | |
715 | B.Transparency = 1 | |
716 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
717 | B.Parent = playa | |
718 | local W = Instance.new("Weld") | |
719 | W.Part0 = Limb | |
720 | W.Part1 = B | |
721 | W.C0 = CFrame.new(0, -0.5, 0) | |
722 | W.Parent = Limb | |
723 | end | |
724 | local Limb = playa:FindFirstChild("Right Leg") | |
725 | if Limb then | |
726 | Limb.CanCollide = false | |
727 | Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0) | |
728 | local Joint = Instance.new("Rotate") | |
729 | Joint.Name = "RightHip" | |
730 | Joint.Part0 = Torso | |
731 | Joint.Part1 = Limb | |
732 | Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
733 | Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
734 | Joint.Parent = Torso | |
735 | ||
736 | local B = Instance.new("Part") | |
737 | B.TopSurface = 0 | |
738 | B.BottomSurface = 0 | |
739 | B.formFactor = "Symmetric" | |
740 | B.Size = Vector3.new(1, 1, 1) | |
741 | B.Transparency = 1 | |
742 | B.CanCollide = true | |
743 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
744 | B.Parent = playa | |
745 | local W = Instance.new("Weld") | |
746 | W.Part0 = Limb | |
747 | W.Part1 = B | |
748 | W.C0 = CFrame.new(0, -0.5, 0) | |
749 | W.Parent = Limb | |
750 | end | |
751 | local Limb = playa:FindFirstChild("Left Leg") | |
752 | if Limb then | |
753 | Limb.CanCollide = false | |
754 | Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0) | |
755 | local Joint = Instance.new("Rotate") | |
756 | Joint.Name = "LeftHip" | |
757 | Joint.Part0 = Torso | |
758 | Joint.Part1 = Limb | |
759 | Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
760 | Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
761 | Joint.Parent = Torso | |
762 | ||
763 | local B = Instance.new("Part") | |
764 | B.TopSurface = 0 | |
765 | B.BottomSurface = 0 | |
766 | if zombiemode == false or override then | |
767 | B.CanCollide = true | |
768 | end | |
769 | B.formFactor = "Symmetric" | |
770 | B.Size = Vector3.new(1, 1, 1) | |
771 | B.Transparency = 1 | |
772 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
773 | B.Parent = playa | |
774 | local W = Instance.new("Weld") | |
775 | W.Part0 = Limb | |
776 | W.Part1 = B | |
777 | W.C0 = CFrame.new(0, -0.5, 0) | |
778 | W.Parent = Limb | |
779 | end | |
780 | --[[ | |
781 | local Bar = Instance.new("Part") | |
782 | Bar.TopSurface = 0 | |
783 | Bar.BottomSurface = 0 | |
784 | Bar.formFactor = "Symmetric" | |
785 | Bar.Size = Vector3.new(1, 1, 1) | |
786 | Bar.Transparency = 1 | |
787 | Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0) | |
788 | Bar.Parent = playa | |
789 | local Weld = Instance.new("Weld") | |
790 | Weld.Part0 = Torso | |
791 | Weld.Part1 = Bar | |
792 | Weld.C0 = CFrame.new(0, 0.5, 0) | |
793 | Weld.Parent = Torso | |
794 | --]] | |
795 | playa.Parent = Gibs | |
796 | if kneef and explode == nil then | |
797 | local coru = coroutine.wrap(function() | |
798 | if playa:FindFirstChild(hitz) then | |
799 | local uno = Instance.new('Part',workspace) | |
800 | local dos = Instance.new('Part',workspace) | |
801 | uno.CFrame = playa:FindFirstChild(hitz).CFrame | |
802 | dos.CFrame = kneef["big ass knife"].CFrame | |
803 | local weld = Instance.new('Weld',kneef["big ass knife"]) | |
804 | weld.Part0 = playa:FindFirstChild(hitz) | |
805 | weld.Part1 = kneef["big ass knife"] | |
806 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
807 | uno:Destroy() | |
808 | dos:Destroy() | |
809 | playa:FindFirstChild(hitz).Anchored = false | |
810 | for i, v in pairs(kneef:GetChildren()) do | |
811 | if v:IsA('BasePart') then | |
812 | v.Anchored = false | |
813 | end | |
814 | end | |
815 | if explode == nil or explode == false then | |
816 | local bleedpart = Instance.new("Part", kneef) | |
817 | bleedpart.Size = Vector3.new(0.2, 0.2, 0.2) | |
818 | bleedpart.Color = Color3.new(115/225, 115/225, 115/225) | |
819 | bleedpart.CanCollide = false | |
820 | bleedpart.Position = Head.Position + Vector3.new(0, 1, 0) | |
821 | bleedpart.Transparency = 1 | |
822 | ||
823 | local bleedpartweld = Instance.new("Weld", kneef["big ass knife"]) | |
824 | bleedpartweld.Part0 = kneef["big ass knife"] | |
825 | bleedpartweld.Part1 = bleedpart | |
826 | bleedpartweld.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(90),0,0) | |
827 | local coru = coroutine.wrap(function() | |
828 | bleed(bleedpart) | |
829 | end) | |
830 | coru() | |
831 | end | |
832 | end | |
833 | if zombiemode == false or override then | |
834 | wait() | |
835 | end | |
836 | if kneef:FindFirstChild('Grab') and kneef.Grab:FindFirstChildOfClass('BodyVelocity') then | |
837 | kneef.Grab:FindFirstChildOfClass('BodyVelocity'):Destroy() | |
838 | end | |
839 | end) | |
840 | coru() | |
841 | end | |
842 | if explode then | |
843 | local movevector = CFrame.new(explode.Position,Torso.Position).lookVector | |
844 | local repulse = Instance.new('BodyForce',Torso) | |
845 | repulse.Force = movevector*10000 + Vector3.new(0,5000,0) | |
846 | game.Debris:AddItem(repulse,0.05) | |
847 | end | |
848 | if charred and zombiemode == false then | |
849 | for i,v in pairs(playa:GetChildren()) do | |
850 | if v:IsA('BasePart') then | |
851 | v.BrickColor = BrickColor.Black() | |
852 | local fire = Instance.new('Fire',v) | |
853 | fire.Size = 5 | |
854 | fire.Heat = 5 | |
855 | elseif v:IsA('Accessory') then | |
856 | for a,c in pairs(v:GetChildren()) do | |
857 | if c:IsA('BasePart') then | |
858 | c.BrickColor = BrickColor.Black() | |
859 | local fire = Instance.new('Fire',v) | |
860 | fire.Size = 5 | |
861 | fire.Heat = 5 | |
862 | for o,p in pairs(c:GetChildren()) do | |
863 | if p:IsA("SpecialMesh") then | |
864 | p.TextureId = "" | |
865 | end | |
866 | end | |
867 | end | |
868 | end | |
869 | end | |
870 | end | |
871 | end | |
872 | if soundy then | |
873 | local sound = Instance.new('Sound',Head) | |
874 | sound.SoundId = 'rbxassetid://903640857' | |
875 | sound.Volume = 1 | |
876 | sound:Play() | |
877 | sound.Ended:connect(function() | |
878 | sound:Destroy() | |
879 | local ambient = Instance.new('Sound',Head) | |
880 | ambient.Volume = 0.25 | |
881 | ambient.Looped = true | |
882 | ambient.SoundId = 'rbxassetid://903641031' | |
883 | ambient:Play() | |
884 | end) | |
885 | end | |
886 | if override then | |
887 | 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 | |
888 | local coru = coroutine.wrap(function() | |
889 | wait(4.5) | |
890 | hum2.Parent.Name = hum2.Parent.Name.."'s Zombie" | |
891 | hum2.HipHeight = 0.2 | |
892 | wait(0.5) | |
893 | killz(hum2.Parent,"Head",nil,nil,false,false,false,false) | |
894 | end) | |
895 | coru() | |
896 | else | |
897 | game:GetService('Debris'):AddItem(playa, 12) | |
898 | end | |
899 | else | |
900 | hum2.Health = 0 | |
901 | table.insert(zombies,playa) | |
902 | local attack = Instance.new('Sound',Head) | |
903 | attack.SoundId = 'rbxassetid://903641424' | |
904 | attack.Volume = 2 | |
905 | for i,v in pairs(playa:GetChildren()) do | |
906 | if v:IsA('BasePart') and v:FindFirstChildOfClass('TouchTransmitter') == nil then | |
907 | v.Touched:connect(function(hit) | |
908 | if hit.Parent and hit.Parent:FindFirstChildOfClass('Humanoid') then | |
909 | local found = false | |
910 | if hit.Parent == player.Character then | |
911 | found = true | |
912 | end | |
913 | for a,c in pairs(zombies) do | |
914 | if c == hit.Parent then | |
915 | found = true | |
916 | end | |
917 | end | |
918 | if found == false and hit.Parent:FindFirstChildOfClass('Humanoid').Health > 0 then | |
919 | attack:Play() | |
920 | if hit.Parent:FindFirstChildOfClass('Humanoid').Health - 2 <= 0 then | |
921 | hit.Parent:FindFirstChildOfClass('Humanoid').Health = 0 | |
922 | wait() | |
923 | killz(hit.Parent,"Head") | |
924 | else | |
925 | hit.Parent:FindFirstChildOfClass('Humanoid'):TakeDamage(2) | |
926 | end | |
927 | end | |
928 | end | |
929 | end) | |
930 | end | |
931 | end | |
932 | local coru = coroutine.wrap(function() | |
933 | wait(2) | |
934 | for i,v in pairs(playa:GetChildren()) do | |
935 | if v:IsA('BasePart') then | |
936 | for a,c in pairs(v:GetChildren()) do | |
937 | if c:IsA('Fire') or c:IsA('ParticleEmitter') then | |
938 | c:Destroy() | |
939 | end | |
940 | end | |
941 | elseif v:IsA('Accessory') then | |
942 | for a,c in pairs(v:GetChildren()) do | |
943 | if c:IsA('BasePart') then | |
944 | for b,d in pairs(c:GetChildren()) do | |
945 | if d:IsA('Fire') or d:IsA('ParticleEmitter') then | |
946 | d:Destroy() | |
947 | end | |
948 | end | |
949 | end | |
950 | end | |
951 | end | |
952 | end | |
953 | end) | |
954 | coru() | |
955 | end | |
956 | end | |
957 | end | |
958 | ||
959 | mouse.KeyDown:connect(function(key) | |
960 | if key == "t" and mouse.Target then | |
961 | local hum = mouse.Target.Parent:FindFirstChildOfClass('Humanoid') | |
962 | if hum == nil then hum = mouse.Target.Parent.Parent:FindFirstChildOfClass('Humanoid') end | |
963 | if curpoint == nil then | |
964 | if hum and hum.Parent:FindFirstChild('Head') then | |
965 | curpart = hum.Parent.Head | |
966 | else | |
967 | curpart = nil | |
968 | curpoint = mouse.Hit.p | |
969 | end | |
970 | if player.PlayerGui:FindFirstChild('Notification') then player.PlayerGui.Notification:Destroy() end | |
971 | notify("ZOMBIE TARGET SET",false) | |
972 | else | |
973 | curpart = nil | |
974 | curpoint = nil | |
975 | if player.PlayerGui:FindFirstChild('Notification') then player.PlayerGui.Notification:Destroy() end | |
976 | notify("ZOMBIE TARGET REMOVED",false) | |
977 | end | |
978 | elseif key == "y" then | |
979 | for o,p in pairs(zombies) do | |
980 | local coru = coroutine.wrap(function() | |
981 | if p:FindFirstChild('Torso') then | |
982 | killz(p,"Head",nil,nil,false,false,false,true) | |
983 | else | |
984 | table.remove(zombies,o) | |
985 | end | |
986 | end) | |
987 | coru() | |
988 | wait() | |
989 | end | |
990 | for i,v in pairs(zombies) do | |
991 | table.remove(zombies,i) | |
992 | end | |
993 | if player.PlayerGui:FindFirstChild('Notification') then player.PlayerGui.Notification:Destroy() end | |
994 | notify("ZOMBIES TERMINATED",false) | |
995 | end | |
996 | end) | |
997 | ||
998 | function nub() | |
999 | local me = player.Character | |
1000 | local point = me.HumanoidRootPart | |
1001 | local playergui = player.PlayerGui | |
1002 | local rightshoulderz = me.Torso["Right Shoulder"]:Clone() | |
1003 | local leftshoulderz = me.Torso["Left Shoulder"]:Clone() | |
1004 | local torsojoint = me.HumanoidRootPart["RootJoint"]:Clone() | |
1005 | local lefthipz = me.Torso["Left Hip"]:Clone() | |
1006 | local righthipz = me.Torso["Right Hip"]:Clone() | |
1007 | local mode = "kill" | |
1008 | local lerpz = false | |
1009 | local active = false | |
1010 | local acting = false | |
1011 | local hit = false | |
1012 | local canClick = true | |
1013 | local stabbing = false | |
1014 | local grabbing = false | |
1015 | local finishing = false | |
1016 | local kyssing = false | |
1017 | local canbackgroundmusic = true | |
1018 | local cancolorfilter = true | |
1019 | local spinboolean = false | |
1020 | local grabbed = nil | |
1021 | local doing = false | |
1022 | local rightshoulder = nil | |
1023 | local leftshoulder = nil | |
1024 | local headweld = nil | |
1025 | local usable = true | |
1026 | finishnum = 1 | |
1027 | ||
1028 | function notify(msg,forever) | |
1029 | local doit = coroutine.wrap(function() | |
1030 | local gui = Instance.new('ScreenGui',playergui) | |
1031 | gui.Name = "Notification" | |
1032 | local frame = Instance.new('Frame',gui) | |
1033 | frame.Position = UDim2.new(0,0,0,0) | |
1034 | frame.Size = UDim2.new(1,0,0.2,0) | |
1035 | frame.BackgroundTransparency = 1 | |
1036 | local txt = Instance.new('TextLabel',frame) | |
1037 | txt.TextColor3 = Color3.new(255,255,255) | |
1038 | txt.TextStrokeColor3 = Color3.new(0, 0, 0) | |
1039 | txt.TextStrokeTransparency = 0 | |
1040 | txt.BackgroundTransparency = 1 | |
1041 | txt.Text = "" | |
1042 | txt.Size = UDim2.new(1,0,0.3,0) | |
1043 | txt.Position = UDim2.new(0,0,0.4,0) | |
1044 | txt.TextScaled = true | |
1045 | txt.Font = "Code" | |
1046 | txt.TextXAlignment = "Center" | |
1047 | local tap = Instance.new("Sound") | |
1048 | tap.Parent = gui | |
1049 | tap.SoundId = "rbxassetid://147982968" | |
1050 | tap.TimePosition = 0.1 | |
1051 | local str = msg | |
1052 | local len = string.len(str) | |
1053 | for i=1,len do | |
1054 | txt.Text = string.sub(str,1,i) | |
1055 | pitche = math.random(20, 40)/10 | |
1056 | tap.PlaybackSpeed = pitche | |
1057 | tap:Play() | |
1058 | wait(0.01) | |
1059 | end | |
1060 | if forever == false then | |
1061 | wait(1) | |
1062 | while txt.TextTransparency < 1 do | |
1063 | txt.TextTransparency = txt.TextTransparency + 0.1 | |
1064 | txt.TextStrokeTransparency = txt.TextStrokeTransparency + 0.1 | |
1065 | wait(0.001) | |
1066 | end | |
1067 | gui:Destroy() | |
1068 | end | |
1069 | end) | |
1070 | doit() | |
1071 | end | |
1072 | ||
1073 | wait(0.5) | |
1074 | notify("PRESS [Z] TO EQUIP KNIFE || Created by mustardfoot and Tollonis",true) | |
1075 | local laugh = Instance.new('Sound',me.Head) | |
1076 | laugh.SoundId = 'rbxassetid://378827985' | |
1077 | laugh.Name = "Psycho" | |
1078 | laugh.Volume = 5 | |
1079 | -- 1 - bitch ass knife | |
1080 | local obj1 = Instance.new("Model") | |
1081 | obj1.Name = "bitch ass knife" | |
1082 | obj1.Parent = game.Workspace | |
1083 | ||
1084 | -- 2 - Grab | |
1085 | local obj2 = Instance.new("Part") | |
1086 | obj2.CFrame = CFrame.new(Vector3.new(20.4525032, 6.14501333, -134.399979)) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126) | |
1087 | obj2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
1088 | obj2.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
1089 | obj2.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
1090 | obj2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
1091 | obj2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
1092 | obj2.Material = Enum.Material.Concrete | |
1093 | obj2.Size = Vector3.new(1, 0.25, 0.25) | |
1094 | obj2.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
1095 | obj2.Anchored = true | |
1096 | obj2.BrickColor = BrickColor.new("Black") | |
1097 | obj2.Friction = 0.30000001192093 | |
1098 | obj2.Shape = Enum.PartType.Cylinder | |
1099 | obj2.Name = "Grab" | |
1100 | obj2.Parent = obj1 | |
1101 | ||
1102 | -- 3 - handletopcap | |
1103 | local obj3 = Instance.new("Part") | |
1104 | obj3.CFrame = CFrame.new(Vector3.new(19.9725456, 6.14502859, -134.399933)) * CFrame.Angles(0, 1.5707963705063, 0) | |
1105 | obj3.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
1106 | obj3.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
1107 | obj3.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
1108 | obj3.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
1109 | obj3.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
1110 | obj3.Material = Enum.Material.Concrete | |
1111 | obj3.Size = Vector3.new(0.349999994, 0.349999994, 0.349999994) | |
1112 | obj3.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
1113 | obj3.Anchored = true | |
1114 | obj3.BrickColor = BrickColor.new("Black") | |
1115 | obj3.Friction = 0.30000001192093 | |
1116 | obj3.Shape = Enum.PartType.Ball | |
1117 | obj3.Name = "handletopcap" | |
1118 | obj3.Parent = obj1 | |
1119 | ||
1120 | -- 4 - handlebottomcap | |
1121 | local obj4 = Instance.new("Part") | |
1122 | obj4.CFrame = CFrame.new(Vector3.new(20.9725285, 6.14502859, -134.399918)) * CFrame.Angles(0, 1.5707963705063, 0) | |
1123 | obj4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
1124 | obj4.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
1125 | obj4.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
1126 | obj4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
1127 | obj4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
1128 | obj4.Material = Enum.Material.Concrete | |
1129 | obj4.Size = Vector3.new(0.25, 0.25, 0.25) | |
1130 | obj4.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
1131 | obj4.Anchored = true | |
1132 | obj4.BrickColor = BrickColor.new("Black") | |
1133 | obj4.Friction = 0.30000001192093 | |
1134 | obj4.Shape = Enum.PartType.Ball | |
1135 | obj4.Name = "handlebottomcap" | |
1136 | obj4.Parent = obj1 | |
1137 | ||
1138 | -- 5 - handleguardmid | |
1139 | local obj5 = Instance.new("Part") | |
1140 | obj5.CFrame = CFrame.new(Vector3.new(19.9474983, 6.14502859, -134.399918)) * CFrame.Angles(0, 1.5707963705063, 0) | |
1141 | obj5.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
1142 | obj5.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
1143 | obj5.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
1144 | obj5.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
1145 | obj5.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
1146 | obj5.Material = Enum.Material.Concrete | |
1147 | obj5.Size = Vector3.new(0.349999994, 0.349999994, 0.100000001) | |
1148 | obj5.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
1149 | obj5.Anchored = true | |
1150 | obj5.BrickColor = BrickColor.new("Black") | |
1151 | obj5.Friction = 0.30000001192093 | |
1152 | obj5.Shape = Enum.PartType.Block | |
1153 | obj5.Name = "handleguardmid" | |
1154 | obj5.Parent = obj1 | |
1155 | ||
1156 | -- 6 - handleguardcap1 | |
1157 | local obj6 = Instance.new("Part") | |
1158 | obj6.CFrame = CFrame.new(Vector3.new(19.9474983, 6.32502794, -134.399918)) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126) | |
1159 | obj6.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
1160 | obj6.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
1161 | obj6.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
1162 | obj6.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
1163 | obj6.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
1164 | obj6.Material = Enum.Material.Concrete | |
1165 | obj6.Size = Vector3.new(0.100000001, 0.349999994, 0.349999994) | |
1166 | obj6.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
1167 | obj6.Anchored = true | |
1168 | obj6.BrickColor = BrickColor.new("Black") | |
1169 | obj6.Friction = 0.30000001192093 | |
1170 | obj6.Shape = Enum.PartType.Cylinder | |
1171 | obj6.Name = "handleguardcap1" | |
1172 | obj6.Parent = obj1 | |
1173 | ||
1174 | -- 7 - handleguardcap2 | |
1175 | local obj7 = Instance.new("Part") | |
1176 | obj7.CFrame = CFrame.new(Vector3.new(19.9474983, 5.97502899, -134.399918)) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126) | |
1177 | obj7.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
1178 | obj7.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
1179 | obj7.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
1180 | obj7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
1181 | obj7.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
1182 | obj7.Material = Enum.Material.Concrete | |
1183 | obj7.Size = Vector3.new(0.100000009, 0.349999994, 0.349999994) | |
1184 | obj7.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
1185 | obj7.Anchored = true | |
1186 | obj7.BrickColor = BrickColor.new("Black") | |
1187 | obj7.Friction = 0.30000001192093 | |
1188 | obj7.Shape = Enum.PartType.Cylinder | |
1189 | obj7.Name = "handleguardcap2" | |
1190 | obj7.Parent = obj1 | |
1191 | ||
1192 | -- 8 - big ass knife | |
1193 | local obj8 = Instance.new("Part") | |
1194 | obj8.CFrame = CFrame.new(Vector3.new(18.4375095, 6.14502859, -134.401321)) * CFrame.Angles(0, 1.5707963705063, 0) | |
1195 | obj8.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
1196 | obj8.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
1197 | obj8.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
1198 | obj8.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
1199 | obj8.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
1200 | obj8.Material = Enum.Material.Metal | |
1201 | obj8.Size = Vector3.new(0.0500000007, 0.280000001, 0.839999795) | |
1202 | obj8.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
1203 | obj8.Anchored = true | |
1204 | obj8.BrickColor = BrickColor.new("Lily white") | |
1205 | obj8.Friction = 0.30000001192093 | |
1206 | obj8.Shape = Enum.PartType.Block | |
1207 | obj8.Name = "big ass knife" | |
1208 | obj8.Parent = obj1 | |
1209 | ||
1210 | -- 9 - Mesh | |
1211 | local obj9 = Instance.new("BlockMesh") | |
1212 | obj9.Scale = Vector3.new(0.5, 1, 1) | |
1213 | obj9.Parent = obj8 | |
1214 | ||
1215 | -- 10 - big ass knife | |
1216 | local obj10 = Instance.new("Part") | |
1217 | obj10.CFrame = CFrame.new(Vector3.new(19.7425137, 6.14502859, -134.401321)) * CFrame.Angles(0, 1.5707963705063, 0) | |
1218 | obj10.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
1219 | obj10.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
1220 | obj10.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
1221 | obj10.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
1222 | obj10.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
1223 | obj10.Material = Enum.Material.Metal | |
1224 | obj10.Size = Vector3.new(0.0500000007, 0.280000001, 0.289999962) | |
1225 | obj10.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
1226 | obj10.Anchored = true | |
1227 | obj10.BrickColor = BrickColor.new("Lily white") | |
1228 | obj10.Friction = 0.30000001192093 | |
1229 | obj10.Shape = Enum.PartType.Block | |
1230 | obj10.Name = "big ass knife" | |
1231 | obj10.Parent = obj1 | |
1232 | local knife = obj10 | |
1233 | ||
1234 | -- 11 - Mesh | |
1235 | local obj11 = Instance.new("BlockMesh") | |
1236 | obj11.Scale = Vector3.new(0.5, 1, 1) | |
1237 | obj11.Parent = obj10 | |
1238 | ||
1239 | -- 12 - big ass knife | |
1240 | local obj12 = Instance.new("Part") | |
1241 | obj12.CFrame = CFrame.new(Vector3.new(19.1075306, 6.08502865, -134.401321)) * CFrame.Angles(0, 1.5707963705063, 0) | |
1242 | obj12.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
1243 | obj12.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
1244 | obj12.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
1245 | obj12.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
1246 | obj12.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
1247 | obj12.Material = Enum.Material.Metal | |
1248 | obj12.Size = Vector3.new(0.0500000007, 0.159999996, 0.979999959) | |
1249 | obj12.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
1250 | obj12.Anchored = true | |
1251 | obj12.BrickColor = BrickColor.new("Lily white") | |
1252 | obj12.Friction = 0.30000001192093 | |
1253 | obj12.Shape = Enum.PartType.Block | |
1254 | obj12.Name = "big ass knife" | |
1255 | obj12.Parent = obj1 | |
1256 | ||
1257 | -- 13 - Mesh | |
1258 | local obj13 = Instance.new("BlockMesh") | |
1259 | obj13.Scale = Vector3.new(0.5, 1, 1) | |
1260 | obj13.Parent = obj12 | |
1261 | ||
1262 | -- 14 - serration | |
1263 | local obj14 = Instance.new("WedgePart") | |
1264 | obj14.CFrame = CFrame.new(Vector3.new(19.4963322, 6.15381575, -134.400375)) * CFrame.Angles(1.5707963705063, -0.78539824485779, -1.5707963705063) | |
1265 | obj14.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
1266 | obj14.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
1267 | obj14.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
1268 | obj14.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
1269 | obj14.Material = Enum.Material.Metal | |
1270 | obj14.Size = Vector3.new(0.0500000007, 0.200000003, 0.200000003) | |
1271 | obj14.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
1272 | obj14.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
1273 | obj14.Anchored = true | |
1274 | obj14.BrickColor = BrickColor.new("Lily white") | |
1275 | obj14.Friction = 0.30000001192093 | |
1276 | obj14.Name = "serration" | |
1277 | obj14.Parent = obj1 | |
1278 | ||
1279 | -- 15 - Mesh | |
1280 | local obj15 = Instance.new("BlockMesh") | |
1281 | obj15.Scale = Vector3.new(0.5, 1, 1) | |
1282 | obj15.Parent = obj14 | |
1283 | ||
1284 | -- 16 - serration | |
1285 | local obj16 = Instance.new("WedgePart") | |
1286 | obj16.CFrame = CFrame.new(Vector3.new(19.2763138, 6.15381575, -134.400375)) * CFrame.Angles(1.5707963705063, -0.78539824485779, -1.5707963705063) | |
1287 | obj16.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
1288 | obj16.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
1289 | obj16.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
1290 | obj16.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
1291 | obj16.Material = Enum.Material.Metal | |
1292 | obj16.Size = Vector3.new(0.0500000007, 0.200000003, 0.200000003) | |
1293 | obj16.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
1294 | obj16.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
1295 | obj16.Anchored = true | |
1296 | obj16.BrickColor = BrickColor.new("Lily white") | |
1297 | obj16.Friction = 0.30000001192093 | |
1298 | obj16.Name = "serration" | |
1299 | obj16.Parent = obj1 | |
1300 | ||
1301 | -- 17 - Mesh | |
1302 | local obj17 = Instance.new("BlockMesh") | |
1303 | obj17.Scale = Vector3.new(0.5, 1, 1) | |
1304 | obj17.Parent = obj16 | |
1305 | ||
1306 | -- 18 - serration | |
1307 | local obj18 = Instance.new("WedgePart") | |
1308 | obj18.CFrame = CFrame.new(Vector3.new(19.3863068, 6.15381575, -134.400375)) * CFrame.Angles(1.5707963705063, -0.78539824485779, -1.5707963705063) | |
1309 | obj18.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
1310 | obj18.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
1311 | obj18.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
1312 | obj18.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
1313 | obj18.Material = Enum.Material.Metal | |
1314 | obj18.Size = Vector3.new(0.0500000007, 0.200000003, 0.200000003) | |
1315 | obj18.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
1316 | obj18.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
1317 | obj18.Anchored = true | |
1318 | obj18.BrickColor = BrickColor.new("Lily white") | |
1319 | obj18.Friction = 0.30000001192093 | |
1320 | obj18.Name = "serration" | |
1321 | obj18.Parent = obj1 | |
1322 | ||
1323 | -- 19 - Mesh | |
1324 | local obj19 = Instance.new("BlockMesh") | |
1325 | obj19.Scale = Vector3.new(0.5, 1, 1) | |
1326 | obj19.Parent = obj18 | |
1327 | ||
1328 | -- 20 - serration | |
1329 | local obj20 = Instance.new("WedgePart") | |
1330 | obj20.CFrame = CFrame.new(Vector3.new(19.5963173, 6.15381575, -134.400375)) * CFrame.Angles(1.5707963705063, -0.78539824485779, -1.5707963705063) | |
1331 | obj20.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
1332 | obj20.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
1333 | obj20.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
1334 | obj20.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
1335 | obj20.Material = Enum.Material.Metal | |
1336 | obj20.Size = Vector3.new(0.0500000007, 0.200000003, 0.200000003) | |
1337 | obj20.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
1338 | obj20.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
1339 | obj20.Anchored = true | |
1340 | obj20.BrickColor = BrickColor.new("Lily white") | |
1341 | obj20.Friction = 0.30000001192093 | |
1342 | obj20.Name = "serration" | |
1343 | obj20.Parent = obj1 | |
1344 | ||
1345 | -- 21 - Mesh | |
1346 | local obj21 = Instance.new("BlockMesh") | |
1347 | obj21.Scale = Vector3.new(0.5, 1, 1) | |
1348 | obj21.Parent = obj20 | |
1349 | ||
1350 | -- 22 - serration | |
1351 | local obj22 = Instance.new("WedgePart") | |
1352 | obj22.CFrame = CFrame.new(Vector3.new(19.1663074, 6.15381575, -134.400375)) * CFrame.Angles(1.5707963705063, -0.78539824485779, -1.5707963705063) | |
1353 | obj22.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
1354 | obj22.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
1355 | obj22.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
1356 | obj22.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
1357 | obj22.Material = Enum.Material.Metal | |
1358 | obj22.Size = Vector3.new(0.0500000007, 0.200000003, 0.200000003) | |
1359 | obj22.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
1360 | obj22.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
1361 | obj22.Anchored = true | |
1362 | obj22.BrickColor = BrickColor.new("Lily white") | |
1363 | obj22.Friction = 0.30000001192093 | |
1364 | obj22.Name = "serration" | |
1365 | obj22.Parent = obj1 | |
1366 | ||
1367 | -- 23 - Mesh | |
1368 | local obj23 = Instance.new("BlockMesh") | |
1369 | obj23.Scale = Vector3.new(0.5, 1, 1) | |
1370 | obj23.Parent = obj22 | |
1371 | ||
1372 | -- 24 - serration | |
1373 | local obj24 = Instance.new("WedgePart") | |
1374 | obj24.CFrame = CFrame.new(Vector3.new(18.9663048, 6.15381575, -134.400375)) * CFrame.Angles(1.5707963705063, -0.78539824485779, -1.5707963705063) | |
1375 | obj24.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
1376 | obj24.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
1377 | obj24.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
1378 | obj24.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
1379 | obj24.Material = Enum.Material.Metal | |
1380 | obj24.Size = Vector3.new(0.0500000007, 0.200000003, 0.200000003) | |
1381 | obj24.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
1382 | obj24.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
1383 | obj24.Anchored = true | |
1384 | obj24.BrickColor = BrickColor.new("Lily white") | |
1385 | obj24.Friction = 0.30000001192093 | |
1386 | obj24.Name = "serration" | |
1387 | obj24.Parent = obj1 | |
1388 | ||
1389 | -- 25 - Mesh | |
1390 | local obj25 = Instance.new("BlockMesh") | |
1391 | obj25.Scale = Vector3.new(0.5, 1, 1) | |
1392 | obj25.Parent = obj24 | |
1393 | ||
1394 | -- 26 - serration | |
1395 | local obj26 = Instance.new("WedgePart") | |
1396 | obj26.CFrame = CFrame.new(Vector3.new(18.8562984, 6.15381575, -134.400375)) * CFrame.Angles(1.5707963705063, -0.78539824485779, -1.5707963705063) | |
1397 | obj26.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
1398 | obj26.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
1399 | obj26.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
1400 | obj26.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
1401 | obj26.Material = Enum.Material.Metal | |
1402 | obj26.Size = Vector3.new(0.0500000007, 0.200000003, 0.200000003) | |
1403 | obj26.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
1404 | obj26.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
1405 | obj26.Anchored = true | |
1406 | obj26.BrickColor = BrickColor.new("Lily white") | |
1407 | obj26.Friction = 0.30000001192093 | |
1408 | obj26.Name = "serration" | |
1409 | obj26.Parent = obj1 | |
1410 | ||
1411 | -- 27 - Mesh | |
1412 | local obj27 = Instance.new("BlockMesh") | |
1413 | obj27.Scale = Vector3.new(0.5, 1, 1) | |
1414 | obj27.Parent = obj26 | |
1415 | ||
1416 | -- 28 - serration | |
1417 | local obj28 = Instance.new("WedgePart") | |
1418 | obj28.CFrame = CFrame.new(Vector3.new(19.0663071, 6.15381575, -134.400375)) * CFrame.Angles(1.5707963705063, -0.78539824485779, -1.5707963705063) | |
1419 | obj28.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
1420 | obj28.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
1421 | obj28.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
1422 | obj28.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
1423 | obj28.Material = Enum.Material.Metal | |
1424 | obj28.Size = Vector3.new(0.0500000007, 0.200000003, 0.200000003) | |
1425 | obj28.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
1426 | obj28.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
1427 | obj28.Anchored = true | |
1428 | obj28.BrickColor = BrickColor.new("Lily white") | |
1429 | obj28.Friction = 0.30000001192093 | |
1430 | obj28.Name = "serration" | |
1431 | obj28.Parent = obj1 | |
1432 | ||
1433 | -- 29 - Mesh | |
1434 | local obj29 = Instance.new("BlockMesh") | |
1435 | obj29.Scale = Vector3.new(0.5, 1, 1) | |
1436 | obj29.Parent = obj28 | |
1437 | ||
1438 | -- 30 - knifetip1 | |
1439 | local obj30 = Instance.new("WedgePart") | |
1440 | obj30.CFrame = CFrame.new(Vector3.new(18.0163059, 6.14381599, -134.400375)) * CFrame.Angles(1.5707963705063, -0.78539824485779, -1.5707963705063) | |
1441 | obj30.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
1442 | obj30.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
1443 | obj30.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
1444 | obj30.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
1445 | obj30.Material = Enum.Material.Metal | |
1446 | obj30.Size = Vector3.new(0.0500000007, 0.200000003, 0.200000003) | |
1447 | obj30.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
1448 | obj30.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
1449 | obj30.Anchored = true | |
1450 | obj30.BrickColor = BrickColor.new("Lily white") | |
1451 | obj30.Friction = 0.30000001192093 | |
1452 | obj30.Name = "knifetip1" | |
1453 | obj30.Parent = obj1 | |
1454 | ||
1455 | -- 31 - Mesh | |
1456 | local obj31 = Instance.new("BlockMesh") | |
1457 | obj31.Scale = Vector3.new(0.5, 1, 1) | |
1458 | obj31.Parent = obj30 | |
1459 | ||
1460 | -- 32 - redstuff | |
1461 | local obj32 = Instance.new("Part") | |
1462 | obj32.CFrame = CFrame.new(Vector3.new(19.9470005, 5.9749999, -134.399994)) * CFrame.Angles(-0, 0, -0) | |
1463 | obj32.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
1464 | obj32.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
1465 | obj32.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
1466 | obj32.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
1467 | obj32.Material = Enum.Material.SmoothPlastic | |
1468 | obj32.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
1469 | obj32.Size = Vector3.new(0.0500000007, 0.360000014, 0.360000014) | |
1470 | obj32.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
1471 | obj32.BrickColor = BrickColor.new("Institutional white") | |
1472 | obj32.Friction = 0.30000001192093 | |
1473 | obj32.Shape = Enum.PartType.Cylinder | |
1474 | obj32.Name = "redstuff" | |
1475 | obj32.Anchored = true | |
1476 | obj32.Parent = obj1 | |
1477 | ||
1478 | ||
1479 | -- 33 - redstuff | |
1480 | local obj33 = Instance.new("Part") | |
1481 | obj33.CFrame = CFrame.new(Vector3.new(18.9800053, 6.1400156, -134.404984)) * CFrame.Angles(-0, 0, -0) | |
1482 | obj33.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
1483 | obj33.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
1484 | obj33.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
1485 | obj33.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
1486 | obj33.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
1487 | obj33.Material = Enum.Material.SmoothPlastic | |
1488 | obj33.Size = Vector3.new(1.81999993, 0.100000001, 0.0500000007) | |
1489 | obj33.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
1490 | obj33.BrickColor = BrickColor.new("Institutional white") | |
1491 | obj33.Friction = 0.30000001192093 | |
1492 | obj33.Shape = Enum.PartType.Block | |
1493 | obj33.Name = "redstuff" | |
1494 | obj33.Anchored = true | |
1495 | obj33.Parent = obj1 | |
1496 | ||
1497 | -- 34 - redstuff | |
1498 | local obj34 = Instance.new("Part") | |
1499 | obj34.CFrame = CFrame.new(Vector3.new(19.9470005, 6.32499981, -134.399994)) * CFrame.Angles(-0, 0, -0) | |
1500 | obj34.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
1501 | obj34.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
1502 | obj34.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
1503 | obj34.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
1504 | obj34.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
1505 | obj34.Size = Vector3.new(0.0500000007, 0.360000014, 0.360000014) | |
1506 | obj34.Material = Enum.Material.SmoothPlastic | |
1507 | obj34.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
1508 | obj34.BrickColor = BrickColor.new("Institutional white") | |
1509 | obj34.Friction = 0.30000001192093 | |
1510 | obj34.Shape = Enum.PartType.Cylinder | |
1511 | obj34.Name = "redstuff" | |
1512 | obj34.Anchored = true | |
1513 | obj34.Parent = obj1 | |
1514 | ||
1515 | -- 35 - redstuff | |
1516 | local obj35 = Instance.new("Part") | |
1517 | obj35.CFrame = CFrame.new(Vector3.new(19.8830166, 6.14501476, -134.399963)) * CFrame.Angles(-0, 0, -0) | |
1518 | obj35.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
1519 | obj35.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
1520 | obj35.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
1521 | obj35.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
1522 | obj35.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
1523 | obj35.Size = Vector3.new(0.0500000007, 0.319999993, 0.319999993) | |
1524 | obj35.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
1525 | obj35.BrickColor = BrickColor.new("Institutional white") | |
1526 | obj35.Friction = 0.30000001192093 | |
1527 | obj35.Shape = Enum.PartType.Cylinder | |
1528 | obj35.Material = Enum.Material.SmoothPlastic | |
1529 | obj35.Name = "redstuff" | |
1530 | obj35.Anchored = true | |
1531 | obj35.Parent = obj1 | |
1532 | ||
1533 | -- 36 - redstuff | |
1534 | local obj36 = Instance.new("Part") | |
1535 | obj36.CFrame = CFrame.new(Vector3.new(20.9430103, 6.14501476, -134.399963)) * CFrame.Angles(-0, 0, -0) | |
1536 | obj36.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
1537 | obj36.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
1538 | obj36.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
1539 | obj36.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
1540 | obj36.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
1541 | obj36.Material = Enum.Material.SmoothPlastic | |
1542 | obj36.Size = Vector3.new(0.0500000007, 0.25999999, 0.25999999) | |
1543 | obj36.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
1544 | obj36.BrickColor = BrickColor.new("Institutional white") | |
1545 | obj36.Friction = 0.30000001192093 | |
1546 | obj36.Shape = Enum.PartType.Cylinder | |
1547 | obj36.Name = "redstuff" | |
1548 | obj36.Anchored = true | |
1549 | obj36.Parent = obj1 | |
1550 | ||
1551 | -- 37 - redstuff | |
1552 | local obj37 = Instance.new("WedgePart") | |
1553 | obj37.CFrame = CFrame.new(Vector3.new(18.066288, 6.14381599, -134.400375)) * CFrame.Angles(1.5707963705063, -0.78539824485779, -1.5707963705063) | |
1554 | obj37.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
1555 | obj37.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
1556 | obj37.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
1557 | obj37.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
1558 | obj37.Material = Enum.Material.SmoothPlastic | |
1559 | obj37.Size = Vector3.new(0.0500000007, 0.0700000003, 0.0700000003) | |
1560 | obj37.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
1561 | obj37.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
1562 | obj37.Anchored = true | |
1563 | obj37.BrickColor = BrickColor.new("Institutional white") | |
1564 | obj37.Friction = 0.30000001192093 | |
1565 | obj37.Name = "redstuff" | |
1566 | obj37.Anchored = true | |
1567 | obj37.Parent = obj1 | |
1568 | ||
1569 | -- 38 - redstuff | |
1570 | local obj38 = Instance.new("Part") | |
1571 | obj38.CFrame = CFrame.new(Vector3.new(20.1230125, 6.14501476, -134.399979)) * CFrame.Angles(-0, 0, -0) | |
1572 | obj38.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
1573 | obj38.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
1574 | obj38.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
1575 | obj38.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
1576 | obj38.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
1577 | obj38.Material = Enum.Material.SmoothPlastic | |
1578 | obj38.Size = Vector3.new(0.0500000007, 0.25999999, 0.25999999) | |
1579 | obj38.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
1580 | obj38.BrickColor = BrickColor.new("Institutional white") | |
1581 | obj38.Friction = 0.30000001192093 | |
1582 | obj38.Shape = Enum.PartType.Cylinder | |
1583 | obj38.Name = "redstuff" | |
1584 | obj38.Anchored = true | |
1585 | obj38.Parent = obj1 | |
1586 | ||
1587 | local audio = Instance.new('Sound',knife) | |
1588 | audio.Volume = 2 | |
1589 | ||
1590 | local audio2 = Instance.new('Sound',knife) | |
1591 | audio2.Volume = 2 | |
1592 | ||
1593 | local holdpart = Instance.new("Part") | |
1594 | holdpart.Parent = me | |
1595 | holdpart.Size = Vector3.new(0.4, 0.4, 0.2) | |
1596 | holdpart.Position = me.Head.Position + Vector3.new(0, 1, 0) | |
1597 | holdpart.BrickColor = BrickColor.new("Burnt Sienna") | |
1598 | ||
1599 | local previous = nil | |
1600 | for i,v in pairs(obj1:GetChildren()) do | |
1601 | if v:IsA('BasePart') then | |
1602 | if previous then | |
1603 | local weld = Instance.new('Weld',v) | |
1604 | weld.Part0 = v | |
1605 | weld.Part1 = previous | |
1606 | weld.C0 = v.CFrame:inverse() * previous.CFrame | |
1607 | previous.Anchored = false | |
1608 | previous.CanCollide = false | |
1609 | local vee = v | |
1610 | weld.AncestryChanged:connect(function(mez,par) | |
1611 | wait() | |
1612 | weld.Parent = vee | |
1613 | end) | |
1614 | end | |
1615 | previous = v | |
1616 | end | |
1617 | end | |
1618 | previous.Anchored = false | |
1619 | previous.CanCollide = false | |
1620 | ||
1621 | local holdpartweld = Instance.new("Weld", me.Torso) | |
1622 | holdpartweld.Part0 = me.Torso | |
1623 | holdpartweld.Part1 = holdpart | |
1624 | holdpartweld.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(-1, -0.8, 0.15) | |
1625 | ||
1626 | holdpartweld.AncestryChanged:connect(function(mez,par) | |
1627 | if par ~= me.Torso then | |
1628 | wait() | |
1629 | holdpartweld.Parent = me.Torso | |
1630 | end | |
1631 | end) | |
1632 | ||
1633 | local knifeweld = Instance.new('Weld',me.Torso) | |
1634 | knifeweld.Part0 = me.Torso | |
1635 | knifeweld.Part1 = obj2 | |
1636 | knifeweld.C1 = CFrame.Angles(0,math.rad(90),0) * CFrame.new(1, 0.8, 0.55) | |
1637 | knifeweld.AncestryChanged:connect(function(mez,par) | |
1638 | if par ~= me.Torso then | |
1639 | wait() | |
1640 | knifeweld.Parent = me.Torso | |
1641 | end | |
1642 | end) | |
1643 | local ScreenGui = Instance.new("ScreenGui") | |
1644 | local CustomizeGui = Instance.new("Frame") | |
1645 | local Customize = Instance.new("TextLabel") | |
1646 | local ClosestColor = Instance.new("TextLabel") | |
1647 | local Line = Instance.new("TextLabel") | |
1648 | local Color = Instance.new("ImageLabel") | |
1649 | local Close = Instance.new("TextButton") | |
1650 | local RedHue = Instance.new("TextLabel") | |
1651 | local GreenHue = Instance.new("TextLabel") | |
1652 | local RedInput = Instance.new("TextBox") | |
1653 | local BlueHue = Instance.new("TextLabel") | |
1654 | local GreenInput = Instance.new("TextBox") | |
1655 | local TransInput = Instance.new("TextBox") | |
1656 | local BlueInput = Instance.new("TextBox") | |
1657 | local Message = Instance.new("TextLabel") | |
1658 | local Message2 = Instance.new("TextLabel") | |
1659 | local TrailTransparency = Instance.new("TextLabel") | |
1660 | local TrailInput = Instance.new("TextBox") | |
1661 | local MusicOption = Instance.new("TextButton") | |
1662 | local ScreenOption = Instance.new("TextButton") | |
1663 | local ScreenOptionTxt = Instance.new("TextLabel") | |
1664 | local MusicOptionTxt = Instance.new("TextLabel") | |
1665 | ||
1666 | -- Properties | |
1667 | ||
1668 | ScreenGui.Parent = playergui | |
1669 | ||
1670 | CustomizeGui.Name = "CustomizeGui" | |
1671 | CustomizeGui.Parent = ScreenGui | |
1672 | CustomizeGui.BackgroundColor3 = Color3.new(0.294118, 0.294118, 0.294118) | |
1673 | CustomizeGui.BackgroundTransparency = 0.5 | |
1674 | CustomizeGui.BorderColor3 = Color3.new(0, 0, 0) | |
1675 | CustomizeGui.BorderSizePixel = 2 | |
1676 | CustomizeGui.Position = UDim2.new(0, 0, 0.5, 0) | |
1677 | CustomizeGui.Size = UDim2.new(0.449999988, 0, 0.449999988, 0) | |
1678 | ||
1679 | Customize.Name = "Customize" | |
1680 | Customize.Parent = CustomizeGui | |
1681 | Customize.BackgroundColor3 = Color3.new(0.294118, 0.294118, 0.294118) | |
1682 | Customize.BackgroundTransparency = 0.75 | |
1683 | Customize.BorderSizePixel = 0 | |
1684 | Customize.Size = UDim2.new(1, 0, 0.200000003, 0) | |
1685 | Customize.FontSize = Enum.FontSize.Size28 | |
1686 | Customize.Text = "ACCENT COLOR CUSTOMIZATION" | |
1687 | Customize.TextColor3 = Color3.new(1, 1, 1) | |
1688 | Customize.TextScaled = true | |
1689 | Customize.TextSize = 25 | |
1690 | Customize.TextStrokeTransparency = 0.5 | |
1691 | Customize.TextWrapped = true | |
1692 | ||
1693 | ClosestColor.Name = "ClosestColor" | |
1694 | ClosestColor.Parent = CustomizeGui | |
1695 | ClosestColor.BackgroundColor3 = Color3.new(1, 1, 1) | |
1696 | ClosestColor.BackgroundTransparency = 1 | |
1697 | ClosestColor.Position = UDim2.new(0, 0, 0.850000024, 0) | |
1698 | ClosestColor.Size = UDim2.new(1, 0, 0.150000006, 0) | |
1699 | ClosestColor.Font = Enum.Font.SourceSansLight | |
1700 | ClosestColor.FontSize = Enum.FontSize.Size32 | |
1701 | ClosestColor.Text = "Your color is closest to Institutional White" | |
1702 | ClosestColor.TextColor3 = Color3.new(1, 1, 1) | |
1703 | ClosestColor.TextSize = 30 | |
1704 | ClosestColor.TextStrokeTransparency = 0.5 | |
1705 | ||
1706 | Line.Name = "Line" | |
1707 | Line.Parent = CustomizeGui | |
1708 | Line.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255) | |
1709 | Line.BackgroundTransparency = 0.5 | |
1710 | Line.BorderColor3 = Color3.new(0, 0, 0) | |
1711 | Line.BorderSizePixel = 0 | |
1712 | Line.Position = UDim2.new(0, 0, 0.200000003, 0) | |
1713 | Line.Size = UDim2.new(1, 0, 0.0299999993, 0) | |
1714 | Line.Font = Enum.Font.SourceSans | |
1715 | Line.FontSize = Enum.FontSize.Size14 | |
1716 | Line.Text = " " | |
1717 | Line.TextSize = 14 | |
1718 | ||
1719 | Color.Name = "Color" | |
1720 | Color.Parent = CustomizeGui | |
1721 | Color.BackgroundColor3 = Color3.new(1, 1, 1) | |
1722 | Color.BorderSizePixel = 0 | |
1723 | Color.Position = UDim2.new(0.699999988, 0, 0.419999987, 0) | |
1724 | Color.Size = UDim2.new(0.300000012, 0, 0.300000012, 0) | |
1725 | Color.SizeConstraint = Enum.SizeConstraint.RelativeYY | |
1726 | ||
1727 | MusicOption.Parent = CustomizeGui | |
1728 | MusicOption.Name = "MusicOption" | |
1729 | MusicOption.BackgroundColor3 = Color3.new(0, 1, 0) | |
1730 | MusicOption.BorderSizePixel = 1 | |
1731 | MusicOption.Position = UDim2.new(0.01, 0, -0.12, 0) | |
1732 | MusicOption.Size = UDim2.new(0.05, 0, 0.1, 0) | |
1733 | MusicOption.Text = "" | |
1734 | MusicOption.BackgroundTransparency = 0.5 | |
1735 | ||
1736 | ScreenOption.Parent = CustomizeGui | |
1737 | ScreenOption.Name = "ScreenOption" | |
1738 | ScreenOption.BackgroundColor3 = Color3.new(0, 1, 0) | |
1739 | ScreenOption.BorderSizePixel = 1 | |
1740 | ScreenOption.Position = UDim2.new(0.01, 0, -0.23, 0) | |
1741 | ScreenOption.Size = UDim2.new(0.05, 0, 0.1, 0) | |
1742 | ScreenOption.Text = "" | |
1743 | ScreenOption.BackgroundTransparency = 0.5 | |
1744 | ||
1745 | ScreenOptionTxt.Name = "ScreenOptionTxt" | |
1746 | ScreenOptionTxt.Parent = CustomizeGui | |
1747 | ScreenOptionTxt.BackgroundColor3 = Color3.new(1, 1, 1) | |
1748 | ScreenOptionTxt.BackgroundTransparency = 1 | |
1749 | ScreenOptionTxt.Position = UDim2.new(0.07, 0, -0.23, 0) | |
1750 | ScreenOptionTxt.Size = UDim2.new(1, 0, 0.07, 0) | |
1751 | ScreenOptionTxt.Font = Enum.Font.SourceSans | |
1752 | ScreenOptionTxt.FontSize = Enum.FontSize.Size24 | |
1753 | ScreenOptionTxt.Text = "Psychopath Red Filter" | |
1754 | ScreenOptionTxt.TextColor3 = Color3.new(1, 1, 1) | |
1755 | ScreenOptionTxt.TextScaled = true | |
1756 | ScreenOptionTxt.TextSize = 20 | |
1757 | ScreenOptionTxt.TextStrokeColor3 = Color3.new(0, 0, 0) | |
1758 | ScreenOptionTxt.TextStrokeTransparency = 0.5 | |
1759 | ScreenOptionTxt.TextWrapped = true | |
1760 | ScreenOptionTxt.TextXAlignment = "Left" | |
1761 | ||
1762 | MusicOptionTxt.Name = "MusicOptionTxt" | |
1763 | MusicOptionTxt.Parent = CustomizeGui | |
1764 | MusicOptionTxt.BackgroundColor3 = Color3.new(1, 1, 1) | |
1765 | MusicOptionTxt.BackgroundTransparency = 1 | |
1766 | MusicOptionTxt.Position = UDim2.new(0.07, 0, -0.12, 0) | |
1767 | MusicOptionTxt.Size = UDim2.new(1, 0, 0.07, 0) | |
1768 | MusicOptionTxt.Font = Enum.Font.SourceSans | |
1769 | MusicOptionTxt.FontSize = Enum.FontSize.Size24 | |
1770 | MusicOptionTxt.Text = "Psychopath Background Music" | |
1771 | MusicOptionTxt.TextColor3 = Color3.new(1, 1, 1) | |
1772 | MusicOptionTxt.TextScaled = true | |
1773 | MusicOptionTxt.TextSize = 20 | |
1774 | MusicOptionTxt.TextStrokeColor3 = Color3.new(0, 0, 0) | |
1775 | MusicOptionTxt.TextStrokeTransparency = 0.5 | |
1776 | MusicOptionTxt.TextWrapped = true | |
1777 | MusicOptionTxt.TextXAlignment = "Left" | |
1778 | ||
1779 | Close.Name = "Close" | |
1780 | Close.Parent = CustomizeGui | |
1781 | Close.BackgroundColor3 = Color3.new(0.294118, 0.294118, 0.294118) | |
1782 | Close.BackgroundTransparency = 0.5 | |
1783 | Close.BorderColor3 = Color3.new(0, 0, 0) | |
1784 | Close.BorderSizePixel = 2 | |
1785 | Close.Position = UDim2.new(1.005, 0, 0, 0) | |
1786 | Close.Size = UDim2.new(0.100000001, 0, 0.2, 0) | |
1787 | Close.Font = Enum.Font.SourceSans | |
1788 | Close.FontSize = Enum.FontSize.Size14 | |
1789 | Close.Text = "X" | |
1790 | Close.TextColor3 = Color3.new(1, 1, 1) | |
1791 | Close.TextScaled = true | |
1792 | Close.TextSize = 14 | |
1793 | Close.TextStrokeTransparency = 0 | |
1794 | Close.TextWrapped = true | |
1795 | ||
1796 | RedHue.Name = "RedHue" | |
1797 | RedHue.Parent = CustomizeGui | |
1798 | RedHue.BackgroundColor3 = Color3.new(1, 1, 1) | |
1799 | RedHue.BackgroundTransparency = 1 | |
1800 | RedHue.Position = UDim2.new(0.100000001, 0, 0.400000006, 0) | |
1801 | RedHue.Size = UDim2.new(0.300000012, 0, 0.100000001, 0) | |
1802 | RedHue.Font = Enum.Font.SourceSans | |
1803 | RedHue.FontSize = Enum.FontSize.Size24 | |
1804 | RedHue.Text = "RED Hue Value: " | |
1805 | RedHue.TextColor3 = Color3.new(1, 1, 1) | |
1806 | RedHue.TextScaled = true | |
1807 | RedHue.TextSize = 20 | |
1808 | RedHue.TextStrokeColor3 = Color3.new(1, 0, 0) | |
1809 | RedHue.TextStrokeTransparency = 0.75 | |
1810 | RedHue.TextWrapped = true | |
1811 | ||
1812 | GreenHue.Name = "GreenHue" | |
1813 | GreenHue.Parent = CustomizeGui | |
1814 | GreenHue.BackgroundColor3 = Color3.new(1, 1, 1) | |
1815 | GreenHue.BackgroundTransparency = 1 | |
1816 | GreenHue.Position = UDim2.new(0.100000001, 0, 0.5, 0) | |
1817 | GreenHue.Size = UDim2.new(0.300000012, 0, 0.100000001, 0) | |
1818 | GreenHue.Font = Enum.Font.SourceSans | |
1819 | GreenHue.FontSize = Enum.FontSize.Size24 | |
1820 | GreenHue.Text = "GREEN Hue Value:" | |
1821 | GreenHue.TextColor3 = Color3.new(1, 1, 1) | |
1822 | GreenHue.TextScaled = true | |
1823 | GreenHue.TextSize = 20 | |
1824 | GreenHue.TextStrokeColor3 = Color3.new(0, 1, 0) | |
1825 | GreenHue.TextStrokeTransparency = 0.75 | |
1826 | GreenHue.TextWrapped = true | |
1827 | ||
1828 | RedInput.Name = "RedInput" | |
1829 | RedInput.Parent = CustomizeGui | |
1830 | RedInput.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255) | |
1831 | RedInput.BackgroundTransparency = 0.5 | |
1832 | RedInput.BorderSizePixel = 0 | |
1833 | RedInput.Position = UDim2.new(0.419999987, 0, 0.425000007, 0) | |
1834 | RedInput.Size = UDim2.new(0.200000003, 0, 0.075000003, 0) | |
1835 | RedInput.Font = Enum.Font.SourceSans | |
1836 | RedInput.FontSize = Enum.FontSize.Size14 | |
1837 | RedInput.Text = "255" | |
1838 | RedInput.TextColor3 = Color3.new(1, 1, 1) | |
1839 | RedInput.TextSize = 14 | |
1840 | RedInput.TextStrokeTransparency = 0 | |
1841 | ||
1842 | BlueHue.Name = "BlueHue" | |
1843 | BlueHue.Parent = CustomizeGui | |
1844 | BlueHue.BackgroundColor3 = Color3.new(1, 1, 1) | |
1845 | BlueHue.BackgroundTransparency = 1 | |
1846 | BlueHue.Position = UDim2.new(0.100000001, 0, 0.600000024, 0) | |
1847 | BlueHue.Size = UDim2.new(0.300000012, 0, 0.100000001, 0) | |
1848 | BlueHue.Font = Enum.Font.SourceSans | |
1849 | BlueHue.FontSize = Enum.FontSize.Size24 | |
1850 | BlueHue.Text = "BLUE Hue Value:" | |
1851 | BlueHue.TextColor3 = Color3.new(1, 1, 1) | |
1852 | BlueHue.TextScaled = true | |
1853 | BlueHue.TextSize = 20 | |
1854 | BlueHue.TextStrokeColor3 = Color3.new(0, 0, 1) | |
1855 | BlueHue.TextStrokeTransparency = 0.75 | |
1856 | BlueHue.TextWrapped = true | |
1857 | ||
1858 | TrailTransparency.Name = "TrailTransparency" | |
1859 | TrailTransparency.Parent = CustomizeGui | |
1860 | TrailTransparency.BackgroundColor3 = Color3.new(1, 1, 1) | |
1861 | TrailTransparency.BackgroundTransparency = 1 | |
1862 | TrailTransparency.Position = UDim2.new(0.090000001, 0, 0.700000024, 0) | |
1863 | TrailTransparency.Size = UDim2.new(0.310000012, 0, 0.100000001, 0) | |
1864 | TrailTransparency.Font = Enum.Font.SourceSans | |
1865 | TrailTransparency.FontSize = Enum.FontSize.Size24 | |
1866 | TrailTransparency.Text = "Trail Transparency:" | |
1867 | TrailTransparency.TextColor3 = Color3.new(1, 1, 1) | |
1868 | TrailTransparency.TextScaled = true | |
1869 | TrailTransparency.TextSize = 20 | |
1870 | TrailTransparency.TextStrokeColor3 = Color3.new(0, 0, 0) | |
1871 | TrailTransparency.TextWrapped = true | |
1872 | ||
1873 | GreenInput.Name = "GreenInput" | |
1874 | GreenInput.Parent = CustomizeGui | |
1875 | GreenInput.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255) | |
1876 | GreenInput.BackgroundTransparency = 0.5 | |
1877 | GreenInput.BorderSizePixel = 0 | |
1878 | GreenInput.Position = UDim2.new(0.419999987, 0, 0.524999976, 0) | |
1879 | GreenInput.Size = UDim2.new(0.200000003, 0, 0.075000003, 0) | |
1880 | GreenInput.Font = Enum.Font.SourceSans | |
1881 | GreenInput.FontSize = Enum.FontSize.Size14 | |
1882 | GreenInput.Text = "255" | |
1883 | GreenInput.TextColor3 = Color3.new(1, 1, 1) | |
1884 | GreenInput.TextSize = 14 | |
1885 | GreenInput.TextStrokeTransparency = 0 | |
1886 | ||
1887 | TransInput.Name = "TransInput" | |
1888 | TransInput.Parent = CustomizeGui | |
1889 | TransInput.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255) | |
1890 | TransInput.BackgroundTransparency = 0.5 | |
1891 | TransInput.BorderSizePixel = 0 | |
1892 | TransInput.Position = UDim2.new(0.419999987, 0, 0.725000024, 0) | |
1893 | TransInput.Size = UDim2.new(0.200000003, 0, 0.075000003, 0) | |
1894 | TransInput.Font = Enum.Font.SourceSans | |
1895 | TransInput.FontSize = Enum.FontSize.Size14 | |
1896 | TransInput.Text = "50" | |
1897 | TransInput.TextColor3 = Color3.new(1, 1, 1) | |
1898 | TransInput.TextSize = 14 | |
1899 | TransInput.TextStrokeTransparency = 0 | |
1900 | ||
1901 | BlueInput.Name = "BlueInput" | |
1902 | BlueInput.Parent = CustomizeGui | |
1903 | BlueInput.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255) | |
1904 | BlueInput.BackgroundTransparency = 0.5 | |
1905 | BlueInput.BorderSizePixel = 0 | |
1906 | BlueInput.Position = UDim2.new(0.419999987, 0, 0.625, 0) | |
1907 | BlueInput.Size = UDim2.new(0.200000003, 0, 0.075000003, 0) | |
1908 | BlueInput.Font = Enum.Font.SourceSans | |
1909 | BlueInput.FontSize = Enum.FontSize.Size14 | |
1910 | BlueInput.Text = "255" | |
1911 | BlueInput.TextColor3 = Color3.new(1, 1, 1) | |
1912 | BlueInput.TextSize = 14 | |
1913 | BlueInput.TextStrokeTransparency = 0 | |
1914 | ||
1915 | Message.Name = "Message" | |
1916 | Message.Parent = CustomizeGui | |
1917 | Message.BackgroundColor3 = Color3.new(1, 1, 1) | |
1918 | Message.BackgroundTransparency = 1 | |
1919 | Message.Position = UDim2.new(0, 0, 0.2500004, 0) | |
1920 | Message.Size = UDim2.new(1, 0, 0.100000006, 0) | |
1921 | Message.Font = Enum.Font.SourceSans | |
1922 | Message.FontSize = Enum.FontSize.Size18 | |
1923 | Message.Text = "|| Inputs must be values ||" | |
1924 | Message.TextColor3 = Color3.new(1, 1, 1) | |
1925 | Message.TextScaled = true | |
1926 | Message.TextSize = 15 | |
1927 | Message.TextStrokeTransparency = 0.75 | |
1928 | Message.TextWrapped = true | |
1929 | ||
1930 | local attun = Instance.new("Attachment", knife) | |
1931 | attun.Position = Vector3.new(0, 0.1, -1.75) | |
1932 | local atdos = Instance.new("Attachment", knife) | |
1933 | atdos.Position = Vector3.new(0, -0.1, 0.5) | |
1934 | local trail = Instance.new("Trail", knife) | |
1935 | trail.LightEmission = 0.5 | |
1936 | trail.Attachment0 = attun | |
1937 | trail.Attachment1 = atdos | |
1938 | trail.Lifetime = 0.175 | |
1939 | trail.MinLength = 0 | |
1940 | trail.Enabled = false | |
1941 | ||
1942 | function updatez() | |
1943 | local rc = tonumber(RedInput.Text) | |
1944 | local gc = tonumber(GreenInput.Text) | |
1945 | local bc = tonumber(BlueInput.Text) | |
1946 | local tcupd = tonumber(TransInput.Text) | |
1947 | if rc == nil then | |
1948 | rc = 0 | |
1949 | end | |
1950 | if gc == nil then | |
1951 | gc = 0 | |
1952 | end | |
1953 | if bc == nil then | |
1954 | bc = 0 | |
1955 | end | |
1956 | if tcupd == nil then | |
1957 | tcupd = 0 | |
1958 | end | |
1959 | local tc = tcupd/100 | |
1960 | Color.BackgroundColor3 = Color3.fromRGB(rc,gc,bc) | |
1961 | ClosestColor.Text = "Your color is closest to "..tostring(BrickColor.new(Color3.fromRGB(rc,gc,bc))) | |
1962 | obj32.Color = Color3.fromRGB(rc,gc,bc) | |
1963 | obj33.Color = Color3.fromRGB(rc,gc,bc) | |
1964 | obj34.Color = Color3.fromRGB(rc,gc,bc) | |
1965 | obj35.Color = Color3.fromRGB(rc,gc,bc) | |
1966 | obj36.Color = Color3.fromRGB(rc,gc,bc) | |
1967 | obj37.Color = Color3.fromRGB(rc,gc,bc) | |
1968 | obj38.Color = Color3.fromRGB(rc,gc,bc) | |
1969 | trail.Color = ColorSequence.new(Color3.fromRGB(rc, gc, bc)) | |
1970 | trail.Transparency = NumberSequence.new(tc) | |
1971 | TrailTransparency.TextStrokeTransparency = tc | |
1972 | end | |
1973 | ||
1974 | RedInput.Changed:connect(function(val) | |
1975 | if val == "Text" and tonumber(RedInput.Text) then | |
1976 | RedInput.Text = tostring(tonumber(RedInput.Text)) | |
1977 | if tonumber(RedInput.Text) > 255 then | |
1978 | RedInput.Text = '255' | |
1979 | end | |
1980 | elseif val == "Text" then | |
1981 | RedInput.Text = "" | |
1982 | end | |
1983 | updatez() | |
1984 | end) | |
1985 | GreenInput.Changed:connect(function(val) | |
1986 | if val == "Text" and tonumber(GreenInput.Text) then | |
1987 | GreenInput.Text = tostring(tonumber(GreenInput.Text)) | |
1988 | if tonumber(GreenInput.Text) > 255 then | |
1989 | GreenInput.Text = '255' | |
1990 | end | |
1991 | elseif val == "Text" then | |
1992 | GreenInput.Text = "" | |
1993 | end | |
1994 | updatez() | |
1995 | end) | |
1996 | BlueInput.Changed:connect(function(val) | |
1997 | if val == "Text" and tonumber(BlueInput.Text) then | |
1998 | BlueInput.Text = tostring(tonumber(BlueInput.Text)) | |
1999 | if tonumber(BlueInput.Text) > 255 then | |
2000 | BlueInput.Text = '255' | |
2001 | end | |
2002 | elseif val == "Text" then | |
2003 | BlueInput.Text = "" | |
2004 | end | |
2005 | updatez() | |
2006 | end) | |
2007 | TransInput.Changed:connect(function(val) | |
2008 | if val == "Text" and tonumber(TransInput.Text) then | |
2009 | TransInput.Text = tostring(tonumber(TransInput.Text)) | |
2010 | if tonumber(TransInput.Text) > 100 then | |
2011 | TransInput.Text = '100' | |
2012 | end | |
2013 | elseif val == "Text" then | |
2014 | TransInput.Text = "" | |
2015 | end | |
2016 | updatez() | |
2017 | end) | |
2018 | ||
2019 | Close.MouseButton1Click:connect(function() | |
2020 | if lerpz == false then | |
2021 | lerpz = true | |
2022 | if Close.Text ~= "+" then | |
2023 | CustomizeGui:TweenPosition(UDim2.new(-0.45,0,0.5,0,Enum.EasingDirection.Out,Enum.EasingStyle.Quint,2)) | |
2024 | for i=1,10 do | |
2025 | Close.TextTransparency = i/10 | |
2026 | Close.TextStrokeTransparency = i/10 | |
2027 | wait(0.01) | |
2028 | end | |
2029 | Close.Text = "+" | |
2030 | for i=1,10 do | |
2031 | Close.TextTransparency = (10-i+1)/10 | |
2032 | Close.TextStrokeTransparency = (10-i+1)/10 | |
2033 | wait(0.01) | |
2034 | end | |
2035 | lerpz = false | |
2036 | else | |
2037 | CustomizeGui:TweenPosition(UDim2.new(0,0,0.5,0,Enum.EasingDirection.Out,Enum.EasingStyle.Quint,2)) | |
2038 | for i=1,10 do | |
2039 | Close.TextTransparency = i/10 | |
2040 | Close.TextStrokeTransparency = i/10 | |
2041 | wait(0.01) | |
2042 | end | |
2043 | Close.Text = "X" | |
2044 | for i=1,10 do | |
2045 | Close.TextTransparency = (10-i+1)/10 | |
2046 | Close.TextStrokeTransparency = (10-i+1)/10 | |
2047 | wait(0.01) | |
2048 | end | |
2049 | lerpz = false | |
2050 | end | |
2051 | end | |
2052 | end) | |
2053 | ||
2054 | MusicOption.MouseButton1Click:connect(function() | |
2055 | if canbackgroundmusic == true then | |
2056 | canbackgroundmusic = false | |
2057 | MusicOption.BackgroundColor3 = Color3.new(1, 0, 0) | |
2058 | else | |
2059 | canbackgroundmusic = true | |
2060 | MusicOption.BackgroundColor3 = Color3.new(0, 1, 0) | |
2061 | end | |
2062 | end) | |
2063 | ||
2064 | ScreenOption.MouseButton1Click:connect(function() | |
2065 | if cancolorfilter == true then | |
2066 | cancolorfilter = false | |
2067 | ScreenOption.BackgroundColor3 = Color3.new(1, 0, 0) | |
2068 | else | |
2069 | cancolorfilter = true | |
2070 | ScreenOption.BackgroundColor3 = Color3.new(0, 1, 0) | |
2071 | end | |
2072 | end) | |
2073 | ||
2074 | function equip() | |
2075 | local doit = coroutine.wrap(function() | |
2076 | if me:FindFirstChild('Right Arm') and me:FindFirstChild('Torso') then | |
2077 | acting = true | |
2078 | local arm = me["Right Arm"] | |
2079 | local arm2 = me["Left Arm"] | |
2080 | local tors = me.Torso | |
2081 | local weld = Instance.new('Weld',arm) | |
2082 | weld.Part0 = arm | |
2083 | weld.Part1 = tors | |
2084 | weld.C0 = CFrame.new(-1.5,0,0) | |
2085 | local weld2 = Instance.new("Weld", arm2) | |
2086 | weld2.Part0 = arm2 | |
2087 | weld2.Part1 = tors | |
2088 | weld2.C0 = CFrame.new(1.5, 0, 0) | |
2089 | wait(0.001) | |
2090 | for i = 0,1,0.1 do | |
2091 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld == nil then return end | |
2092 | weld.C0 = weld.C0:lerp(CFrame.new(-0.2,0.2,-0.5)*CFrame.Angles(0,-3.1,0.9),i) | |
2093 | weld2.C0 = weld2.C0:lerp(CFrame.new(1.5, 0.6, 0) * CFrame.Angles(0,0,0.5),i) | |
2094 | wait(0.001) | |
2095 | end | |
2096 | wait(0.15) | |
2097 | trail.Enabled = true | |
2098 | for i = 0,1,0.1 do | |
2099 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld == nil then return end | |
2100 | weld.C0 = weld.C0:lerp(CFrame.new(-0.5,2,0)*CFrame.Angles(0,0,-1.55),i) | |
2101 | weld2.C0 = weld2.C0:lerp(CFrame.new(1.5, 0, 0), i) | |
2102 | wait(0.001) | |
2103 | end | |
2104 | trail.Enabled = false | |
2105 | wait(0.2) | |
2106 | for i = 0,1,0.1 do | |
2107 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld == nil then return end | |
2108 | weld.C0 = weld.C0:lerp(CFrame.new(-1.5,0,0),i) | |
2109 | wait(0.001) | |
2110 | end | |
2111 | weld:Destroy() | |
2112 | weld2:Remove() | |
2113 | if tors ~= nil then | |
2114 | rightshoulderz:Clone().Parent = me.Torso | |
2115 | leftshoulderz:Clone().Parent = me.Torso | |
2116 | end | |
2117 | end | |
2118 | acting = false | |
2119 | end) | |
2120 | doit() | |
2121 | end | |
2122 | ||
2123 | function kysnigga() | |
2124 | if kyssing == true then return end | |
2125 | kyssing = true | |
2126 | acting = true | |
2127 | decearingTHING = math.random(1, 100) | |
2128 | if decearingTHING == 4 then | |
2129 | decearingEGG = Instance.new("Sound", me.Torso) | |
2130 | decearingEGG.SoundId = "rbxassetid://138084557" | |
2131 | decearingEGG.PlaybackSpeed = math.random(10, 12) / 10 | |
2132 | decearingEGG.TimePosition = 0.2 | |
2133 | decearingEGG:Play() | |
2134 | end | |
2135 | me.Humanoid.WalkSpeed = 0 | |
2136 | me.Humanoid.JumpPower = 0 | |
2137 | ||
2138 | local rightarm = Instance.new("Weld", me.Torso) | |
2139 | rightarm.Part0 = me.Torso | |
2140 | rightarm.Part1 = me["Right Arm"] | |
2141 | rightarm.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(1.5, 0, 0) | |
2142 | ||
2143 | local leftarm = Instance.new("Weld", me.Torso) | |
2144 | leftarm.Part0 = me.Torso | |
2145 | leftarm.Part1 = me["Left Arm"] | |
2146 | leftarm.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(-1.5, 0, 0) | |
2147 | ||
2148 | local tors = Instance.new("Weld", me.HumanoidRootPart) | |
2149 | tors.Part0 = me.HumanoidRootPart | |
2150 | tors.Part1 = me.Torso | |
2151 | tors.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0) | |
2152 | ||
2153 | local rightleg = Instance.new("Weld", me.Torso) | |
2154 | rightleg.Part0 = me.Torso | |
2155 | rightleg.Part1 = me["Right Leg"] | |
2156 | rightleg.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(0.5, -2, 0) | |
2157 | ||
2158 | local leftleg = Instance.new("Weld", me.Torso) | |
2159 | leftleg.Part0 = me.Torso | |
2160 | leftleg.Part1 = me["Left Leg"] | |
2161 | leftleg.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(-0.5, -2, 0) | |
2162 | ||
2163 | for i = 0, 1, 0.03 do | |
2164 | tors.C0 = tors.C0:lerp(CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(-10), 0, 0), i) | |
2165 | leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-80), 0, 0), i) | |
2166 | rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-80), 0, 0), i) | |
2167 | rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), i) | |
2168 | wait() | |
2169 | end | |
2170 | for i = 0, 1, 0.03 do | |
2171 | tors.C0 = tors.C0:lerp(CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(5), 0, 0), i) | |
2172 | leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -1, 0.15) * CFrame.Angles(math.rad(-95), 0, 0), i) | |
2173 | rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -1, 0.15) * CFrame.Angles(math.rad(-95), 0, 0), i) | |
2174 | rightarm.C0 = rightarm.C0:lerp(CFrame.new(1, 0.3, -1.5) * CFrame.Angles(math.rad(90), 0, math.rad(-35)), i) | |
2175 | leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1, 0.3, -1.5) * CFrame.Angles(math.rad(90), 0, math.rad(35)), i) | |
2176 | knifeweld.C1 = knifeweld.C1:lerp(CFrame.new(1.35, 0, 1) * CFrame.Angles(1.55, math.rad(-180), 1), i) | |
2177 | wait() | |
2178 | end | |
2179 | local bleedzer = Instance.new('Part',me.Torso) | |
2180 | bleedzer.CFrame = me.Torso.CFrame | |
2181 | bleedzer.Size = Vector3.new(0.1,0.1,0.1) | |
2182 | bleedzer.Transparency = 1 | |
2183 | bleedzer.CanCollide = false | |
2184 | local weld = Instance.new('Weld',bleedzer) | |
2185 | weld.Part0 = bleedzer | |
2186 | weld.Part1 = me.Torso | |
2187 | weld.C0= CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,0) | |
2188 | local woodpekker = coroutine.wrap(function() | |
2189 | bleed(bleedzer) | |
2190 | end) | |
2191 | woodpekker() | |
2192 | audio.SoundId = "rbxassetid://199977936" | |
2193 | audio.PlaybackSpeed = 1.5 | |
2194 | audio:Play() | |
2195 | audio2.SoundId = "rbxassetid://220834019" | |
2196 | audio2.PlaybackSpeed = 1 | |
2197 | audio2.TimePosition = 0.1 | |
2198 | audio2:Play() | |
2199 | for i = 0, 1, 0.1 do | |
2200 | tors.C0 = tors.C0:lerp(CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(-20), 0, 0), i) | |
2201 | leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -1, -0.35) * CFrame.Angles(math.rad(-70), 0, 0), i) | |
2202 | rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -1, -0.35) * CFrame.Angles(math.rad(-70), 0, 0), i) | |
2203 | rightarm.C0 = rightarm.C0:lerp(CFrame.new(1, 0, 0) * CFrame.Angles(math.rad(70), 0, math.rad(-35)), i) | |
2204 | leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1, 0, 0) * CFrame.Angles(math.rad(70), 0, math.rad(35)), i) | |
2205 | knifeweld.C1 = knifeweld.C1:lerp(CFrame.new(1.35, 0, 1) * CFrame.Angles(1.55, math.rad(-180), 1), i) | |
2206 | wait() | |
2207 | end | |
2208 | wait(1) | |
2209 | audio.SoundId = "rbxassetid://210943487" | |
2210 | audio.TimePosition = 0.2 | |
2211 | audio.PlaybackSpeed = 0.75 | |
2212 | audio:Play() | |
2213 | for i = 0, 1, 0.03 do | |
2214 | tors.C0 = tors.C0:lerp(CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(-20), 0, 0), i) | |
2215 | leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -1, -0.35) * CFrame.Angles(math.rad(-70), 0, 0), i) | |
2216 | rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -1, -0.35) * CFrame.Angles(math.rad(-70), 0, 0), i) | |
2217 | rightarm.C0 = rightarm.C0:lerp(CFrame.new(1, 0.3, -1.5) * CFrame.Angles(math.rad(70), 0, math.rad(-35)), i) | |
2218 | leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1, 0.3, -1.5) * CFrame.Angles(math.rad(70), 0, math.rad(35)), i) | |
2219 | knifeweld.C1 = knifeweld.C1:lerp(CFrame.new(1.35, 0, 1) * CFrame.Angles(1.55, math.rad(-180), 1), i) | |
2220 | wait() | |
2221 | end | |
2222 | for i = 0, 1, 0.03 do | |
2223 | rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5, 0, -0.4) * CFrame.Angles(math.rad(30), 0, math.rad(0)), i) | |
2224 | leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5, 0, -0.4) * CFrame.Angles(math.rad(30), 0, math.rad(0)), i) | |
2225 | knifeweld.C1 = knifeweld.C1:lerp(CFrame.fromEulerAnglesXYZ(1.55, math.rad(-90), 1.55) * CFrame.new(0, 0.95, 0), i) | |
2226 | wait() | |
2227 | end | |
2228 | wait(0.24) | |
2229 | if me:FindFirstChildOfClass('Humanoid') then | |
2230 | me:FindFirstChildOfClass('Humanoid').Health = 0 | |
2231 | end | |
2232 | wait(0.01) | |
2233 | killz(me,me.Torso.Name,nil,nil,true) | |
2234 | ||
2235 | tors:Remove() | |
2236 | rightarm:Remove() | |
2237 | rightleg:Remove() | |
2238 | leftleg:Remove() | |
2239 | leftarm:Remove() | |
2240 | rightshoulderz:Clone().Parent = me.Torso | |
2241 | leftshoulderz:Clone().Parent = me.Torso | |
2242 | torsojoint:Clone().Parent = me.HumanoidRootPart | |
2243 | lefthipz:Clone().Parent = me.Torso | |
2244 | righthipz:Clone().Parent = me.Torso | |
2245 | me.Humanoid.JumpPower = 50 | |
2246 | me.Humanoid.WalkSpeed = 16 | |
2247 | acting = false | |
2248 | canClick = true | |
2249 | doing = false | |
2250 | hit = false | |
2251 | kyssing = false | |
2252 | if decearingTHING == 4 then | |
2253 | decearingEGG:Remove() | |
2254 | end | |
2255 | end | |
2256 | ||
2257 | function bleedout() | |
2258 | local doit = coroutine.wrap(function() | |
2259 | local targe = grabbed | |
2260 | local num = 0 | |
2261 | while targe and targe:FindFirstChildOfClass('Humanoid') and targe:FindFirstChildOfClass('Humanoid').Health > 0 and num < 11 do | |
2262 | if targe.Head:FindFirstChild('Died') then | |
2263 | tone = math.random(6, 12) / 10 | |
2264 | targe.Head.Died.PlaybackSpeed = tone | |
2265 | targe.Head.Died:Play() | |
2266 | else | |
2267 | local deathsound = Instance.new('Sound',targe.Head) | |
2268 | deathsound.Name = "Died" | |
2269 | deathsound.SoundId = 'rbxasset://sounds/uuhhh.mp3' | |
2270 | deathsound.Volume = 0.65 | |
2271 | deathsound.EmitterSize = 5 | |
2272 | deathsound.MaxDistance = 150 | |
2273 | tone = math.random(5, 15) / 10 | |
2274 | targe.Head.Died.PlaybackSpeed = tone | |
2275 | targe.Head.Died:Play() | |
2276 | end | |
2277 | targe:FindFirstChildOfClass('Humanoid').Health = targe:FindFirstChildOfClass('Humanoid').Health - 7 | |
2278 | num = num+1 | |
2279 | wait(0.325) | |
2280 | end | |
2281 | targe:FindFirstChildOfClass('Humanoid').Health = 0 | |
2282 | wait() | |
2283 | killz(targe,'Head',nil,nil,false,true) | |
2284 | wait(2) | |
2285 | targe:Remove() | |
2286 | end) | |
2287 | doit() | |
2288 | end | |
2289 | ||
2290 | function liedown() | |
2291 | local doit = coroutine.wrap(function() | |
2292 | local targe = grabbed | |
2293 | wait(2) | |
2294 | if targe and targe:FindFirstChildOfClass('Humanoid') then | |
2295 | targe:FindFirstChildOfClass('Humanoid').PlatformStand = false | |
2296 | end | |
2297 | end) | |
2298 | doit() | |
2299 | end | |
2300 | ||
2301 | function grab() | |
2302 | local doit = coroutine.wrap(function() | |
2303 | acting = true | |
2304 | me:FindFirstChildOfClass('Humanoid').WalkSpeed = me:FindFirstChildOfClass('Humanoid').WalkSpeed + 3 | |
2305 | local arm = me["Right Arm"] | |
2306 | local tors = me.Torso | |
2307 | local arm2 = me["Left Arm"] | |
2308 | local humanroot = me.HumanoidRootPart | |
2309 | local weld2 = Instance.new('Weld',arm) | |
2310 | weld2.Part0 = arm | |
2311 | weld2.Part1 = tors | |
2312 | weld2.C0 = CFrame.new(-1.5,0,0) * CFrame.Angles(0, 0, 0) | |
2313 | local weld3 = Instance.new('Weld',arm2) | |
2314 | weld3.Part0 = arm2 | |
2315 | weld3.Part1 = tors | |
2316 | weld3.C0 = CFrame.new(1.5,0,-0.3) * CFrame.Angles(0.3,0.1,0) | |
2317 | for i = 0,1,0.05 do | |
2318 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil or humanroot == nil then return end | |
2319 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.2,1.3,0.4)*CFrame.Angles(0.5,0,-1.2),i) | |
2320 | weld3.C0 = weld3.C0:lerp(CFrame.new(1.2,1.3,0)*CFrame.Angles(0,0,1.2),i) | |
2321 | knifeweld.C1 = CFrame.fromEulerAnglesXYZ(1.55, math.rad(-90), -1.55) * CFrame.new(0, 0.95, 0) | |
2322 | wait(0.01) | |
2323 | end | |
2324 | grabbing = true | |
2325 | trail.Enabled = true | |
2326 | for i = 0,1,0.10 do | |
2327 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil or humanroot == nil then return end | |
2328 | weld2.C0 = weld2.C0:lerp(CFrame.new(-0.9, 0.80, -1.1)* CFrame.Angles(-1.5, 0, -1.3), i) | |
2329 | weld3.C0 = weld3.C0:lerp(CFrame.new(0.8, 1, -0.5)* CFrame.Angles(-1.5, 0, 1.1), i) | |
2330 | wait(0.01) | |
2331 | end | |
2332 | trail.Enabled = false | |
2333 | wait(0.5) | |
2334 | grabbing = false | |
2335 | me:FindFirstChildOfClass('Humanoid').WalkSpeed = me:FindFirstChildOfClass('Humanoid').WalkSpeed - 3 | |
2336 | if grabbed == nil then | |
2337 | for i = 0,1,0.1 do | |
2338 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil then return end | |
2339 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,0,0),i) | |
2340 | weld3.C0 = weld3.C0:lerp(CFrame.new(1.5,0,0),i) | |
2341 | knifeweld.C1 = CFrame.fromEulerAnglesXYZ(1.55, math.rad(-90), 1.55) * CFrame.new(0, 0.95, 0) | |
2342 | wait(0.001) | |
2343 | end | |
2344 | weld2:Destroy() | |
2345 | weld3:Destroy() | |
2346 | rightshoulderz:Clone().Parent = me.Torso | |
2347 | leftshoulderz:Clone().Parent = me.Torso | |
2348 | acting = false | |
2349 | canClick = true | |
2350 | end | |
2351 | end) | |
2352 | doit() | |
2353 | end | |
2354 | ||
2355 | function kill() | |
2356 | paralyzed = false | |
2357 | if grabbed.Torso:FindFirstChild("TargetWeld") == nil or grabbed:FindFirstChildOfClass('Humanoid').Health <= 0 then hardrelease() return end | |
2358 | targetweld = grabbed.Torso.TargetWeld | |
2359 | targetweld2 = nil | |
2360 | local reee = grabbed:FindFirstChild("Left Arm") | |
2361 | if reee and reee:FindFirstChild("Weld") then | |
2362 | targetweld2 = reee.Weld | |
2363 | end | |
2364 | for i, v in pairs(grabbed:GetChildren()) do | |
2365 | if v.Name == "Part" then | |
2366 | v.CanCollide = true | |
2367 | end | |
2368 | end | |
2369 | targetweld3pt = grabbed:FindFirstChild("Right Arm") | |
2370 | local targetrightshoulder = rightshoulder | |
2371 | local targetleftshoulder = leftshoulder | |
2372 | local targetweld3 = Instance.new("Weld", targetweld3pt) | |
2373 | targetweld3.Part0 = grabbed.Torso | |
2374 | targetweld3.Part1 = targetweld3pt | |
2375 | targetweld3.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(1.5, 0, 0) | |
2376 | ||
2377 | local doit = coroutine.wrap(function() | |
2378 | local arm = me["Right Arm"] | |
2379 | local tors = grabbed.Torso | |
2380 | local arm2 = me["Left Arm"] | |
2381 | if arm:FindFirstChildOfClass('Weld') == nil or arm2:FindFirstChildOfClass('Weld') == nil then return end | |
2382 | doing = true | |
2383 | local weld2 = arm:FindFirstChildOfClass('Weld') | |
2384 | local weld3 = arm2:FindFirstChildOfClass('Weld') | |
2385 | local humanroot = me.HumanoidRootPart | |
2386 | ||
2387 | for i = 0,1,0.1 do | |
2388 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil or weld3 == nil then return end | |
2389 | weld2.C0 = weld2.C0:lerp(CFrame.new(-0.9, 0.80, -1.1)* CFrame.Angles(-1.9, 0, -1.4), i) | |
2390 | weld3.C0 = weld3.C0:lerp(CFrame.new(0.8, 0.5, -0.5)* CFrame.Angles(-1.5, 0.4, 1.1), i) | |
2391 | wait(0.01) | |
2392 | end | |
2393 | ||
2394 | audio:Stop() | |
2395 | audio.SoundId = "rbxassetid://517040733" | |
2396 | tone = math.random(1, 3) | |
2397 | if tone == 1 then audio.PlaybackSpeed = 0.8 audio.TimePosition = 0.3 end | |
2398 | if tone == 2 then audio.PlaybackSpeed = 1 audio.TimePosition = 0.1 end | |
2399 | if tone == 3 then audio.PlaybackSpeed = 1.2 audio.TimePosition = 0.2 end | |
2400 | audio:Play() | |
2401 | ||
2402 | local bleedpart = Instance.new("Part", grabbed) | |
2403 | bleedpart.Size = Vector3.new(0.2, 0.2, 0.2) | |
2404 | bleedpart.Color = Color3.new(115/225, 115/225, 115/225) | |
2405 | bleedpart.CanCollide = false | |
2406 | bleedpart.Position = grabbed.Head.Position + Vector3.new(0, 1, 0) | |
2407 | bleedpart.Transparency = 1 | |
2408 | ||
2409 | local bleedpartweld = Instance.new("Weld", grabbed.Torso) | |
2410 | bleedpartweld.Part0 = grabbed.Torso | |
2411 | bleedpartweld.Part1 = bleedpart | |
2412 | bleedpartweld.C0 = CFrame.Angles(-1, 0, -0.35) * CFrame.new(0, 1, 0.8) | |
2413 | local coru=coroutine.wrap(function() | |
2414 | bleed(bleedpart) | |
2415 | end) | |
2416 | coru() | |
2417 | ||
2418 | local slightthrow = Instance.new("BodyThrust", grabbed.Torso) | |
2419 | slightthrow.Force = Vector3.new(0, 0, -2500) | |
2420 | ||
2421 | local slightthrow2 = Instance.new("BodyAngularVelocity", grabbed.Torso) | |
2422 | slightthrow2.AngularVelocity = Vector3.new(0, -1000, 0) | |
2423 | slightthrow2.MaxTorque = Vector3.new(1000, 1000, 1000) | |
2424 | ||
2425 | if grabbed:FindFirstChildOfClass('Humanoid') then | |
2426 | grabbed:FindFirstChildOfClass('Humanoid').PlatformStand = true | |
2427 | end | |
2428 | ||
2429 | killz(grabbed,'Left Leg') | |
2430 | killz(grabbed,'Left Arm') | |
2431 | killz(grabbed,'Right Leg') | |
2432 | killz(grabbed,'Right Arm') | |
2433 | ||
2434 | trail.Enabled = true | |
2435 | ||
2436 | for i = 0,1,0.2 do | |
2437 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil or weld3 == nil then return end | |
2438 | weld2.C0 = weld2.C0:lerp(CFrame.new(-0.9, 1.7, -0.5)* CFrame.Angles(-0.25, 0, -1.4), i) | |
2439 | weld3.C0 = weld3.C0:lerp(CFrame.new(0.8, 1.6, -0.5)* CFrame.Angles(-1.5, -1, 1.1), i) | |
2440 | wait(0.01) | |
2441 | end | |
2442 | ||
2443 | trail.Enabled = false | |
2444 | ||
2445 | bleedout() | |
2446 | ||
2447 | rightshoulderz:Clone().Parent = me.Torso | |
2448 | leftshoulderz:Clone().Parent = me.Torso | |
2449 | grabbed = nil | |
2450 | ||
2451 | if humanroot:FindFirstChild('Holder') then | |
2452 | humanroot.Holder:Destroy() | |
2453 | end | |
2454 | ||
2455 | wait(0.2) | |
2456 | slightthrow:Remove() | |
2457 | slightthrow2:Remove() | |
2458 | for i = 0,1,0.05 do | |
2459 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil or weld3 == nil then return end | |
2460 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5, 0, 0)* CFrame.Angles(0, 0, 0), i) | |
2461 | weld3.C0 = weld3.C0:lerp(CFrame.new(1.5, 0, 0)* CFrame.Angles(0, 0, 0), i) | |
2462 | knifeweld.C1 = CFrame.fromEulerAnglesXYZ(1.55, math.rad(-90), 1.55) * CFrame.new(0, 0.95, 0) | |
2463 | wait(0.01) | |
2464 | end | |
2465 | ||
2466 | weld2:Destroy() | |
2467 | weld3:Destroy() | |
2468 | targetweld = nil | |
2469 | targetweld2 = nil | |
2470 | targetweld3 = nil | |
2471 | rightshoulderz:Clone().Parent = me.Torso | |
2472 | leftshoulderz:Clone().Parent = me.Torso | |
2473 | acting = false | |
2474 | canClick = true | |
2475 | doing = false | |
2476 | end) | |
2477 | doit() | |
2478 | end | |
2479 | ||
2480 | function finish() | |
2481 | if finishing == true then return end | |
2482 | finishing = true | |
2483 | acting = true | |
2484 | decearingTHING = math.random(1, 100) | |
2485 | if decearingTHING == 4 then | |
2486 | decearingEGG = Instance.new("Sound", me.Torso) | |
2487 | decearingEGG.SoundId = "rbxassetid://138084557" | |
2488 | decearingEGG.PlaybackSpeed = math.random(10, 12) / 10 | |
2489 | decearingEGG.TimePosition = 0.2 | |
2490 | decearingEGG:Play() | |
2491 | end | |
2492 | me.Humanoid.WalkSpeed = 0 | |
2493 | me.Humanoid.JumpPower = 0 | |
2494 | ||
2495 | local rightarm = Instance.new("Weld", me.Torso) | |
2496 | rightarm.Part0 = me.Torso | |
2497 | rightarm.Part1 = me["Right Arm"] | |
2498 | rightarm.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(1.5, 0, 0) | |
2499 | ||
2500 | local tors = Instance.new("Weld", me.HumanoidRootPart) | |
2501 | tors.Part0 = me.HumanoidRootPart | |
2502 | tors.Part1 = me.Torso | |
2503 | tors.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0) | |
2504 | ||
2505 | local rightleg = Instance.new("Weld", me.Torso) | |
2506 | rightleg.Part0 = me.Torso | |
2507 | rightleg.Part1 = me["Right Leg"] | |
2508 | rightleg.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(0.5, -2, 0) | |
2509 | ||
2510 | local leftleg = Instance.new("Weld", me.Torso) | |
2511 | leftleg.Part0 = me.Torso | |
2512 | leftleg.Part1 = me["Left Leg"] | |
2513 | leftleg.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(-0.5, -2, 0) | |
2514 | ||
2515 | for i = 0, 1, 0.05 do | |
2516 | tors.C0 = tors.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(15), 0, 0), i) | |
2517 | leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -2, 0.2) * CFrame.Angles(math.rad(-15), 0, 0), i) | |
2518 | rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -2, 0.2) * CFrame.Angles(math.rad(-15), 0, 0), i) | |
2519 | rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5, 1.9, 0) * CFrame.Angles(math.rad(179), math.rad(179), 0), i) | |
2520 | wait() | |
2521 | end | |
2522 | for i=1,finishnum do | |
2523 | local num1 = 0.5 | |
2524 | local num2 = 0.5 | |
2525 | local num3 = 0.25 | |
2526 | if finishnum ~= 1 then | |
2527 | num3 = 0 | |
2528 | end | |
2529 | trail.Enabled = true | |
2530 | for i = 0, 1, num1 do | |
2531 | tors.C0 = tors.C0:lerp(CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(-60), 0, 0), i) | |
2532 | leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -1.5, 0) * CFrame.Angles(math.rad(0), 0, 0), i) | |
2533 | rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -0.7, -1) * CFrame.Angles(math.rad(10), 0, 0), i) | |
2534 | rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5, 1.9, -1) * CFrame.Angles(math.rad(160), math.rad(150), 0), i) | |
2535 | wait() | |
2536 | end | |
2537 | wait() | |
2538 | for i = 0, 1, num2 do | |
2539 | tors.C0 = tors.C0:lerp(CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-20), 0, 0), i) | |
2540 | leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -1.5, 0) * CFrame.Angles(math.rad(-30), 0, 0), i) | |
2541 | rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -0.7, -1) * CFrame.Angles(math.rad(-20), 0, 0), i) | |
2542 | rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5, 1.9, 0.2) * CFrame.Angles(math.rad(250), math.rad(180), 0), i) | |
2543 | wait() | |
2544 | end | |
2545 | trail.Enabled = false | |
2546 | wait(num3) | |
2547 | end | |
2548 | wait() | |
2549 | for i = 0, 1, 0.05 do | |
2550 | tors.C0 = tors.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), i) | |
2551 | leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -2, 0) * CFrame.Angles(0, 0, 0), i) | |
2552 | rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -2, 0) * CFrame.Angles(0, 0, 0), i) | |
2553 | rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5, 0, 0) * CFrame.Angles(0, 0, 0), i) | |
2554 | wait() | |
2555 | end | |
2556 | tors:Remove() | |
2557 | rightarm:Remove() | |
2558 | rightleg:Remove() | |
2559 | leftleg:Remove() | |
2560 | rightshoulderz:Clone().Parent = me.Torso | |
2561 | leftshoulderz:Clone().Parent = me.Torso | |
2562 | torsojoint:Clone().Parent = me.HumanoidRootPart | |
2563 | lefthipz:Clone().Parent = me.Torso | |
2564 | righthipz:Clone().Parent = me.Torso | |
2565 | me.Humanoid.JumpPower = 50 | |
2566 | me.Humanoid.WalkSpeed = 16 | |
2567 | acting = false | |
2568 | canClick = true | |
2569 | doing = false | |
2570 | hit = false | |
2571 | finishing = false | |
2572 | if decearingTHING == 4 then | |
2573 | decearingEGG:Remove() | |
2574 | end | |
2575 | end | |
2576 | ||
2577 | function throw() | |
2578 | if grabbed.Torso:FindFirstChild("TargetWeld") == nil or grabbed:FindFirstChildOfClass('Humanoid').Health <= 0 then return end | |
2579 | paralyzed = false | |
2580 | targetweld = grabbed.Torso.TargetWeld | |
2581 | local ree = grabbed:FindFirstChild("Left Arm") | |
2582 | targetweld2 =nil | |
2583 | if ree and ree:FindFirstChild("Weld") then | |
2584 | targetweld2 = ree.Weld | |
2585 | end | |
2586 | ||
2587 | for i, v in pairs(grabbed:GetChildren()) do | |
2588 | if v.Name == "Part" then | |
2589 | v.CanCollide = true | |
2590 | end | |
2591 | end | |
2592 | ||
2593 | ||
2594 | local doit = coroutine.wrap(function() | |
2595 | local arm = me["Right Arm"] | |
2596 | local tors = grabbed.Torso | |
2597 | local arm2 = me["Left Arm"] | |
2598 | local targrightshoulder = rightshoulder | |
2599 | ||
2600 | local targleftshoulder = leftshoulder | |
2601 | if arm:FindFirstChildOfClass('Weld') == nil or arm2:FindFirstChildOfClass('Weld') == nil then return end | |
2602 | doing = true | |
2603 | local weld2 = arm:FindFirstChildOfClass('Weld') | |
2604 | local weld3 = arm2:FindFirstChildOfClass('Weld') | |
2605 | local humanroot = me.HumanoidRootPart | |
2606 | ||
2607 | for i = 0,1,0.2 do | |
2608 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil or weld3 == nil then return end | |
2609 | weld2.C0 = weld2.C0:lerp(CFrame.new(-0.9, 1.7, -0.5)* CFrame.Angles(-0.25, 1, -1.4), i) | |
2610 | weld3.C0 = weld3.C0:lerp(CFrame.new(0.8, 1.6, -0.5)* CFrame.Angles(-1.5, -1, 1.1), i) | |
2611 | targetweld.C0 = targetweld.C0:lerp(CFrame.new(0, 1.5, 0)*CFrame.Angles(0, 0, 0), i) | |
2612 | if targetweld2 then | |
2613 | targetweld2.C0 = targetweld2.C0:lerp(CFrame.new(-1.5, 0, 0)*CFrame.Angles(0, 0, 0), i) | |
2614 | end | |
2615 | wait(0.01) | |
2616 | end | |
2617 | ||
2618 | audio:Stop() | |
2619 | audio.SoundId = "rbxassetid://536642316" | |
2620 | tone = math.random(1, 3) | |
2621 | if tone == 1 then audio.PlaybackSpeed = 0.8 audio.TimePosition = 0.08 end | |
2622 | if tone == 2 then audio.PlaybackSpeed = 1 audio.TimePosition = 0.1 end | |
2623 | if tone == 3 then audio.PlaybackSpeed = 1.2 audio.TimePosition = 0.12 end | |
2624 | audio:Play() | |
2625 | ||
2626 | local slightthrow = Instance.new("BodyVelocity", grabbed.Torso) | |
2627 | slightthrow.Velocity = Vector3.new(0,20,0)+(me.Torso.CFrame.lookVector*20) | |
2628 | slightthrow.P = 5000 | |
2629 | slightthrow.MaxForce = Vector3.new(9000001,9000001,9000001) | |
2630 | local point = grabbed.Torso.Position | |
2631 | local aaaaaa = grabbed | |
2632 | liedown() | |
2633 | ||
2634 | rightshoulderz:Clone().Parent = me.Torso | |
2635 | leftshoulderz:Clone().Parent = me.Torso | |
2636 | grabbed = nil | |
2637 | ||
2638 | if humanroot:FindFirstChild('Holder') then | |
2639 | humanroot.Holder:Destroy() | |
2640 | end | |
2641 | local coru = coroutine.wrap(function() | |
2642 | while aaaaaa and aaaaaa:FindFirstChild('Torso') and (aaaaaa.Torso.Position-point).magnitude < 5 do wait(0.001) end | |
2643 | slightthrow:Remove() | |
2644 | end) | |
2645 | coru() | |
2646 | ||
2647 | for i = 0,1,0.05 do | |
2648 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil or weld3 == nil then return end | |
2649 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,0,0),i) | |
2650 | weld3.C0 = weld3.C0:lerp(CFrame.new(1.5,0,0),i) | |
2651 | wait(0.01) | |
2652 | end | |
2653 | weld2:Destroy() | |
2654 | weld3:Destroy() | |
2655 | targetweld:Remove() | |
2656 | if targetweld2 then | |
2657 | targetweld2:Remove() | |
2658 | end | |
2659 | if rightshoulder then | |
2660 | rightshoulder:Clone().Parent = tors | |
2661 | end | |
2662 | if leftshoulder then | |
2663 | leftshoulder:Clone().Parent = tors | |
2664 | end | |
2665 | headweld:Clone().Parent = tors | |
2666 | rightshoulderz:Clone().Parent = me.Torso | |
2667 | leftshoulderz:Clone().Parent = me.Torso | |
2668 | acting = false | |
2669 | canClick = true | |
2670 | doing = false | |
2671 | end) | |
2672 | doit() | |
2673 | end | |
2674 | ||
2675 | cfn,ang,mr,int=CFrame.new,CFrame.Angles,math.rad,Instance.new | |
2676 | bc=BrickColor.new | |
2677 | local minimumsize = Vector3.new(0.7,0.7,0.7) | |
2678 | local surface_between_splitted_parts = 'SmoothNoOutlines' | |
2679 | local fragmentable = workspace | |
2680 | local list = {} | |
2681 | local brickcount = 0 | |
2682 | local storage = {} | |
2683 | local fillup = 1000 | |
2684 | local maximumstorage = 2000 | |
2685 | local storage_position = Vector3.new(0,0,5000) | |
2686 | local stored_partsize = Vector3.new(1,1,1) | |
2687 | local parts_created_per_frame = 5 | |
2688 | ||
2689 | local minimumsize = Vector3.new(0.7,0.7,0.7) | |
2690 | local surface_between_splitted_parts = 'SmoothNoOutlines' | |
2691 | local fragmentable = workspace | |
2692 | local list = {} | |
2693 | local brickcount = 0 | |
2694 | local storage = {} | |
2695 | local fillup = 1000 | |
2696 | local maximumstorage = 2000 | |
2697 | local storage_position = Vector3.new(0,0,5000) | |
2698 | local stored_partsize = Vector3.new(1,1,1) | |
2699 | local parts_created_per_frame = 5 | |
2700 | ||
2701 | ||
2702 | function fragmentate(cframe,size,color,explosion_position,explosion_blastradius,backsurface,bottomsurface,frontsurface,leftsurface,rightsurface,topsurface,transparency,reflectance,material) | |
2703 | local xi = size.X >= minimumsize.X*(1+explosion_blastradius/16) and 2 or 1 | |
2704 | local yi = size.Y >= minimumsize.Y*(1+explosion_blastradius/16) and 2 or 1 | |
2705 | local zi = size.Z >= minimumsize.Z*(1+explosion_blastradius/16) and 2 or 1 | |
2706 | if xi == 1 and yi == 1 and zi == 1 or (cframe.p-explosion_position).magnitude > size.magnitude/2 + explosion_blastradius then | |
2707 | if xi == 1 and yi == 1 and zi == 1 then return end | |
2708 | if #storage > 0 then | |
2709 | local p = storage[1] | |
2710 | p.BrickColor = color | |
2711 | p.Size = size | |
2712 | p.Anchored = false | |
2713 | p.BackSurface = backsurface | |
2714 | p.BottomSurface = bottomsurface | |
2715 | p.FrontSurface = frontsurface | |
2716 | p.LeftSurface = leftsurface | |
2717 | p.RightSurface = rightsurface | |
2718 | p.TopSurface = topsurface | |
2719 | p.Transparency = transparency | |
2720 | p.CFrame = cframe | |
2721 | p.Reflectance = reflectance | |
2722 | p.Material = material | |
2723 | game:GetService('Debris'):AddItem(p,30) | |
2724 | p:BreakJoints() | |
2725 | table.remove(storage,1) | |
2726 | else | |
2727 | local p = Instance.new("Part",fragmentable) | |
2728 | p.BrickColor = color | |
2729 | p.FormFactor = "Custom" | |
2730 | p.Size = size | |
2731 | p.BackSurface = backsurface | |
2732 | p.BottomSurface = bottomsurface | |
2733 | p.FrontSurface = frontsurface | |
2734 | p.LeftSurface = leftsurface | |
2735 | p.RightSurface = rightsurface | |
2736 | p.TopSurface = topsurface | |
2737 | p.Transparency = transparency | |
2738 | p.Material = material | |
2739 | if p.Transparency>0.285 then | |
2740 | p.Anchored = false | |
2741 | else | |
2742 | p.Anchored=false | |
2743 | p.Material='Wood' | |
2744 | game:GetService('Debris'):AddItem(p,10) | |
2745 | end | |
2746 | p.CFrame = cframe | |
2747 | p.Reflectance = reflectance | |
2748 | p:BreakJoints() | |
2749 | end | |
2750 | return | |
2751 | end | |
2752 | local mody = math.random(-125,125)/1000 | |
2753 | for y = 1,yi do | |
2754 | if math.random()> 0.5 then | |
2755 | local modx = math.random(-125,125)/1000 | |
2756 | for x = 1,xi do | |
2757 | local modz = math.random(-125,125)/1000 | |
2758 | for z = 1,zi do --offset = x/xi-0.75+modx) | |
2759 | fragmentate(cframe*CFrame.new(size.X*(xi==1 and 0 or x/xi-0.75+modx),size.Y*(yi==1 and 0 or y/yi-0.75+mody),size.Z*(zi==1 and 0 or z/zi-0.75+modz)), | |
2760 | Vector3.new(xi == 2 and size.X*(1-2*math.abs(x/xi-0.75+modx)) or size.X,yi == 2 and size.Y*(1-2*math.abs(y/yi-0.75+mody)) or size.Y, | |
2761 | zi == 2 and size.Z*(1-2*math.abs(z/zi-0.75+modz)) or size.Z or mustardfoot_was_here),color,explosion_position,explosion_blastradius, | |
2762 | z~=zi and surface_between_splitted_parts or backsurface,y==2 and surface_between_splitted_parts or bottomsurface, | |
2763 | z==2 and surface_between_splitted_parts or frontsurface,x==2 and surface_between_splitted_parts or leftsurface,x~=xi and surface_between_splitted_parts or rightsurface, | |
2764 | y~=yi and surface_between_splitted_parts or topsurface,transparency,reflectance,material) | |
2765 | end | |
2766 | ||
2767 | end | |
2768 | else | |
2769 | local modz = math.random(-125,125)/1000 | |
2770 | for z = 1,zi do | |
2771 | local modx = math.random(-125,125)/1000 | |
2772 | for x = 1,xi do | |
2773 | fragmentate(cframe*CFrame.new(size.X*(xi==1 and 0 or x/xi-0.75+modx),size.Y*(yi==1 and 0 or y/yi-0.75+mody),size.Z*(zi==1 and 0 or z/zi-0.75+modz)), | |
2774 | Vector3.new(xi == 2 and size.X*(1-2*math.abs(x/xi-0.75+modx)) or size.X,yi == 2 and size.Y*(1-2*math.abs(y/yi-0.75+mody)) or size.Y, | |
2775 | zi == 2 and size.Z*(1-2*math.abs(z/zi-0.75+modz)) or size.Z),color,explosion_position,explosion_blastradius, | |
2776 | z~=zi and surface_between_splitted_parts or backsurface,y==2 and surface_between_splitted_parts or bottomsurface, | |
2777 | z==2 and surface_between_splitted_parts or frontsurface,x==2 and surface_between_splitted_parts or leftsurface,x~=xi and surface_between_splitted_parts or rightsurface, | |
2778 | y~=yi and surface_between_splitted_parts or topsurface,transparency,reflectance,material) | |
2779 | end | |
2780 | end | |
2781 | end | |
2782 | end | |
2783 | end | |
2784 | ||
2785 | function start_fragmentation(position,radius,nuh) | |
2786 | local search = Region3.new(position-Vector3.new(radius,radius,radius)*1.1,position+Vector3.new(radius,radius,radius)*1.1) | |
2787 | repeat | |
2788 | local finish = false | |
2789 | local parts = workspace:FindPartsInRegion3WithIgnoreList(search,list,100) | |
2790 | for i = 1,#parts do | |
2791 | table.insert(list,1,parts[i]) | |
2792 | end | |
2793 | finish = true | |
2794 | until #parts < 100 and finish | |
2795 | local t = tick() | |
2796 | for i = 1,#list do | |
2797 | local p = list[i] | |
2798 | if p:IsA('UnionOperation') == false and p:IsA('CornerWedgePart') == false and p:IsA('TrussPart') == false and p:IsA('WedgePart') == false and p.Parent and p.Parent ~= obj1 and p.Parent.Name ~= "Projectile" and p:IsDescendantOf(fragmentable) and p:GetMass()<50000 and p.Transparency>0.285 and p.Name~='Base' and p.Parent:FindFirstChildOfClass('Humanoid') == nil and p.Parent.Parent:FindFirstChildOfClass('Humanoid') == nil and p:IsDescendantOf(me)==false then | |
2799 | fragmentate(p.CFrame,p.Size,p.BrickColor,position,radius,p.BackSurface,p.BottomSurface,p.FrontSurface,p.LeftSurface,p.RightSurface,p.TopSurface,p.Transparency,p.Reflectance,p.Material) | |
2800 | if #storage < maximumstorage and p.Shape == "Block" then | |
2801 | p.Anchored = false | |
2802 | p.FormFactor = "Custom" | |
2803 | p.Size = stored_partsize | |
2804 | p.Position = storage_position | |
2805 | table.insert(storage,1,p) | |
2806 | else | |
2807 | p:Destroy() | |
2808 | end | |
2809 | end | |
2810 | if nuh == false and p.Parent and p.Parent ~= obj1 and p.Parent.Name ~= "Projectile" and p:IsDescendantOf(fragmentable) and p:GetMass()<53000 and p.Transparency<0.05 and p.Name~='Base' and tostring(p.Material)=='Enum.Material.Wood' and p:IsDescendantOf(me)==false then | |
2811 | fragmentate(p.CFrame,p.Size,p.BrickColor,position,radius,p.BackSurface,p.BottomSurface,p.FrontSurface,p.LeftSurface,p.RightSurface,p.TopSurface,p.Transparency,p.Reflectance,p.Material) | |
2812 | if #storage < maximumstorage and p.Shape == "Block" then | |
2813 | p.Anchored = false | |
2814 | p.Material='Wood' | |
2815 | p.FormFactor = "Custom" | |
2816 | p.Size = stored_partsize | |
2817 | p.Position = storage_position | |
2818 | table.insert(storage,1,p) | |
2819 | else | |
2820 | p:Destroy() | |
2821 | end | |
2822 | end | |
2823 | end | |
2824 | list = {} | |
2825 | end | |
2826 | ||
2827 | ||
2828 | function fling() | |
2829 | local doit = coroutine.wrap(function() | |
2830 | if me:FindFirstChild('Right Arm') and me:FindFirstChild('Torso') and me:FindFirstChild('HumanoidRootPart') then | |
2831 | acting = true | |
2832 | for i=1,finishnum do | |
2833 | local weld2 = Instance.new('Weld',me["Right Arm"]) | |
2834 | weld2.Part0 = me["Right Arm"] | |
2835 | weld2.Part1 = me["Torso"] | |
2836 | weld2.C0 = CFrame.new(-1.5,0,0) | |
2837 | if finishnum == 1 then | |
2838 | for i = 0,1,0.05 do | |
2839 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil then return end | |
2840 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,0.9,-0.5)*CFrame.Angles(-math.pi/0.75,-math.pi/8,0),i) | |
2841 | wait(0.01) | |
2842 | end | |
2843 | end | |
2844 | audio.SoundId = "rbxassetid://166083610" | |
2845 | audio.PlaybackSpeed = 1 | |
2846 | audio.TimePosition = 0.1 | |
2847 | audio:Play() | |
2848 | if finishnum == 1 then | |
2849 | for i = 0,1,0.5 do | |
2850 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil then return end | |
2851 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,1.2,0.1)*CFrame.Angles(math.pi/0.9,0,0),i) | |
2852 | wait(0.001) | |
2853 | end | |
2854 | end | |
2855 | weld2.C0 = CFrame.new(-1.5,1.2,0.1)*CFrame.Angles(math.pi/0.9,0,0) | |
2856 | local knofe = obj1:Clone() | |
2857 | for i, v in pairs(obj1:GetChildren()) do | |
2858 | if v:IsA('BasePart') then | |
2859 | v.Transparency = 1 | |
2860 | end | |
2861 | end | |
2862 | knofe.Parent = workspace | |
2863 | knofe.Name = "Projectile" | |
2864 | knofe.Grab.CFrame = CFrame.new(knofe.Grab.CFrame.p, mouse.Hit.p)*CFrame.Angles(0,math.pi/2,0) | |
2865 | knofe:FindFirstChild("Trail", true).Enabled = true | |
2866 | local heck = Instance.new('BodyVelocity',knofe.Grab) | |
2867 | heck.Velocity = (knofe.Grab.CFrame*CFrame.Angles(0,math.pi/-2,0)).lookVector*120 | |
2868 | local coru = coroutine.wrap(function() | |
2869 | wait(0.45) | |
2870 | if heck then | |
2871 | heck:Destroy() | |
2872 | end | |
2873 | end) | |
2874 | coru() | |
2875 | local able = true | |
2876 | knofe["big ass knife"].Touched:connect(function(hit) | |
2877 | 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 | |
2878 | local thing = hit.Parent:FindFirstChildOfClass('Humanoid') | |
2879 | local ree = hit.Parent | |
2880 | if thing == nil then | |
2881 | ree = hit.Parent.Parent | |
2882 | end | |
2883 | if ree:FindFirstChildOfClass('Humanoid').Health > 0 then | |
2884 | knofe:FindFirstChild("Trail", true).Enabled = false | |
2885 | game:GetService('Debris'):AddItem(knofe,5) | |
2886 | tone = math.random(1, 3) | |
2887 | local sound = Instance.new('Sound',knofe.Grab) | |
2888 | if tone == 1 then sound.SoundId = "rbxassetid://220833967" end | |
2889 | if tone == 2 then sound.SoundId = "rbxassetid://220833976" end | |
2890 | if tone == 3 then sound.SoundId = "rbxassetid://220834000" end | |
2891 | sound.PlaybackSpeed = 1 | |
2892 | sound:Play() | |
2893 | for i, v in pairs(knofe:GetChildren()) do | |
2894 | if v:IsA('BasePart') then | |
2895 | v.CanCollide = true | |
2896 | v.Anchored = true | |
2897 | end | |
2898 | end | |
2899 | hit.Anchored = true | |
2900 | if ree:FindFirstChildOfClass('Humanoid') and hit.Name == "Torso" or hit.Name == "Head" then | |
2901 | ree:FindFirstChildOfClass('Humanoid').Health = 0 | |
2902 | end | |
2903 | wait() | |
2904 | killz(ree,hit.Name,knofe) | |
2905 | else | |
2906 | knofe:FindFirstChild("Trail", true).Enabled = false | |
2907 | heck.Velocity = Vector3.new(0,0,0) | |
2908 | heck:Destroy() | |
2909 | game:GetService('Debris'):AddItem(knofe,5) | |
2910 | tone = math.random(1, 3) | |
2911 | local sound = Instance.new('Sound',knofe.Grab) | |
2912 | if tone == 1 then sound.SoundId = "rbxassetid://220833967" end | |
2913 | if tone == 2 then sound.SoundId = "rbxassetid://220833976" end | |
2914 | if tone == 3 then sound.SoundId = "rbxassetid://220834000" end | |
2915 | sound.PlaybackSpeed = 1 | |
2916 | sound:Play() | |
2917 | for i, v in pairs(knofe:GetChildren()) do | |
2918 | if v:IsA('BasePart') then | |
2919 | v.Anchored = false | |
2920 | end | |
2921 | end | |
2922 | hit.Anchored = true | |
2923 | wait(0.001) | |
2924 | hit.Anchored = false | |
2925 | for i, v in pairs(knofe:GetChildren()) do | |
2926 | if v:IsA('BasePart') then | |
2927 | v.Anchored = false | |
2928 | end | |
2929 | end | |
2930 | if knofe then | |
2931 | local coru = coroutine.wrap(function() | |
2932 | if hit then | |
2933 | local uno = Instance.new('Part',workspace) | |
2934 | local dos = Instance.new('Part',workspace) | |
2935 | uno.CFrame = hit.CFrame | |
2936 | dos.CFrame = knofe["big ass knife"].CFrame | |
2937 | local weld = Instance.new('Weld',knofe["big ass knife"]) | |
2938 | weld.Part0 = hit | |
2939 | weld.Part1 = knofe["big ass knife"] | |
2940 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
2941 | uno:Destroy() | |
2942 | dos:Destroy() | |
2943 | end | |
2944 | end) | |
2945 | coru() | |
2946 | end | |
2947 | end | |
2948 | elseif hit.Parent and hit.Parent ~= me and hit.Parent.Parent ~= me and hit.CanCollide and knofe.Grab.CanCollide == false then | |
2949 | if hit.Transparency and (hit.Transparency<=0.285 or hit:GetMass()<=3000) then | |
2950 | knofe:FindFirstChild("Trail", true).Enabled = false | |
2951 | local sound = Instance.new('Sound',knofe.Grab) | |
2952 | sound.SoundId = 'rbxassetid://267585646' | |
2953 | sound:Play() | |
2954 | for i,v in pairs(knofe:GetChildren()) do | |
2955 | if v:IsA('BasePart') then | |
2956 | v.Anchored = true | |
2957 | end | |
2958 | end | |
2959 | wait() | |
2960 | heck.Velocity = Vector3.new(0,0,0) | |
2961 | heck:Destroy() | |
2962 | local uno = Instance.new('Part',workspace) | |
2963 | local dos = Instance.new('Part',workspace) | |
2964 | uno.CFrame = hit.CFrame | |
2965 | dos.CFrame = knofe["big ass knife"].CFrame | |
2966 | local weld = Instance.new('Weld',knofe["big ass knife"]) | |
2967 | weld.Part0 = hit | |
2968 | weld.Part1 = knofe["big ass knife"] | |
2969 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
2970 | uno:Destroy() | |
2971 | dos:Destroy() | |
2972 | for i,v in pairs(knofe:GetChildren()) do | |
2973 | if v:IsA('BasePart') then | |
2974 | v.Anchored = false | |
2975 | end | |
2976 | end | |
2977 | game:GetService('Debris'):AddItem(knofe,5) | |
2978 | for i,v in pairs(knofe:GetChildren()) do | |
2979 | if v:IsA('BasePart') then | |
2980 | v.CanCollide = true | |
2981 | end | |
2982 | end | |
2983 | end | |
2984 | 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 | |
2985 | knofe:FindFirstChild("Trail", true).Enabled = false | |
2986 | able = false | |
2987 | local sound = Instance.new('Sound',knofe.Grab) | |
2988 | sound.SoundId = 'rbxassetid://144884907' | |
2989 | sound:Play() | |
2990 | local coru = coroutine.wrap(function() | |
2991 | start_fragmentation(knofe["big ass knife"].Position,1.25,knofe) | |
2992 | end) | |
2993 | coru() | |
2994 | end | |
2995 | end | |
2996 | end) | |
2997 | if finishnum == 1 then | |
2998 | for i= 0,1,0.1 do | |
2999 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil then return end | |
3000 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,0,0),i) | |
3001 | wait(0.001) | |
3002 | end | |
3003 | else | |
3004 | for i= 0,1,0.5 do | |
3005 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil then return end | |
3006 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,0,0),i) | |
3007 | wait(0.001) | |
3008 | end | |
3009 | end | |
3010 | for i,v in pairs(obj1:GetChildren()) do | |
3011 | if v:IsA('BasePart') then | |
3012 | v.Transparency = 0 | |
3013 | end | |
3014 | end | |
3015 | weld2:Destroy() | |
3016 | rightshoulderz:Clone().Parent = me.Torso | |
3017 | end | |
3018 | acting = false | |
3019 | canClick = true | |
3020 | end | |
3021 | end) | |
3022 | doit() | |
3023 | end | |
3024 | ||
3025 | function instasplode() | |
3026 | local coru = coroutine.wrap(function() | |
3027 | acting = true | |
3028 | for i=1,1 do | |
3029 | local weld2 = Instance.new('Weld',me["Right Arm"]) | |
3030 | weld2.Part0 = me["Right Arm"] | |
3031 | weld2.Part1 = me["Torso"] | |
3032 | weld2.C0 = CFrame.new(-1.5,0,0) | |
3033 | if finishnum == 1 then | |
3034 | for i = 0,1,0.05 do | |
3035 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil then return end | |
3036 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,0.9,-0.5)*CFrame.Angles(-math.pi/0.75,-math.pi/8,0),i) | |
3037 | wait(0.01) | |
3038 | end | |
3039 | end | |
3040 | weld2.C0 = CFrame.new(-1.5,0.9,-0.5)*CFrame.Angles(-math.pi/0.75,-math.pi/8,0) | |
3041 | audio.SoundId = "rbxassetid://166083610" | |
3042 | audio.PlaybackSpeed = 1 | |
3043 | audio.TimePosition = 0.1 | |
3044 | audio:Play() | |
3045 | if finishnum == 1 then | |
3046 | for i = 0,1,0.5 do | |
3047 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil then return end | |
3048 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,1.2,0.1)*CFrame.Angles(math.pi/0.9,0,0),i) | |
3049 | wait(0.001) | |
3050 | end | |
3051 | end | |
3052 | weld2.C0 = CFrame.new(-1.5,1.2,0.1)*CFrame.Angles(math.pi/0.9,0,0) | |
3053 | local knofe = obj1:Clone() | |
3054 | for i,v in pairs(obj1:GetChildren()) do | |
3055 | if v:IsA('BasePart') then | |
3056 | v.Transparency = 1 | |
3057 | end | |
3058 | end | |
3059 | knofe.Parent = workspace | |
3060 | knofe.Name = "Projectile" | |
3061 | knofe.Grab.CFrame = CFrame.new(knofe.Grab.CFrame.p, mouse.Hit.p)*CFrame.Angles(0,math.pi/2,0) | |
3062 | knofe:FindFirstChild("Trail", true).Enabled = false | |
3063 | fireofjesUS = Instance.new("Fire", knofe.Grab) | |
3064 | local heck = Instance.new('BodyVelocity',knofe.Grab) | |
3065 | heck.Velocity = (knofe.Grab.CFrame*CFrame.Angles(0,math.pi/-2,0)).lookVector*120 | |
3066 | local coru = coroutine.wrap(function() | |
3067 | wait(0.45) | |
3068 | if heck then | |
3069 | heck:Destroy() | |
3070 | end | |
3071 | end) | |
3072 | coru() | |
3073 | knofe["big ass knife"].Touched:connect(function(hit) | |
3074 | if hit.Parent ~= me and hit.Parent.Parent ~= me and hit.Transparency < 1 and knofe.Grab.CanCollide == false then | |
3075 | heck.Velocity = Vector3.new(0,0,0) | |
3076 | heck:Destroy() | |
3077 | for i,v in pairs(knofe:GetChildren()) do | |
3078 | if v:IsA('BasePart') then | |
3079 | v.CanCollide = true | |
3080 | end | |
3081 | end | |
3082 | local hum = hit.Parent:FindFirstChildOfClass('Humanoid') | |
3083 | if hum == nil then | |
3084 | hum = hit.Parent.Parent:FindFirstChildOfClass('Humanoid') | |
3085 | end | |
3086 | if knofe then | |
3087 | local coru = coroutine.wrap(function() | |
3088 | if hit then | |
3089 | local uno = Instance.new('Part',workspace) | |
3090 | local dos = Instance.new('Part',workspace) | |
3091 | uno.CFrame = hit.CFrame | |
3092 | dos.CFrame = knofe["big ass knife"].CFrame | |
3093 | local weld = Instance.new('Weld',knofe["big ass knife"]) | |
3094 | weld.Part0 = hit | |
3095 | weld.Part1 = knofe["big ass knife"] | |
3096 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
3097 | uno:Destroy() | |
3098 | dos:Destroy() | |
3099 | end | |
3100 | end) | |
3101 | coru() | |
3102 | end | |
3103 | local sound = Instance.new('Sound',knofe.Grab) | |
3104 | sound.Name = "BOOM" | |
3105 | sound.EmitterSize = 25 | |
3106 | sound.SoundId = 'rbxassetid://476477344' | |
3107 | sound.Volume = 0.5 | |
3108 | sound:Play() | |
3109 | local exppart = Instance.new("Part", game.Workspace) | |
3110 | exppart.Size = Vector3.new(0.2, 0.2, 0.2) | |
3111 | exppart.Anchored = true | |
3112 | exppart.CanCollide = false | |
3113 | exppart.CFrame = CFrame.new(knofe.Grab.CFrame.p) | |
3114 | exppart.Transparency = 1 | |
3115 | local expaccent = Instance.new("ParticleEmitter", exppart) | |
3116 | expaccent.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 0)), ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 0, 0))}) | |
3117 | expaccent.LightEmission = 0.2 | |
3118 | expaccent.LightInfluence = 0.3 | |
3119 | expaccent.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 0)}) | |
3120 | expaccent.Acceleration = Vector3.new(0, 30, 0) | |
3121 | expaccent.Drag = 15 | |
3122 | expaccent.LockedToPart = false | |
3123 | expaccent.Lifetime = NumberRange.new(0.5, 1.5) | |
3124 | expaccent.Rate = 2000 | |
3125 | expaccent.Speed = NumberRange.new(0,0) | |
3126 | expaccent.SpreadAngle = Vector2.new(360, 360) | |
3127 | expaccent:Clone().Parent = exppart | |
3128 | expaccent:Clone().Parent = exppart | |
3129 | local exp = Instance.new('Explosion',game.Workspace) | |
3130 | exp.Position = knofe["big ass knife"].Position | |
3131 | exp.ExplosionType = Enum.ExplosionType.NoCraters | |
3132 | exp.BlastRadius = 5 | |
3133 | exp.Visible = false | |
3134 | exp.BlastPressure = 0 | |
3135 | exp.DestroyJointRadiusPercent = 0 | |
3136 | exp.Hit:connect(function(hit) | |
3137 | if hit.Parent and hit.Parent ~= me and hit.Parent.Name ~= "bitch ass knife" then | |
3138 | wait(0.001) | |
3139 | tgt = hit | |
3140 | local coru=coroutine.wrap(function(tgtt) | |
3141 | local fireofgods = Instance.new("Fire", tgtt) | |
3142 | fireofgods.Size = 0 | |
3143 | fireofgods.Heat = 0 | |
3144 | local fireofgodsaccent = expaccent:Clone() | |
3145 | fireofgodsaccent.Parent = hit | |
3146 | fireofgodsaccent.Rate = 0 | |
3147 | fireofgodsaccent.Speed = NumberRange.new(5, 50) | |
3148 | fireofgodsaccent.SpreadAngle = Vector2.new(45, 45) | |
3149 | fireofgodsaccent.Acceleration = Vector3.new(0, 20, 0) | |
3150 | ||
3151 | while fireofgods.Size < 10 do | |
3152 | fireofgods.Size = fireofgods.Size + 0.1 | |
3153 | fireofgods.Heat = fireofgods.Heat + 0.1 | |
3154 | fireofgodsaccent.Rate = fireofgodsaccent.Rate + 1 | |
3155 | wait() | |
3156 | end | |
3157 | if hit.Parent and hit.Parent:FindFirstChildOfClass('Humanoid') == nil and hit.Parent.Parent:FindFirstChildOfClass('Humanoid') == nil then | |
3158 | hit:BreakJoints() | |
3159 | elseif hit.Parent and hit.Parent:IsA('Accessory') then | |
3160 | for i,v in pairs(hit:GetChildren()) do | |
3161 | if v:IsA('SpecialMesh') then | |
3162 | v.TextureId = "" | |
3163 | end | |
3164 | end | |
3165 | end | |
3166 | hit.BrickColor = BrickColor.new("Black") | |
3167 | for i,v in pairs(hit.Parent:GetChildren()) do | |
3168 | if v:IsA('Shirt') or v:IsA('Pants') then | |
3169 | v:Destroy() | |
3170 | end | |
3171 | end | |
3172 | ||
3173 | while fireofgods.Size > 5 do | |
3174 | fireofgods.Size = fireofgods.Size - 0.1 | |
3175 | fireofgods.Heat = fireofgods.Heat - 0.1 | |
3176 | wait() | |
3177 | end | |
3178 | fireofgods:Destroy() | |
3179 | if hit.Parent then | |
3180 | if hit.Parent:FindFirstChildOfClass('Humanoid') == nil and hit.Parent.Parent:FindFirstChildOfClass('Humanoid') == nil then | |
3181 | local p = hit | |
3182 | fragmentate(p.CFrame,p.Size,p.BrickColor,p.Position,0.01,p.BackSurface,p.BottomSurface,p.FrontSurface,p.LeftSurface,p.RightSurface,p.TopSurface,p.Transparency,p.Reflectance,p.Material) | |
3183 | hit:Remove() | |
3184 | elseif hit.Parent:FindFirstChildOfClass('Humanoid') ~= nil then | |
3185 | print(hit.Name) | |
3186 | if hit.Name == "Torso" or hit.Name == "Head" then | |
3187 | print('ohhh YAAAA') | |
3188 | hit.Parent:FindFirstChildOfClass('Humanoid').Health = 0 | |
3189 | end | |
3190 | wait() | |
3191 | killz(hit.Parent,hit.Name,nil,nil,false,false,true) | |
3192 | end | |
3193 | end | |
3194 | end) | |
3195 | coru(tgt) | |
3196 | end | |
3197 | end) | |
3198 | local explosionaccenttimeout = coroutine.wrap(function() | |
3199 | wait(0.2) | |
3200 | for i, exploodn in pairs(exppart:GetChildren()) do | |
3201 | exploodn.Enabled = false | |
3202 | end | |
3203 | wait(2) | |
3204 | for i, exploodn in pairs(exppart:GetChildren()) do | |
3205 | exploodn:Remove() | |
3206 | end | |
3207 | end) | |
3208 | explosionaccenttimeout() | |
3209 | for i,v in pairs(knofe:GetChildren()) do | |
3210 | if v:IsA('BasePart') then | |
3211 | v.Transparency = 1 | |
3212 | end | |
3213 | end | |
3214 | exp.AncestryChanged:connect(function() knofe:Destroy() end) | |
3215 | coru() | |
3216 | end | |
3217 | end) | |
3218 | if finishnum == 1 then | |
3219 | for i= 0,1,0.1 do | |
3220 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil then return end | |
3221 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,0,0),i) | |
3222 | wait(0.001) | |
3223 | end | |
3224 | else | |
3225 | wait(0.1) | |
3226 | end | |
3227 | weld2.C0 = CFrame.new(-1.5,0,0) | |
3228 | for i,v in pairs(obj1:GetChildren()) do | |
3229 | if v:IsA('BasePart') then | |
3230 | v.Transparency = 0 | |
3231 | end | |
3232 | end | |
3233 | weld2:Destroy() | |
3234 | rightshoulderz:Clone().Parent = me.Torso | |
3235 | end | |
3236 | acting = false | |
3237 | canClick = true | |
3238 | end) | |
3239 | coru() | |
3240 | end | |
3241 | ||
3242 | function fireworkit() | |
3243 | local coru = coroutine.wrap(function() | |
3244 | acting = true | |
3245 | local ree = 1 | |
3246 | if finishnum > 1 then | |
3247 | ree = 3 | |
3248 | end | |
3249 | for i=1,ree do | |
3250 | local weld2 = Instance.new('Weld',me["Right Arm"]) | |
3251 | weld2.Part0 = me["Right Arm"] | |
3252 | weld2.Part1 = me["Torso"] | |
3253 | weld2.C0 = CFrame.new(-1.5,0,0) | |
3254 | weld2.C0 = CFrame.new(-1.5,0.9,-0.5)*CFrame.Angles(-math.pi/0.75,-math.pi/8,0) | |
3255 | audio.SoundId = "rbxassetid://166083610" | |
3256 | audio.PlaybackSpeed = 1 | |
3257 | audio.TimePosition = 0.1 | |
3258 | audio:Play() | |
3259 | weld2.C0 = CFrame.new(-1.5,1.2,0.1)*CFrame.Angles(math.pi/0.9,0,0) | |
3260 | local knofe = obj1:Clone() | |
3261 | for i,v in pairs(obj1:GetChildren()) do | |
3262 | if v:IsA('BasePart') then | |
3263 | v.Transparency = 1 | |
3264 | end | |
3265 | end | |
3266 | local sound = Instance.new('Sound',knofe.Grab) | |
3267 | sound.Volume = 0.25 | |
3268 | sound.EmitterSize = 200 | |
3269 | sound.MaxDistance = 300 | |
3270 | sound.SoundId = 'rbxassetid://551051176' | |
3271 | sound:Play() | |
3272 | knofe.Parent = workspace | |
3273 | knofe.Name = "Projectile" | |
3274 | knofe.Grab.CFrame = CFrame.new(knofe.Grab.CFrame.p, mouse.Hit.p)*CFrame.Angles(0,math.pi/2,0) | |
3275 | local partic = Instance.new('ParticleEmitter',knofe.Grab) | |
3276 | partic.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(1,0,0)),ColorSequenceKeypoint.new(0.4,Color3.fromRGB(255,125,0)),ColorSequenceKeypoint.new(0.8,Color3.new(1,1,0)),ColorSequenceKeypoint.new(1,Color3.new(1,1,1))}) | |
3277 | partic.LightEmission = 0.5 | |
3278 | partic.LightInfluence = 0 | |
3279 | partic.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5),NumberSequenceKeypoint.new(1,0.15)}) | |
3280 | partic.Rotation = NumberRange.new(0,90) | |
3281 | partic.SpreadAngle = Vector2.new(5,5) | |
3282 | partic.Speed = NumberRange.new(20) | |
3283 | partic.Texture = 'rbxassetid://603193846' | |
3284 | partic.EmissionDirection = Enum.NormalId.Left | |
3285 | partic.Lifetime = NumberRange.new(0.5,1) | |
3286 | partic.Rate = 100 | |
3287 | local heck = Instance.new('BodyVelocity',knofe.Grab) | |
3288 | heck.Velocity = (knofe.Grab.CFrame*CFrame.Angles(0,math.pi/-2,0)).lookVector*240 | |
3289 | knofe["big ass knife"].Touched:connect(function(hit) | |
3290 | sound:Destroy() | |
3291 | local sound2 = Instance.new('Sound',workspace) | |
3292 | sound2.SoundId = 'rbxassetid://138080762' | |
3293 | sound2:Play() | |
3294 | if heck then | |
3295 | heck:Destroy() | |
3296 | end | |
3297 | for i,v in pairs(knofe:GetChildren()) do | |
3298 | v.Anchored = true | |
3299 | end | |
3300 | partic.Enabled = false | |
3301 | local colorscheme = math.random(1,4) | |
3302 | --1 - red & orange | |
3303 | --2 - blue & pink | |
3304 | --3 - green & purple | |
3305 | --4 - blue, red, white | |
3306 | local colar1 = Color3.fromRGB(255,0,0) | |
3307 | local colar2 = Color3.fromRGB(255,125,0) | |
3308 | local colar3 = Color3.fromRGB(255,255,255) | |
3309 | if colorscheme == 2 then | |
3310 | colar1 = Color3.fromRGB(0,132,255) | |
3311 | colar2 = Color3.fromRGB(243,105,255) | |
3312 | elseif colorscheme == 3 then | |
3313 | colar1 = Color3.fromRGB(76,255,0) | |
3314 | colar2 = Color3.fromRGB(128,0,255) | |
3315 | elseif colorscheme == 4 then | |
3316 | colar2 = Color3.fromRGB(0,132,255) | |
3317 | end | |
3318 | local partic2 = Instance.new('ParticleEmitter',knofe.Grab) | |
3319 | partic2.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,colar1),ColorSequenceKeypoint.new(1,colar1)}) | |
3320 | partic2.LightEmission = 0.5 | |
3321 | partic2.LightInfluence = 0 | |
3322 | partic2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5),NumberSequenceKeypoint.new(1,0.1)}) | |
3323 | partic2.Rotation = NumberRange.new(0,90) | |
3324 | partic2.SpreadAngle = Vector2.new(180,180) | |
3325 | partic2.Speed = NumberRange.new(20) | |
3326 | partic2.Texture = 'rbxassetid://603193846' | |
3327 | partic2.EmissionDirection = Enum.NormalId.Right | |
3328 | partic2.Lifetime = NumberRange.new(2,2.5) | |
3329 | partic2.Rate = 1000 | |
3330 | partic2.Drag = 1 | |
3331 | local partic3 = partic2:Clone() | |
3332 | partic3.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,colar2),ColorSequenceKeypoint.new(1,colar2)}) | |
3333 | partic3.Parent = knofe.Grab | |
3334 | if colorscheme == 4 then | |
3335 | local partic4 = partic2:Clone() | |
3336 | partic4.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,colar3),ColorSequenceKeypoint.new(1,colar3)}) | |
3337 | partic4.Parent = knofe.Grab | |
3338 | end | |
3339 | wait(1) | |
3340 | for i,v in pairs(knofe.Grab:GetChildren()) do | |
3341 | if v:IsA('ParticleEmitter') then | |
3342 | v.Enabled = false | |
3343 | end | |
3344 | end | |
3345 | sound:Destroy() | |
3346 | wait(2) | |
3347 | knofe:Destroy() | |
3348 | end) | |
3349 | wait(0.1) | |
3350 | weld2.C0 = CFrame.new(-1.5,0,0) | |
3351 | for i,v in pairs(obj1:GetChildren()) do | |
3352 | if v:IsA('BasePart') then | |
3353 | v.Transparency = 0 | |
3354 | end | |
3355 | end | |
3356 | weld2:Destroy() | |
3357 | rightshoulderz:Clone().Parent = me.Torso | |
3358 | end | |
3359 | acting = false | |
3360 | canClick = true | |
3361 | end) | |
3362 | coru() | |
3363 | end | |
3364 | ||
3365 | function paralyze() | |
3366 | local coru = coroutine.wrap(function() | |
3367 | if paralyzed == true then return end | |
3368 | paralyzed = true | |
3369 | local arm = me["Right Arm"] | |
3370 | local tors = grabbed.Torso | |
3371 | local arm2 = me["Left Arm"] | |
3372 | if arm:FindFirstChildOfClass('Weld') == nil or arm2:FindFirstChildOfClass('Weld') == nil then return end | |
3373 | doing = true | |
3374 | local weld2 = arm:FindFirstChildOfClass('Weld') | |
3375 | local weld3 = arm2:FindFirstChildOfClass('Weld') | |
3376 | local humanroot = me.HumanoidRootPart | |
3377 | for i = 0,1,0.075 do | |
3378 | weld2.C0 = weld2.C0:lerp(CFrame.new(-0.9, 0.80, -1.1)* CFrame.Angles(-2, 0, -1.5), i) | |
3379 | weld3.C0 = weld3.C0:lerp(CFrame.new(0.8, 1, -0.5)* CFrame.Angles(-1.4, 0, 1.1), i) | |
3380 | wait(0.01) | |
3381 | end | |
3382 | for i = 0,1,0.30 do | |
3383 | weld2.C0 = weld2.C0:lerp(CFrame.new(-0.9, 0.80, -1.1)* CFrame.Angles(-0.75, 0, -1.75), i) | |
3384 | weld3.C0 = weld3.C0:lerp(CFrame.new(0.8, 1, -0.5)* CFrame.Angles(-1.4, 0, 1.1), i) | |
3385 | wait(0.01) | |
3386 | end | |
3387 | killz(grabbed,'Left Leg') | |
3388 | killz(grabbed,'Left Arm') | |
3389 | killz(grabbed,'Right Leg') | |
3390 | killz(grabbed,'Right Arm') | |
3391 | ||
3392 | for i, v in pairs(grabbed:GetChildren()) do | |
3393 | if v.Name == "Part" then | |
3394 | v.CanCollide = false | |
3395 | end | |
3396 | end | |
3397 | ||
3398 | audio:Stop() | |
3399 | audio.SoundId = "rbxassetid://2801263" | |
3400 | tone = math.random(1, 3) | |
3401 | if tone == 1 then audio.PlaybackSpeed = 0.8 audio.TimePosition = 0 end | |
3402 | if tone == 2 then audio.PlaybackSpeed = 1 audio.TimePosition = 0 end | |
3403 | if tone == 3 then audio.PlaybackSpeed = 1.2 audio.TimePosition = 0 end | |
3404 | audio:Play() | |
3405 | ||
3406 | local bleedpart = Instance.new("Part", grabbed) | |
3407 | bleedpart.Size = Vector3.new(0.2, 0.2, 0.2) | |
3408 | bleedpart.Color = Color3.new(115/225, 115/225, 115/225) | |
3409 | bleedpart.CanCollide = false | |
3410 | bleedpart.Position = grabbed.Head.Position + Vector3.new(0, 1, 0) | |
3411 | bleedpart.Transparency = 1 | |
3412 | ||
3413 | local bleedpartweld = Instance.new("Weld", grabbed.Torso) | |
3414 | bleedpartweld.Part0 = grabbed.Torso | |
3415 | bleedpartweld.Part1 = bleedpart | |
3416 | bleedpartweld.C0 = CFrame.Angles(-1, 0, -0.35) * CFrame.new(0, 1, 0.8) | |
3417 | local cuntruu=coroutine.wrap(function() | |
3418 | bleed(bleedpart) | |
3419 | end) | |
3420 | local thicc = coroutine.wrap(function() | |
3421 | wait(3) | |
3422 | bleedpart:Remove() | |
3423 | end) | |
3424 | cuntruu() | |
3425 | thicc() | |
3426 | ||
3427 | for i = 0,1,0.075 do | |
3428 | weld2.C0 = weld2.C0:lerp(CFrame.new(-0.9, 0.80, -1.1)* CFrame.Angles(-1.5, 0, -1.3), i) | |
3429 | weld3.C0 = weld3.C0:lerp(CFrame.new(0.8, 1, -0.5)* CFrame.Angles(-1.5, 0, 1.1), i) | |
3430 | wait(0.01) | |
3431 | end | |
3432 | acting = true | |
3433 | canClick = true | |
3434 | doing = false | |
3435 | end) | |
3436 | coru() | |
3437 | end | |
3438 | ||
3439 | function explode() | |
3440 | local coru = coroutine.wrap(function() | |
3441 | acting = true | |
3442 | for i=1,finishnum do | |
3443 | local weld2 = Instance.new('Weld',me["Right Arm"]) | |
3444 | weld2.Part0 = me["Right Arm"] | |
3445 | weld2.Part1 = me["Torso"] | |
3446 | weld2.C0 = CFrame.new(-1.5,0,0) | |
3447 | if finishnum == 1 then | |
3448 | for i = 0,1,0.05 do | |
3449 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil then return end | |
3450 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,0.9,-0.5)*CFrame.Angles(-math.pi/0.75,-math.pi/8,0),i) | |
3451 | wait(0.01) | |
3452 | end | |
3453 | end | |
3454 | weld2.C0 = CFrame.new(-1.5,0.9,-0.5)*CFrame.Angles(-math.pi/0.75,-math.pi/8,0) | |
3455 | audio.SoundId = "rbxassetid://166083610" | |
3456 | audio.PlaybackSpeed = 1 | |
3457 | audio.TimePosition = 0.1 | |
3458 | audio:Play() | |
3459 | if finishnum == 1 then | |
3460 | for i = 0,1,0.5 do | |
3461 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil then return end | |
3462 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,1.2,0.1)*CFrame.Angles(math.pi/0.9,0,0),i) | |
3463 | wait(0.001) | |
3464 | end | |
3465 | end | |
3466 | weld2.C0 = CFrame.new(-1.5,1.2,0.1)*CFrame.Angles(math.pi/0.9,0,0) | |
3467 | local knofe = obj1:Clone() | |
3468 | for i,v in pairs(obj1:GetChildren()) do | |
3469 | if v:IsA('BasePart') then | |
3470 | v.Transparency = 1 | |
3471 | end | |
3472 | end | |
3473 | knofe.Parent = workspace | |
3474 | knofe.Name = "Projectile" | |
3475 | knofe.Grab.CFrame = CFrame.new(knofe.Grab.CFrame.p, mouse.Hit.p)*CFrame.Angles(0,math.pi/2,0) | |
3476 | knofe:FindFirstChild("Trail", true).Enabled = false | |
3477 | local heck = Instance.new('BodyVelocity',knofe.Grab) | |
3478 | heck.Velocity = (knofe.Grab.CFrame*CFrame.Angles(0,math.pi/-2,0)).lookVector*120 | |
3479 | local coru = coroutine.wrap(function() | |
3480 | wait(0.45) | |
3481 | if heck then | |
3482 | heck:Destroy() | |
3483 | end | |
3484 | end) | |
3485 | coru() | |
3486 | knofe["big ass knife"].Touched:connect(function(hit) | |
3487 | if hit.Parent ~= me and hit.Parent.Parent ~= me and hit.Transparency < 1 and knofe.Grab.CanCollide == false then | |
3488 | heck.Velocity = Vector3.new(0,0,0) | |
3489 | heck:Destroy() | |
3490 | for i,v in pairs(knofe:GetChildren()) do | |
3491 | if v:IsA('BasePart') then | |
3492 | v.CanCollide = true | |
3493 | end | |
3494 | end | |
3495 | local hum = hit.Parent:FindFirstChildOfClass('Humanoid') | |
3496 | if hum == nil then | |
3497 | hum = hit.Parent.Parent:FindFirstChildOfClass('Humanoid') | |
3498 | end | |
3499 | if hum then | |
3500 | tone = math.random(1, 3) | |
3501 | local sound = Instance.new('Sound',knofe.Grab) | |
3502 | if tone == 1 then sound.SoundId = "rbxassetid://220833967" end | |
3503 | if tone == 2 then sound.SoundId = "rbxassetid://220833976" end | |
3504 | if tone == 3 then sound.SoundId = "rbxassetid://220834000" end | |
3505 | sound.PlaybackSpeed = 1 | |
3506 | sound:Play() | |
3507 | else | |
3508 | local sound = Instance.new('Sound',knofe.Grab) | |
3509 | sound.SoundId = 'rbxassetid://267585646' | |
3510 | sound:Play() | |
3511 | end | |
3512 | if knofe then | |
3513 | local coru = coroutine.wrap(function() | |
3514 | if hit then | |
3515 | local uno = Instance.new('Part',workspace) | |
3516 | local dos = Instance.new('Part',workspace) | |
3517 | uno.CFrame = hit.CFrame | |
3518 | dos.CFrame = knofe["big ass knife"].CFrame | |
3519 | local weld = Instance.new('Weld',knofe["big ass knife"]) | |
3520 | weld.Part0 = hit | |
3521 | weld.Part1 = knofe["big ass knife"] | |
3522 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
3523 | uno:Destroy() | |
3524 | dos:Destroy() | |
3525 | end | |
3526 | end) | |
3527 | coru() | |
3528 | end | |
3529 | local coru = coroutine.wrap(function() | |
3530 | for i=1,15,0.7 do | |
3531 | local sound = Instance.new('Sound',knofe.Grab) | |
3532 | if knofe then | |
3533 | if knofe.serration.BrickColor == BrickColor.new('Really red') then | |
3534 | for i, v in pairs(knofe:GetChildren()) do | |
3535 | if v.Name == "big ass knife" or v.Name == "serration" or v.Name == "knifetip1" or v.Name == "fricc" then | |
3536 | v.BrickColor = BrickColor.new('Lily white') | |
3537 | v.Material = Enum.Material.SmoothPlastic | |
3538 | end | |
3539 | end | |
3540 | else | |
3541 | for i,v in pairs(knofe:GetChildren()) do | |
3542 | if v.Name == "big ass knife" or v.Name == "serration" or v.Name == "knifetip1" or v.Name == "fricc" then | |
3543 | v.BrickColor = BrickColor.new('Really red') | |
3544 | v.Material = Enum.Material.Neon | |
3545 | sound.SoundId = 'rbxassetid://300473653' | |
3546 | sound.Volume = 0.75 | |
3547 | sound.TimePosition = 0.05 | |
3548 | sound.EmitterSize = 25 | |
3549 | sound.PlaybackSpeed = 1 | |
3550 | sound:Play() | |
3551 | end | |
3552 | end | |
3553 | end | |
3554 | wait(1/i) | |
3555 | sound:Destroy() | |
3556 | end | |
3557 | end | |
3558 | local sound = Instance.new('Sound',knofe.Grab) | |
3559 | sound.Name = "BOOM" | |
3560 | sound.EmitterSize = 25 | |
3561 | sound.SoundId = 'rbxassetid://12222084' | |
3562 | sound.TimePosition = 0.1 | |
3563 | sound.Volume = 0.5 | |
3564 | sound:Play() | |
3565 | local exppart = Instance.new("Part", game.Workspace) | |
3566 | exppart.Size = Vector3.new(0.2, 0.2, 0.2) | |
3567 | exppart.Anchored = true | |
3568 | exppart.CanCollide = false | |
3569 | exppart.CFrame = CFrame.new(knofe.Grab.CFrame.p) | |
3570 | exppart.Transparency = 1 | |
3571 | local expaccent = Instance.new("ParticleEmitter", exppart) | |
3572 | expaccent.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 0)), ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 0, 0))}) | |
3573 | expaccent.LightEmission = 0.2 | |
3574 | expaccent.LightInfluence = 0.3 | |
3575 | expaccent.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 0)}) | |
3576 | expaccent.Acceleration = Vector3.new(0, -8, 0) | |
3577 | expaccent.Drag = 15 | |
3578 | expaccent.LockedToPart = true | |
3579 | expaccent.Lifetime = NumberRange.new(0.5, 1.5) | |
3580 | expaccent.Rate = 2000 | |
3581 | expaccent.Speed = NumberRange.new(10, 150) | |
3582 | expaccent.SpreadAngle = Vector2.new(360, 360) | |
3583 | ||
3584 | local exp = Instance.new('Explosion',game.Workspace) | |
3585 | exp.Position = knofe["big ass knife"].Position | |
3586 | exp.ExplosionType = Enum.ExplosionType.NoCraters | |
3587 | exp.BlastRadius = 10 | |
3588 | exp.BlastPressure = 100000 | |
3589 | exp.DestroyJointRadiusPercent = 1 | |
3590 | exp.Hit:connect(function(hit) | |
3591 | if hit.Parent and hit.Parent ~= me and hit.Parent:FindFirstChildOfClass('Humanoid') then | |
3592 | if hit.Parent:FindFirstChildOfClass('Humanoid') and hit.Name == "Torso" or hit.Name == "Head" then | |
3593 | hit.Parent:FindFirstChildOfClass('Humanoid').Health = 0 | |
3594 | end | |
3595 | wait(0.001) | |
3596 | local coru=coroutine.wrap(function() | |
3597 | killz(hit.Parent,'Head',knofe,exp) | |
3598 | end) | |
3599 | coru() | |
3600 | elseif hit.Parent and hit.Parent ~= workspace and hit.Parent ~= me then | |
3601 | if hit.Parent.Name ~= "Projectile" then | |
3602 | hit.Parent:BreakJoints() | |
3603 | end | |
3604 | elseif hit.Parent and hit.Parent ~= me then | |
3605 | hit:BreakJoints() | |
3606 | end | |
3607 | end) | |
3608 | local explosionaccenttimeout = coroutine.wrap(function() | |
3609 | wait(0.2) | |
3610 | expaccent.Enabled = false | |
3611 | wait(2) | |
3612 | exppart:Remove() | |
3613 | end) | |
3614 | explosionaccenttimeout() | |
3615 | for i,v in pairs(knofe:GetChildren()) do | |
3616 | if v:IsA('BasePart') then | |
3617 | v.Transparency = 1 | |
3618 | end | |
3619 | end | |
3620 | exp.AncestryChanged:connect(function() knofe:Destroy() end) | |
3621 | end) | |
3622 | coru() | |
3623 | end | |
3624 | end) | |
3625 | if finishnum == 1 then | |
3626 | for i= 0,1,0.1 do | |
3627 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil then return end | |
3628 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,0,0),i) | |
3629 | wait(0.001) | |
3630 | end | |
3631 | else | |
3632 | wait(0.1) | |
3633 | end | |
3634 | weld2.C0 = CFrame.new(-1.5,0,0) | |
3635 | for i,v in pairs(obj1:GetChildren()) do | |
3636 | if v:IsA('BasePart') then | |
3637 | v.Transparency = 0 | |
3638 | end | |
3639 | end | |
3640 | weld2:Destroy() | |
3641 | rightshoulderz:Clone().Parent = me.Torso | |
3642 | end | |
3643 | acting = false | |
3644 | canClick = true | |
3645 | end) | |
3646 | coru() | |
3647 | end | |
3648 | ||
3649 | function release() | |
3650 | if grabbed.Torso:FindFirstChild("TargetWeld") == nil or grabbed:FindFirstChildOfClass('Humanoid').Health <= 0 then return end | |
3651 | targetweld = grabbed.Torso.TargetWeld | |
3652 | local ree= grabbed:FindFirstChild("Left Arm") | |
3653 | targetweld2 = nil | |
3654 | if ree and ree:FindFirstChild("Weld") then | |
3655 | targetweld2 = ree.Weld | |
3656 | end | |
3657 | for i, v in pairs(grabbed:GetChildren()) do | |
3658 | if v.Name == "Part" then | |
3659 | v.CanCollide = true | |
3660 | end | |
3661 | end | |
3662 | paralyzed = false | |
3663 | local doit = coroutine.wrap(function() | |
3664 | local arm = me["Right Arm"] | |
3665 | local tors = grabbed.Torso | |
3666 | local arm2 = me["Left Arm"] | |
3667 | if arm:FindFirstChildOfClass('Weld') == nil or arm2:FindFirstChildOfClass('Weld') == nil then return end | |
3668 | doing = true | |
3669 | local weld2 = arm:FindFirstChildOfClass('Weld') | |
3670 | local weld3 = arm2:FindFirstChildOfClass('Weld') | |
3671 | local humanroot = me.HumanoidRootPart | |
3672 | ||
3673 | if grabbed:FindFirstChildOfClass('Humanoid') then | |
3674 | grabbed:FindFirstChildOfClass('Humanoid').PlatformStand = false | |
3675 | end | |
3676 | ||
3677 | rightshoulderz:Clone().Parent = me.Torso | |
3678 | leftshoulderz:Clone().Parent = me.Torso | |
3679 | grabbed = nil | |
3680 | ||
3681 | if humanroot:FindFirstChild('Holder') then | |
3682 | humanroot.Holder:Destroy() | |
3683 | end | |
3684 | ||
3685 | for i = 0,1,0.1 do | |
3686 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil or weld3 == nil then return end | |
3687 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,0,0),i) | |
3688 | weld3.C0 = weld3.C0:lerp(CFrame.new(1.5,0,0),i) | |
3689 | targetweld.C0 = targetweld.C0:lerp(CFrame.new(0, 1.5, 0)*CFrame.Angles(0, 0, 0), i) | |
3690 | if targetweld2 then | |
3691 | targetweld2.C0 = targetweld2.C0:lerp(CFrame.new(-1.5, 0, 0)*CFrame.Angles(0, 0, 0), i) | |
3692 | end | |
3693 | wait(0.01) | |
3694 | end | |
3695 | ||
3696 | knifeweld.C1 = CFrame.fromEulerAnglesXYZ(1.55, math.rad(-90), 1.55) * CFrame.new(0, 0.95, 0.2) | |
3697 | weld2:Destroy() | |
3698 | weld3:Destroy() | |
3699 | targetweld:Remove() | |
3700 | if targetweld2 then | |
3701 | targetweld2:Remove() | |
3702 | end | |
3703 | if rightshoulder then | |
3704 | rightshoulder:Clone().Parent = tors | |
3705 | end | |
3706 | if leftshoulder then | |
3707 | leftshoulder:Clone().Parent = tors | |
3708 | end | |
3709 | headweld:Clone().Parent = tors | |
3710 | rightshoulderz:Clone().Parent = me.Torso | |
3711 | leftshoulderz:Clone().Parent = me.Torso | |
3712 | acting = false | |
3713 | canClick = true | |
3714 | doing = false | |
3715 | end) | |
3716 | doit() | |
3717 | end | |
3718 | ||
3719 | function stabwithpassion() | |
3720 | local doit = coroutine.wrap(function() | |
3721 | if me:FindFirstChild('Right Arm') and me:FindFirstChild('Torso') and me:FindFirstChild('HumanoidRootPart') and me:FindFirstChild('Left Arm') then | |
3722 | acting = true | |
3723 | me:FindFirstChildOfClass('Humanoid').WalkSpeed = me:FindFirstChildOfClass('Humanoid').WalkSpeed + 10 | |
3724 | local arm = me["Right Arm"] | |
3725 | local tors = me.Torso | |
3726 | local arm2 = me["Left Arm"] | |
3727 | local humanroot = me.HumanoidRootPart | |
3728 | local weld = Instance.new('Weld',tors) | |
3729 | weld.Part0 = tors | |
3730 | weld.Part1 = humanroot | |
3731 | weld.C0 = CFrame.new(0,0,0) * CFrame.Angles(0, 0, 0) | |
3732 | local weld2 = Instance.new('Weld',arm) | |
3733 | weld2.Part0 = arm | |
3734 | weld2.Part1 = tors | |
3735 | weld2.C0 = CFrame.new(-1.5,0,0) * CFrame.Angles(0, 0, 0) | |
3736 | local weld3 = Instance.new('Weld',arm2) | |
3737 | weld3.Part0 = arm2 | |
3738 | weld3.Part1 = tors | |
3739 | weld3.C0 = CFrame.new(1.5,0,-0.3) * CFrame.Angles(0.3,0.1,0) | |
3740 | ||
3741 | for i = 0,1,0.15 do | |
3742 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld == nil or weld2 == nil or humanroot == nil then return end | |
3743 | weld.C0 = weld.C0:lerp(CFrame.new(0,0,0)*CFrame.Angles(0,math.rad(20),0),i) | |
3744 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.2,1.3,0.4)*CFrame.Angles(0.5,0,-1.2),i) | |
3745 | knifeweld.C1 = knifeweld.C1:lerp(CFrame.fromEulerAnglesXYZ(1.55, math.rad(90), -1.55) * CFrame.new(0, 0.95, 0), i) | |
3746 | wait(0.01) | |
3747 | end | |
3748 | wait(0.001) | |
3749 | trail.Enabled = true | |
3750 | stabbing = true | |
3751 | audio2.SoundId = 'rbxassetid://608537390' | |
3752 | audio2:Play() | |
3753 | for i = 0,1,0.2 do | |
3754 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld == nil or weld2 == nil or humanroot == nil then return end | |
3755 | weld.C0 = weld.C0:lerp(CFrame.new(0,0,0)*CFrame.Angles(0,math.rad(-45),0),i) | |
3756 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.6,0.8,-1)*CFrame.Angles(math.rad(-90),0,-1),i) | |
3757 | wait(0.01) | |
3758 | end | |
3759 | trail.Enabled = false | |
3760 | wait(0.1) | |
3761 | me:FindFirstChildOfClass('Humanoid').WalkSpeed = me:FindFirstChildOfClass('Humanoid').WalkSpeed - 10 | |
3762 | stabbing = false | |
3763 | wait(0.001) | |
3764 | for i = 0,1,0.075 do | |
3765 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld == nil or weld2 == nil or humanroot == nil then return end | |
3766 | weld.C0 = weld.C0:lerp(CFrame.new(0,0,0)*CFrame.Angles(0,0,0),i) | |
3767 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,0,0)*CFrame.Angles(0,0,0),i) | |
3768 | weld3.C0 = weld3.C0:lerp(CFrame.new(1.5,0,0)*CFrame.Angles(0,0,0),i) | |
3769 | knifeweld.C1 = knifeweld.C1:lerp(CFrame.fromEulerAnglesXYZ(1.55, math.rad(-90), 1.55) * CFrame.new(0, 0.95, 0), i) | |
3770 | wait(0.01) | |
3771 | end | |
3772 | weld:Destroy() | |
3773 | weld2:Destroy() | |
3774 | weld3:Destroy() | |
3775 | torsojoint:Clone().Parent = humanroot | |
3776 | rightshoulderz:Clone().Parent = me.Torso | |
3777 | leftshoulderz:Clone().Parent = me.Torso | |
3778 | canClick = true | |
3779 | hit = false | |
3780 | acting = false | |
3781 | end | |
3782 | end) | |
3783 | doit() | |
3784 | end | |
3785 | ||
3786 | function stab() | |
3787 | local doit = coroutine.wrap(function() | |
3788 | if me:FindFirstChild('Right Arm') and me:FindFirstChild('Torso') and me:FindFirstChild('HumanoidRootPart') and me:FindFirstChild('Left Arm') then | |
3789 | acting = true | |
3790 | me:FindFirstChildOfClass('Humanoid').WalkSpeed = me:FindFirstChildOfClass('Humanoid').WalkSpeed + 3 | |
3791 | local arm = me["Right Arm"] | |
3792 | local tors = me.Torso | |
3793 | local arm2 = me["Left Arm"] | |
3794 | local humanroot = me.HumanoidRootPart | |
3795 | local weld = Instance.new('Weld',tors) | |
3796 | weld.Part0 = tors | |
3797 | weld.Part1 = humanroot | |
3798 | weld.C0 = CFrame.new(0,0,0) * CFrame.Angles(0, 0, 0) | |
3799 | local weld2 = Instance.new('Weld',arm) | |
3800 | weld2.Part0 = arm | |
3801 | weld2.Part1 = tors | |
3802 | weld2.C0 = CFrame.new(-1.5,0,0) * CFrame.Angles(0, 0, 0) | |
3803 | local weld3 = Instance.new('Weld',arm2) | |
3804 | weld3.Part0 = arm2 | |
3805 | weld3.Part1 = tors | |
3806 | weld3.C0 = CFrame.new(1.5,0,-0.3) * CFrame.Angles(0.3,0.1,0) | |
3807 | ||
3808 | for i = 0,1,0.1 do | |
3809 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld == nil or weld2 == nil or humanroot == nil then return end | |
3810 | weld.C0 = weld.C0:lerp(CFrame.new(0,0,0)*CFrame.Angles(0,0.3,0),i) | |
3811 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.2,1.3,0.4)*CFrame.Angles(0.5,0,-1.2),i) | |
3812 | wait(0.01) | |
3813 | end | |
3814 | wait(0.001) | |
3815 | trail.Enabled = true | |
3816 | stabbing = true | |
3817 | audio2.SoundId = 'rbxassetid://608537390' | |
3818 | audio2:Play() | |
3819 | for i = 0,1,0.25 do | |
3820 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld == nil or weld2 == nil or humanroot == nil then return end | |
3821 | weld.C0 = weld.C0:lerp(CFrame.new(0,0,0)*CFrame.Angles(0,-0.3,0),i) | |
3822 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.6,0.8,0.5)*CFrame.Angles(-0.5,0,-0.5),i) | |
3823 | wait(0.01) | |
3824 | end | |
3825 | trail.Enabled = false | |
3826 | wait(0.1) | |
3827 | me:FindFirstChildOfClass('Humanoid').WalkSpeed = me:FindFirstChildOfClass('Humanoid').WalkSpeed - 3 | |
3828 | for i = 0,1,0.25 do | |
3829 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld == nil or weld2 == nil or humanroot == nil then return end | |
3830 | weld.C0 = weld.C0:lerp(CFrame.new(0,0,0)*CFrame.Angles(0,0.3,0),i) | |
3831 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,0.6,-0.3)*CFrame.Angles(0.5,0,-0.5),i) | |
3832 | wait(0.01) | |
3833 | end | |
3834 | stabbing = false | |
3835 | wait(0.001) | |
3836 | for i = 0,1,0.05 do | |
3837 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld == nil or weld2 == nil or humanroot == nil then return end | |
3838 | weld.C0 = weld.C0:lerp(CFrame.new(0,0,0)*CFrame.Angles(0,0,0),i) | |
3839 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,0,0)*CFrame.Angles(0,0,0),i) | |
3840 | weld3.C0 = weld3.C0:lerp(CFrame.new(1.5,0,0)*CFrame.Angles(0,0,0),i) | |
3841 | wait(0.01) | |
3842 | end | |
3843 | weld:Destroy() | |
3844 | weld2:Destroy() | |
3845 | weld3:Destroy() | |
3846 | torsojoint:Clone().Parent = humanroot | |
3847 | rightshoulderz:Clone().Parent = me.Torso | |
3848 | leftshoulderz:Clone().Parent = me.Torso | |
3849 | canClick = true | |
3850 | hit = false | |
3851 | acting = false | |
3852 | end | |
3853 | end) | |
3854 | doit() | |
3855 | end | |
3856 | function hardrelease() | |
3857 | rightshoulderz:Clone().Parent = me.Torso | |
3858 | leftshoulderz:Clone().Parent = me.Torso | |
3859 | if me:FindFirstChild('Right Arm') then | |
3860 | for i,v in pairs(me["Right Arm"]:GetChildren()) do | |
3861 | if v:IsA('Weld') then | |
3862 | v:Destroy() | |
3863 | end | |
3864 | end | |
3865 | end | |
3866 | if me:FindFirstChild('Left Arm') then | |
3867 | for i,v in pairs(me["Left Arm"]:GetChildren()) do | |
3868 | if v:IsA('Weld') then | |
3869 | v:Destroy() | |
3870 | end | |
3871 | end | |
3872 | end | |
3873 | acting = false | |
3874 | canClick = true | |
3875 | doing = false | |
3876 | grabbed = nil | |
3877 | end | |
3878 | function unequip() | |
3879 | local doit = coroutine.wrap(function() | |
3880 | if me:FindFirstChild('Right Arm') and me:FindFirstChild('Torso') then | |
3881 | acting = true | |
3882 | local arm = me["Right Arm"] | |
3883 | local arm2 = me["Left Arm"] | |
3884 | local tors = me.Torso | |
3885 | local weld = Instance.new('Weld',arm) | |
3886 | weld.Part0 = arm | |
3887 | weld.Part1 = tors | |
3888 | weld.C0 = CFrame.new(-1.5,0,0) | |
3889 | local weld2 = Instance.new("Weld", arm2) | |
3890 | weld2.Part0 = arm2 | |
3891 | weld2.Part1 = tors | |
3892 | weld2.C0 = CFrame.new(1.5, 0, 0) | |
3893 | wait(0.001) | |
3894 | trail.Enabled = true | |
3895 | for i = 0,1,0.1 do | |
3896 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld == nil then return end | |
3897 | weld.C0 = weld.C0:lerp(CFrame.new(-0.2,0.2,-0.5)*CFrame.Angles(0,-3.1,0.9),i) | |
3898 | weld2.C0 = weld2.C0:lerp(CFrame.new(1.5, 0.6, 0) * CFrame.Angles(0,0,0.5),i) | |
3899 | wait(0.001) | |
3900 | end | |
3901 | trail.Enabled = false | |
3902 | wait(0.25) | |
3903 | for i = 0,1,0.1 do | |
3904 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld == nil then return end | |
3905 | weld.C0 = weld.C0:lerp(CFrame.new(-1.5,0,0),i) | |
3906 | weld2.C0 = weld2.C0:lerp(CFrame.new(1.5, 0, 0), i) | |
3907 | wait(0.01) | |
3908 | end | |
3909 | weld:Destroy() | |
3910 | weld2:Remove() | |
3911 | if tors ~= nil then | |
3912 | rightshoulderz:Clone().Parent = me.Torso | |
3913 | leftshoulderz:Clone().Parent = me.Torso | |
3914 | end | |
3915 | acting = false | |
3916 | end | |
3917 | end) | |
3918 | doit() | |
3919 | end | |
3920 | ||
3921 | mouse.KeyDown:connect(function(key) | |
3922 | if usable == true then | |
3923 | if key == "z" then | |
3924 | if active == false and acting == false then | |
3925 | active = true | |
3926 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end | |
3927 | notify("KNIFE EQUIPPED",false) | |
3928 | audio:Stop() | |
3929 | audio.SoundId = 'rbxassetid://608618332' | |
3930 | equip() | |
3931 | wait(0.6) | |
3932 | audio:Play() | |
3933 | knifeweld.Part0 = me["Right Arm"] | |
3934 | knifeweld.C1 = CFrame.fromEulerAnglesXYZ(1.55, math.rad(-90), 1.55) * CFrame.new(0, 0.95, 0) | |
3935 | elseif acting == false then | |
3936 | active = false | |
3937 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end | |
3938 | audio:Stop() | |
3939 | audio.SoundId = 'rbxassetid://608538233' | |
3940 | unequip() | |
3941 | notify("KNIFE UNEQUIPPED",false) | |
3942 | wait(0.3) | |
3943 | audio:Play() | |
3944 | knifeweld.Part0 = me.Torso | |
3945 | knifeweld.C1 = CFrame.Angles(0,math.rad(90),0) * CFrame.new(1, 0.8, 0.55) | |
3946 | canClick = true | |
3947 | end | |
3948 | elseif key == "f" then | |
3949 | if mode == 'kill' or active == false then return end | |
3950 | mode = "kill" | |
3951 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end | |
3952 | notify("MODE || KILL || [F]",false) | |
3953 | elseif key == "e" then | |
3954 | if mode == 'throw' or active == false then return end | |
3955 | mode = "throw" | |
3956 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end | |
3957 | notify("MODE || PUSH || [E]",false) | |
3958 | elseif key == "q" then | |
3959 | if mode == 'release' or active == false then return end | |
3960 | mode = "release" | |
3961 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end | |
3962 | notify("MODE || RELEASE || [Q]",false) | |
3963 | elseif key == "x" then | |
3964 | if mode == 'stab' or active == false or acting == true then return end | |
3965 | mode = "stab" | |
3966 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end | |
3967 | notify("MODE || STAB || [X]",false) | |
3968 | elseif key == "c" then | |
3969 | if mode == 'fling' or active == false or acting == true then return end | |
3970 | mode = "fling" | |
3971 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end | |
3972 | notify("MODE || THROW || [C]",false) | |
3973 | elseif key == "b" then | |
3974 | if mode == 'instasplode' or active == false or acting == true then return end | |
3975 | mode = "instasplode" | |
3976 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end | |
3977 | notify("MODE || MOLOTOV || [B]",false) | |
3978 | elseif key == "r" then | |
3979 | if mode == 'paralyze' or active == false then return end | |
3980 | mode = "paralyze" | |
3981 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end | |
3982 | notify("MODE || PARALYZE || [R]",false) | |
3983 | elseif key == "v" then | |
3984 | if mode == 'explode' or active == false or acting == true then return end | |
3985 | mode = "explode" | |
3986 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end | |
3987 | notify("MODE || EXPLODE || [V]",false) | |
3988 | elseif key == "k" then | |
3989 | if mode == 'suicide' or active == false or acting == true then return end | |
3990 | mode = "suicide" | |
3991 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end | |
3992 | notify("MODE || SUICIDE || [K]",false) | |
3993 | elseif key == "h" then | |
3994 | if mode == 'firework' or active == false or acting == true then return end | |
3995 | mode = "firework" | |
3996 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end | |
3997 | notify("MODE || FIREWORK || [H]",false) | |
3998 | elseif key == "g" then | |
3999 | if mode == 'finish' or active == false then return end | |
4000 | mode = "finish" | |
4001 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end | |
4002 | local welp = "ON" | |
4003 | if finishnum == 1 then | |
4004 | welp = "OFF" | |
4005 | end | |
4006 | notify("MODE || FINISH || [G] || "..welp,false) | |
4007 | elseif key == "n" then | |
4008 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end | |
4009 | if zombiemode == false then | |
4010 | notify("ZOMBIE MODE ON || [N]",false) | |
4011 | zombiemode = true | |
4012 | else | |
4013 | notify("ZOMBIE MODE OFF || [N]",false) | |
4014 | zombiemode = false | |
4015 | end | |
4016 | elseif key == "m" then | |
4017 | if finishnum == 1 then | |
4018 | finishnum = 15 | |
4019 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end | |
4020 | notify("PSYCHOPATH MODE ON || [M]",false) | |
4021 | if cancolorfilter then | |
4022 | local Sp00kyGui = Instance.new("ScreenGui") | |
4023 | local ImageLabel = Instance.new("ImageLabel") | |
4024 | ||
4025 | -- Properties | |
4026 | ||
4027 | Sp00kyGui.Parent = playergui | |
4028 | Sp00kyGui.Name = "REEEEEEEE" | |
4029 | ||
4030 | ImageLabel.Parent = Sp00kyGui | |
4031 | ImageLabel.BackgroundColor3 = Color3.new(1, 1, 1) | |
4032 | ImageLabel.BackgroundTransparency = 1 | |
4033 | ImageLabel.Size = UDim2.new(1, 0, 1, 0) | |
4034 | ImageLabel.Image = "rbxassetid://74443700" | |
4035 | ImageLabel.ImageColor3 = Color3.new(1, 0, 0) | |
4036 | end | |
4037 | if canbackgroundmusic == true then | |
4038 | local sound = Instance.new('Sound',playergui) | |
4039 | sound.Name = 'PSYCHOPAAAATH' | |
4040 | sound.SoundId = 'rbxassetid://220875210' | |
4041 | sound.Looped = true | |
4042 | sound.Volume = 0.5 | |
4043 | sound:Play() | |
4044 | end | |
4045 | else | |
4046 | finishnum = 1 | |
4047 | if playergui:FindFirstChild('Notification') then playergui.Notification:Destroy() end | |
4048 | notify("PSYCHOPATH MODE OFF || [M]",false) | |
4049 | for i,v in pairs(playergui:GetChildren()) do | |
4050 | if v.Name == "REEEEEEEE" then | |
4051 | v:Destroy() | |
4052 | end | |
4053 | end | |
4054 | local thisniggarighthere = playergui:FindFirstChild('PSYCHOPAAAATH') | |
4055 | if thisniggarighthere then thisniggarighthere:Destroy() end | |
4056 | end | |
4057 | end | |
4058 | end | |
4059 | end) | |
4060 | ||
4061 | mouse.Button1Down:connect(function() | |
4062 | if active == false or usable == false then return end | |
4063 | if canClick == true and acting == false then | |
4064 | if mode == "stab" and finishnum == 1 then | |
4065 | canClick = false | |
4066 | stab() | |
4067 | elseif mode == "stab" and finishnum == 15 then | |
4068 | canClick = false | |
4069 | stabwithpassion() | |
4070 | elseif mode == "fling" then | |
4071 | canClick = false | |
4072 | fling() | |
4073 | elseif mode == "explode" then | |
4074 | canClick = false | |
4075 | explode() | |
4076 | elseif mode == "instasplode" then | |
4077 | canClick = false | |
4078 | instasplode() | |
4079 | elseif mode == "finish" then | |
4080 | canClick = false | |
4081 | finish() | |
4082 | elseif mode == "suicide" then | |
4083 | canClick = false | |
4084 | kysnigga() | |
4085 | elseif mode == "firework" then | |
4086 | canClick = false | |
4087 | fireworkit() | |
4088 | else | |
4089 | canClick = false | |
4090 | grab() | |
4091 | end | |
4092 | else | |
4093 | if grabbed ~= nil and doing == false then | |
4094 | if mode == "release" then | |
4095 | if acting == true and grabbed:FindFirstChildOfClass('Humanoid') and grabbed:FindFirstChildOfClass('Humanoid').Health > 0 then | |
4096 | release() | |
4097 | else | |
4098 | hardrelease() | |
4099 | end | |
4100 | elseif mode == "kill" then | |
4101 | if acting == true and grabbed:FindFirstChildOfClass('Humanoid') and grabbed:FindFirstChildOfClass('Humanoid').Health > 0 then | |
4102 | kill() | |
4103 | else | |
4104 | hardrelease() | |
4105 | end | |
4106 | elseif mode == "paralyze" then | |
4107 | if acting == true and grabbed:FindFirstChildOfClass('Humanoid') and grabbed:FindFirstChildOfClass('Humanoid').Health > 0 then | |
4108 | paralyze() | |
4109 | else | |
4110 | hardrelease() | |
4111 | end | |
4112 | elseif mode == "throw" then | |
4113 | if acting == true and grabbed:FindFirstChildOfClass('Humanoid') and grabbed:FindFirstChildOfClass('Humanoid').Health > 0 then | |
4114 | throw() | |
4115 | else | |
4116 | hardrelease() | |
4117 | end | |
4118 | elseif mode == "explode" then | |
4119 | if acting == true and grabbed:FindFirstChildOfClass('Humanoid') and grabbed:FindFirstChildOfClass('Humanoid').Health > 0 then | |
4120 | throw() | |
4121 | else | |
4122 | hardrelease() | |
4123 | end | |
4124 | end | |
4125 | end | |
4126 | end | |
4127 | end) | |
4128 | ||
4129 | knife.Touched:connect(function(hitz) | |
4130 | if hitz.Parent and hitz.Parent:FindFirstChildOfClass("Humanoid") and hitz.Parent:FindFirstChild('Torso') and acting == true then | |
4131 | if mode == "stab" and stabbing == true and hit == false then | |
4132 | hit = true | |
4133 | tone = math.random(1, 3) | |
4134 | audio:Stop() | |
4135 | if tone == 1 then audio.SoundId = "rbxassetid://220833967" end | |
4136 | if tone == 2 then audio.SoundId = "rbxassetid://220833976" end | |
4137 | if tone == 3 then audio.SoundId = "rbxassetid://220834000" end | |
4138 | audio.PlaybackSpeed = 1 | |
4139 | audio:Play() | |
4140 | killz(hitz.Parent,'Left Leg') | |
4141 | killz(hitz.Parent,'Left Arm') | |
4142 | killz(hitz.Parent,'Right Leg') | |
4143 | killz(hitz.Parent,'Right Arm') | |
4144 | elseif mode == "finish" and finishing == true then | |
4145 | print('PSYCHOPATH MODE REEEEEEEEEEEEEEEE') | |
4146 | tone = math.random(1, 3) | |
4147 | audio:Stop() | |
4148 | if tone == 1 then audio.SoundId = "rbxassetid://220833967" end | |
4149 | if tone == 2 then audio.SoundId = "rbxassetid://220833976" end | |
4150 | if tone == 3 then audio.SoundId = "rbxassetid://220834000" end | |
4151 | audio.PlaybackSpeed = 1 | |
4152 | audio:Play() | |
4153 | if hit == false then | |
4154 | hitz.Parent:FindFirstChildOfClass('Humanoid').Health = 0 | |
4155 | wait() | |
4156 | killz(hitz.Parent,'Head',nil,false,true) | |
4157 | end | |
4158 | hit = true | |
4159 | elseif grabbed == nil and grabbing == true and hit == false then | |
4160 | if hitz.Parent:FindFirstChildOfClass("Humanoid").Health > 0 and hitz.Parent:FindFirstChild('Torso') and hitz.Parent.Torso:FindFirstChild('Neck') then | |
4161 | grabbed = hitz.Parent | |
4162 | local weldz = Instance.new('Weld',point) | |
4163 | weldz.Name = "Holder" | |
4164 | weldz.Part0 = point | |
4165 | weldz.Part1 = hitz.Parent.Torso | |
4166 | weldz.C0 = CFrame.new(0,0,-1.2) | |
4167 | end | |
4168 | end | |
4169 | end | |
4170 | end) | |
4171 | ||
4172 | player.CharacterAdded:connect(function() | |
4173 | usable = false | |
4174 | for i,v in pairs(playergui:GetChildren()) do | |
4175 | if v.Name == "REEEEEEEE" or v.Name == 'PSYCHOPAAAATH' then | |
4176 | v:Destroy() | |
4177 | end | |
4178 | end | |
4179 | end) | |
4180 | while usable do | |
4181 | local coru = coroutine.wrap(function() | |
4182 | if grabbed ~= nil then | |
4183 | if grabbed:FindFirstChildOfClass('Humanoid') and grabbed:FindFirstChildOfClass('Humanoid').Health > 0 then | |
4184 | for i,v in pairs(grabbed:GetChildren()) do | |
4185 | if v:IsA('Tool') then | |
4186 | local model = Instance.new('Model',workspace) | |
4187 | v.Parent = model | |
4188 | model:TranslateBy(Vector3.new(3,0,0)) | |
4189 | end | |
4190 | end | |
4191 | grabbed:FindFirstChildOfClass('Humanoid').Name = "Hoomanoid" | |
4192 | grabbed:FindFirstChildOfClass('Humanoid').JumpPower = 0 | |
4193 | grabbed:FindFirstChildOfClass('Humanoid').WalkSpeed = 0 | |
4194 | grabbed:FindFirstChildOfClass('Humanoid').PlatformStand = true | |
4195 | grabweld = grabbed.Torso:FindFirstChild("TargetWeld") | |
4196 | if grabweld ~= nil then return end | |
4197 | grabbed:FindFirstChildOfClass('Humanoid').PlatformStand = true | |
4198 | if grabbed.Torso:FindFirstChild('Left Shoulder') then | |
4199 | leftshoulder = grabbed.Torso["Left Shoulder"]:Clone() | |
4200 | end | |
4201 | if grabbed.Torso:FindFirstChild('Right Shoulder') then | |
4202 | rightshoulder = grabbed.Torso["Right Shoulder"]:Clone() | |
4203 | end | |
4204 | headweld = grabbed.Torso["Neck"]:Clone() | |
4205 | local targetweld = Instance.new('Weld',grabbed.Torso) | |
4206 | targetweld.Part0 = grabbed.Torso | |
4207 | targetweld.Part1 = grabbed.Head | |
4208 | targetweld.Name = "TargetWeld" | |
4209 | targetweld.C0 = CFrame.new(0,1.5,0) * CFrame.Angles(0, 0, 0) | |
4210 | if grabbed:FindFirstChild('Left Arm') then | |
4211 | local targetweld2 = Instance.new('Weld',grabbed["Left Arm"]) | |
4212 | targetweld2.Part0 = grabbed.Torso | |
4213 | targetweld2.Part1 = grabbed["Left Arm"] | |
4214 | targetweld2.C0 = CFrame.new(-1.5,0,0) * CFrame.Angles(0, 0, 0) | |
4215 | end | |
4216 | ||
4217 | for i = 0,1,0.1 do | |
4218 | if me:FindFirstChild("Left Arm") == nil or me:FindFirstChild("Torso") == nil or targetweld == nil then return end | |
4219 | targetweld.C0 = targetweld.C0:lerp(CFrame.new(0, 1.5, 0)*CFrame.Angles(0.25, 0, 0), i) | |
4220 | if targetweld2 then | |
4221 | targetweld2.C0 = targetweld2.C0:lerp(CFrame.new(-1.5, 0.5, 0)*CFrame.Angles(0, 0, -0.55), i) | |
4222 | end | |
4223 | wait(0.001) | |
4224 | end | |
4225 | end | |
4226 | end | |
4227 | end) | |
4228 | coru() | |
4229 | wait() | |
4230 | end | |
4231 | ||
4232 | end | |
4233 | local coru=coroutine.wrap(function() | |
4234 | nub() | |
4235 | end) | |
4236 | coru() | |
4237 | ||
4238 | player.CharacterAppearanceLoaded:connect(function() | |
4239 | local coru =coroutine.wrap(function() | |
4240 | nub() | |
4241 | end) | |
4242 | coru() | |
4243 | end) | |
4244 | ||
4245 | while true do | |
4246 | local coru=coroutine.wrap(function() | |
4247 | for i,v in pairs(rekt) do | |
4248 | if v and v:FindFirstChildOfClass('Humanoid') then | |
4249 | for a,c in pairs(v:GetChildren()) do | |
4250 | if c:IsA('Tool') then | |
4251 | local model = Instance.new('Model',workspace) | |
4252 | c.Parent = model | |
4253 | model:TranslateBy(Vector3.new(3,0,0)) | |
4254 | end | |
4255 | end | |
4256 | v:FindFirstChildOfClass('Humanoid').Jump = false | |
4257 | v:FindFirstChildOfClass('Humanoid').Sit = false | |
4258 | v:FindFirstChildOfClass('Humanoid').JumpPower = 0 | |
4259 | v:FindFirstChildOfClass('Humanoid').PlatformStand = true | |
4260 | v:FindFirstChildOfClass('Humanoid').Name = "No escape." | |
4261 | local thing = getplr(v) | |
4262 | if thing then | |
4263 | thing.CameraMinZoomDistance = 3 | |
4264 | end | |
4265 | else | |
4266 | local thing = getplr(v) | |
4267 | if thing then | |
4268 | thing.CameraMinZoomDistance = 0.5 | |
4269 | end | |
4270 | table.remove(rekt,i) | |
4271 | end | |
4272 | end | |
4273 | end) | |
4274 | coru() | |
4275 | local coru2 = coroutine.wrap(function() | |
4276 | if curpart then | |
4277 | curpoint = curpart.CFrame.p | |
4278 | end | |
4279 | if lastgui then | |
4280 | lastgui:Destroy() | |
4281 | lastgui = nil | |
4282 | end | |
4283 | if curpoint then | |
4284 | lastgui = Instance.new('BillboardGui',player.PlayerGui) | |
4285 | lastgui.AlwaysOnTop = true | |
4286 | lastgui.MaxDistance = 0 | |
4287 | lastgui.Size = UDim2.new(5,0,5,0) | |
4288 | if curpart == nil then | |
4289 | lastgui.Adornee = workspace | |
4290 | lastgui.StudsOffsetWorldSpace = curpoint | |
4291 | else | |
4292 | lastgui.Adornee = curpart | |
4293 | end | |
4294 | local cross = Instance.new('ImageLabel',lastgui) | |
4295 | cross.BackgroundTransparency = 1 | |
4296 | cross.Size = UDim2.new(1,0,1,0) | |
4297 | cross.Image = 'rbxassetid://316279304' | |
4298 | for i,v in pairs(zombies) do | |
4299 | if v:FindFirstChildOfClass('Humanoid') then | |
4300 | v:FindFirstChildOfClass('Humanoid').WalkToPoint = curpoint | |
4301 | end | |
4302 | end | |
4303 | else | |
4304 | for i,v in pairs(zombies) do | |
4305 | if v:FindFirstChildOfClass('Humanoid') and v:FindFirstChild('Head') then | |
4306 | v:FindFirstChildOfClass('Humanoid').WalkToPoint = v.Head.Position | |
4307 | end | |
4308 | end | |
4309 | end | |
4310 | end) | |
4311 | coru2() | |
4312 | wait() | |
4313 | end |