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