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