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