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