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