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