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