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