SHOW:
|
|
- or go back to the newest paste.
| 1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 2 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
| 3 | do | |
| 4 | print("FE Compatibility code by Mokiros")
| |
| 5 | script.Parent = Player.Character | |
| 6 | ||
| 7 | --RemoteEvent for communicating | |
| 8 | local Event = Instance.new("RemoteEvent")
| |
| 9 | Event.Name = "UserInput_Event" | |
| 10 | ||
| 11 | --Fake event to make stuff like Mouse.KeyDown work | |
| 12 | - | local mouse = player:GetMouse() |
| 12 | + | local function fakeEvent() |
| 13 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
| |
| 14 | t.connect = t.Connect | |
| 15 | return t | |
| 16 | end | |
| 17 | ||
| 18 | --Creating fake input objects with fake variables | |
| 19 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
| |
| 20 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 21 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 22 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 23 | end} | |
| 24 | --Merged 2 functions into one by checking amount of arguments | |
| 25 | CAS.UnbindAction = CAS.BindAction | |
| 26 | ||
| 27 | --This function will trigger the events that have been :Connect()'ed | |
| 28 | local function te(self,ev,...) | |
| 29 | local t = m[ev] | |
| 30 | if t and t._fakeEvent and t.Function then | |
| 31 | t.Function(...) | |
| 32 | end | |
| 33 | end | |
| 34 | m.TrigEvent = te | |
| 35 | UIS.TrigEvent = te | |
| 36 | ||
| 37 | Event.OnServerEvent:Connect(function(plr,io) | |
| 38 | if plr~=Player then return end | |
| 39 | if io.isMouse then | |
| 40 | m.Target = io.Target | |
| 41 | m.Hit = io.Hit | |
| 42 | else | |
| 43 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 44 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 45 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
| 46 | end | |
| 47 | for _,t in pairs(CAS.Actions) do | |
| 48 | for _,k in pairs(t.Keys) do | |
| 49 | if k==io.KeyCode then | |
| 50 | t.Function(t.Name,io.UserInputState,io) | |
| 51 | end | |
| 52 | end | |
| 53 | end | |
| 54 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 55 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 56 | end | |
| 57 | end) | |
| 58 | Event.Parent = NLS([==[ | |
| 59 | local Player = game:GetService("Players").LocalPlayer
| |
| 60 | local Event = script:WaitForChild("UserInput_Event")
| |
| 61 | ||
| 62 | local UIS = game:GetService("UserInputService")
| |
| 63 | local input = function(io,a) | |
| 64 | if a then return end | |
| 65 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 66 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
| |
| 67 | end | |
| 68 | UIS.InputBegan:Connect(input) | |
| 69 | UIS.InputEnded:Connect(input) | |
| 70 | ||
| 71 | local h,t | |
| 72 | --Give the server mouse data 30 times every second, but only if the values changed | |
| 73 | --If player is not moving their mouse, client won't fire events | |
| 74 | while wait(1/30) do | |
| 75 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 76 | h,t=Mouse.Hit,Mouse.Target | |
| 77 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 78 | end | |
| 79 | end]==],Player.Character) | |
| 80 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
| 81 | end | |
| 82 | ||
| 83 | wait(0.5) | |
| 84 | math.randomseed(tick()) | |
| 85 | local player = game.Players.LocalPlayer | |
| 86 | local rekt = {}
| |
| 87 | local paralyzed = false | |
| 88 | local curpoint = nil | |
| 89 | local curpart = nil | |
| 90 | local finishnum = 1 | |
| 91 | local zombiemode = false | |
| 92 | local zombies = {}
| |
| 93 | local lastgui = nil | |
| 94 | local mouse = Mouse | |
| 95 | ||
| 96 | function getplr(char) | |
| 97 | local plr = nil | |
| 98 | for i,v in pairs(game.Players:GetChildren()) do | |
| 99 | if v.Character == char then | |
| 100 | plr = v | |
| 101 | end | |
| 102 | end | |
| 103 | return plr | |
| 104 | end | |
| 105 | ||
| 106 | function bleed(frick) | |
| 107 | while frick.Parent ~= nil do | |
| 108 | local reeee = coroutine.wrap(function() | |
| 109 | local thing = Instance.new('Part',game.Workspace)
| |
| 110 | thing.Size = Vector3.new(0.2,0.2,0.2) | |
| 111 | thing.CFrame = frick.CFrame | |
| 112 | thing.Shape = Enum.PartType.Ball | |
| 113 | thing.CFrame = frick.CFrame | |
| 114 | thing.Transparency = 1 | |
| 115 | thing.BrickColor = BrickColor.new('Maroon')
| |
| 116 | thing.Material = Enum.Material.SmoothPlastic | |
| 117 | thing.Name = "Blood" | |
| 118 | thing.CanCollide =false | |
| 119 | local rawrxd = Instance.new('BodyForce',thing)
| |
| 120 | rawrxd.Force = frick.CFrame.upVector*(math.random()*2)+Vector3.new(math.random(-5, 5)/10,1.5,0) | |
| 121 | local coru = coroutine.wrap(function() | |
| 122 | wait(0.01) | |
| 123 | rawrxd:Destroy() | |
| 124 | end) | |
| 125 | coru() | |
| 126 | local ree = Instance.new('ParticleEmitter',thing)
| |
| 127 | ree.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.fromRGB(50,0,0)),ColorSequenceKeypoint.new(1,Color3.fromRGB(50,0,0))})
| |
| 128 | ree.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.1),NumberSequenceKeypoint.new(1,0.1)})
| |
| 129 | ree.Texture = 'rbxassetid://867743272' | |
| 130 | ree.Lifetime = NumberRange.new(0.4) | |
| 131 | ree.Rate = 70 | |
| 132 | ree.LockedToPart = true | |
| 133 | ree.Speed = NumberRange.new(0, 3) | |
| 134 | ||
| 135 | thing.Touched:connect(function(tou) | |
| 136 | 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
| |
| 137 | local pos = Vector3.new(thing.Position.X,(tou.Position.Y+(tou.Size.Y/2))+0.02,thing.Position.Z) | |
| 138 | thing:Destroy() | |
| 139 | if tou.Name == "BloodPuddle" then | |
| 140 | local reee = tou.CFrame | |
| 141 | if tou.Transparency > -0.2 then | |
| 142 | tou.Transparency = tou.Transparency -0.1 | |
| 143 | end | |
| 144 | if tou.Size.X < 10 then | |
| 145 | tou.Size = tou.Size+Vector3.new(0.1,0,0.1) | |
| 146 | tou.CFrame = reee | |
| 147 | end | |
| 148 | else | |
| 149 | local bloodlol = Instance.new('Part',workspace)
| |
| 150 | bloodlol.Size=Vector3.new(1,0.2,1) | |
| 151 | bloodlol.Name = "BloodPuddle" | |
| 152 | bloodlol.Anchored = true | |
| 153 | bloodlol.CanCollide = false | |
| 154 | bloodlol.Material = Enum.Material.Granite | |
| 155 | bloodlol.BrickColor = BrickColor.new('Crimson')
| |
| 156 | local cyl = Instance.new('CylinderMesh',bloodlol)
| |
| 157 | cyl.Scale = Vector3.new(1,0.1,1) | |
| 158 | bloodlol.CFrame = CFrame.new(pos) | |
| 159 | local coru=coroutine.wrap(function() | |
| 160 | while bloodlol.Parent ~= nil do | |
| 161 | if bloodlol.Transparency < 1 then | |
| 162 | bloodlol.Transparency = bloodlol.Transparency+0.01 | |
| 163 | else | |
| 164 | bloodlol:Destroy() | |
| 165 | end | |
| 166 | wait(0.1) | |
| 167 | end | |
| 168 | end) | |
| 169 | coru() | |
| 170 | end | |
| 171 | end | |
| 172 | end) | |
| 173 | local coru = coroutine.wrap(function() | |
| 174 | wait(1) | |
| 175 | thing:Destroy() | |
| 176 | end) | |
| 177 | coru() | |
| 178 | end) | |
| 179 | reeee() | |
| 180 | wait() | |
| 181 | end | |
| 182 | end | |
| 183 | ||
| 184 | function killz(playa,hitz,kneef,explode,pool,head,charred,override) | |
| 185 | local soundy = false | |
| 186 | local heyy = hitz | |
| 187 | if hitz == "Right Arm" then | |
| 188 | local Limb = playa:FindFirstChild("Right Arm")
| |
| 189 | local ters = playa:FindFirstChild('Torso')
| |
| 190 | if Limb and ters then | |
| 191 | if ters:FindFirstChild('Right Shoulder') then ters["Right Shoulder"]:Destroy() end
| |
| 192 | for i,v in pairs(Limb:GetChildren()) do | |
| 193 | if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Rotate') then
| |
| 194 | v:Destroy() | |
| 195 | end | |
| 196 | end | |
| 197 | Limb.CFrame = ters.CFrame * CFrame.new(1.5, 0, 0) | |
| 198 | local Joint = Instance.new("Rotate")
| |
| 199 | Joint.Name = "RightShoulder" | |
| 200 | Joint.Part0 = ters | |
| 201 | Joint.Part1 = Limb | |
| 202 | Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 203 | Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 204 | Joint.Parent = ters | |
| 205 | if charred and zombiemode == false then | |
| 206 | Limb.BrickColor = BrickColor.new('Black')
| |
| 207 | local fire = Instance.new('Fire',Limb)
| |
| 208 | fire.Heat = 5 | |
| 209 | fire.Size = 5 | |
| 210 | game:GetService('Debris'):AddItem(fire,2)
| |
| 211 | local coru=coroutine.wrap(function() | |
| 212 | wait(2) | |
| 213 | for i,v in pairs(Limb:GetChildren()) do | |
| 214 | if v:IsA('ParticleEmitter') then
| |
| 215 | v:Destroy() | |
| 216 | end | |
| 217 | end | |
| 218 | end) | |
| 219 | coru() | |
| 220 | end | |
| 221 | local B = Instance.new("Part")
| |
| 222 | B.TopSurface = 0 | |
| 223 | B.BottomSurface = 0 | |
| 224 | B.formFactor = "Symmetric" | |
| 225 | B.Size = Vector3.new(1, 1, 1) | |
| 226 | B.Transparency = 1 | |
| 227 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
| 228 | B.Parent = playa | |
| 229 | local W = Instance.new("Weld")
| |
| 230 | W.Part0 = Limb | |
| 231 | W.Part1 = B | |
| 232 | W.C0 = CFrame.new(0, -0.5, 0) | |
| 233 | W.Parent = Limb | |
| 234 | if kneef then | |
| 235 | local coru = coroutine.wrap(function() | |
| 236 | local uno = Instance.new('Part',workspace)
| |
| 237 | local dos = Instance.new('Part',workspace)
| |
| 238 | uno.CFrame = playa:FindFirstChild(hitz).CFrame | |
| 239 | dos.CFrame = kneef["big ass knife"].CFrame | |
| 240 | local weld = Instance.new('Weld',kneef["big ass knife"])
| |
| 241 | weld.Part0 = playa:FindFirstChild(hitz) | |
| 242 | weld.Part1 = kneef["big ass knife"] | |
| 243 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
| 244 | uno:Destroy() | |
| 245 | dos:Destroy() | |
| 246 | playa:FindFirstChild(hitz).Anchored = false | |
| 247 | for i, v in pairs(kneef:GetChildren()) do | |
| 248 | if v:IsA('BasePart') then
| |
| 249 | v.Anchored = false | |
| 250 | end | |
| 251 | end | |
| 252 | if zombiemode == false or override then | |
| 253 | wait() | |
| 254 | end | |
| 255 | if kneef:FindFirstChild('Grab') and kneef.Grab:FindFirstChildOfClass('BodyVelocity') then
| |
| 256 | kneef.Grab:FindFirstChildOfClass('BodyVelocity'):Destroy()
| |
| 257 | end | |
| 258 | local bleedpart = Instance.new("Part", kneef)
| |
| 259 | bleedpart.CanCollide = false | |
| 260 | bleedpart.Size = Vector3.new(0.2, 0.2, 0.2) | |
| 261 | bleedpart.CFrame = kneef["big ass knife"].CFrame | |
| 262 | bleedpart.Color = Color3.new(115/225, 115/225, 115/225) | |
| 263 | bleedpart.Transparency = 1 | |
| 264 | ||
| 265 | local bleedpartweld = Instance.new("Weld", kneef["big ass knife"])
| |
| 266 | bleedpartweld.Part0 = kneef["big ass knife"] | |
| 267 | bleedpartweld.Part1 = bleedpart | |
| 268 | bleedpartweld.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(90),0,0) | |
| 269 | local coru = coroutine.wrap(function() | |
| 270 | bleed(bleedpart) | |
| 271 | end) | |
| 272 | coru() | |
| 273 | game:GetService('Debris'):AddItem(bleedpart,2)
| |
| 274 | end) | |
| 275 | coru() | |
| 276 | end | |
| 277 | end | |
| 278 | elseif hitz == "Left Arm" then | |
| 279 | local Limb = playa:FindFirstChild("Left Arm")
| |
| 280 | local ters = playa:FindFirstChild('Torso')
| |
| 281 | if Limb and ters then | |
| 282 | if ters:FindFirstChild('Left Shoulder') then ters["Left Shoulder"]:Destroy() end
| |
| 283 | for i,v in pairs(Limb:GetChildren()) do | |
| 284 | if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Rotate') then
| |
| 285 | v:Destroy() | |
| 286 | end | |
| 287 | end | |
| 288 | Limb.CFrame = ters.CFrame * CFrame.new(-1.5, 0, 0) | |
| 289 | local Joint = Instance.new("Rotate")
| |
| 290 | Joint.Name = "LeftShoulder" | |
| 291 | Joint.Part0 = ters | |
| 292 | Joint.Part1 = Limb | |
| 293 | Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 294 | Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 295 | Joint.Parent = ters | |
| 296 | if charred and zombiemode == false then | |
| 297 | Limb.BrickColor = BrickColor.new('Black')
| |
| 298 | local fire = Instance.new('Fire',Limb)
| |
| 299 | fire.Heat = 5 | |
| 300 | fire.Size = 5 | |
| 301 | game:GetService('Debris'):AddItem(fire,2)
| |
| 302 | local coru=coroutine.wrap(function() | |
| 303 | wait(2) | |
| 304 | for i,v in pairs(Limb:GetChildren()) do | |
| 305 | if v:IsA('ParticleEmitter') then
| |
| 306 | v:Destroy() | |
| 307 | end | |
| 308 | end | |
| 309 | end) | |
| 310 | coru() | |
| 311 | end | |
| 312 | ||
| 313 | local B = Instance.new("Part")
| |
| 314 | B.TopSurface = 0 | |
| 315 | B.BottomSurface = 0 | |
| 316 | B.formFactor = "Symmetric" | |
| 317 | B.Size = Vector3.new(1, 1, 1) | |
| 318 | B.CanCollide = true | |
| 319 | B.Transparency = 1 | |
| 320 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
| 321 | B.Parent = playa | |
| 322 | local W = Instance.new("Weld")
| |
| 323 | W.Part0 = ters | |
| 324 | W.Part1 = B | |
| 325 | W.C0 = CFrame.new(0, -0.5, 0) | |
| 326 | W.Parent = Limb | |
| 327 | if kneef then | |
| 328 | local coru = coroutine.wrap(function() | |
| 329 | local uno = Instance.new('Part',workspace)
| |
| 330 | local dos = Instance.new('Part',workspace)
| |
| 331 | uno.CFrame = playa:FindFirstChild(hitz).CFrame | |
| 332 | dos.CFrame = kneef["big ass knife"].CFrame | |
| 333 | local weld = Instance.new('Weld',kneef["big ass knife"])
| |
| 334 | weld.Part0 = playa:FindFirstChild(hitz) | |
| 335 | weld.Part1 = kneef["big ass knife"] | |
| 336 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
| 337 | uno:Destroy() | |
| 338 | dos:Destroy() | |
| 339 | playa:FindFirstChild(hitz).Anchored = false | |
| 340 | for i, v in pairs(kneef:GetChildren()) do | |
| 341 | if v:IsA('BasePart') then
| |
| 342 | v.Anchored = false | |
| 343 | end | |
| 344 | end | |
| 345 | if zombiemode == false or override then | |
| 346 | wait() | |
| 347 | end | |
| 348 | if kneef:FindFirstChild('Grab') and kneef.Grab:FindFirstChildOfClass('BodyVelocity') then
| |
| 349 | kneef.Grab:FindFirstChildOfClass('BodyVelocity'):Destroy()
| |
| 350 | end | |
| 351 | local bleedpart = Instance.new("Part", kneef)
| |
| 352 | bleedpart.CanCollide = false | |
| 353 | bleedpart.Size = Vector3.new(0.2, 0.2, 0.2) | |
| 354 | bleedpart.CFrame = kneef["big ass knife"].CFrame | |
| 355 | bleedpart.Color = Color3.new(115/225, 115/225, 115/225) | |
| 356 | bleedpart.Transparency = 1 | |
| 357 | ||
| 358 | local bleedpartweld = Instance.new("Weld", kneef["big ass knife"])
| |
| 359 | bleedpartweld.Part0 = kneef["big ass knife"] | |
| 360 | bleedpartweld.Part1 = bleedpart | |
| 361 | bleedpartweld.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(90),0,0) | |
| 362 | local coru = coroutine.wrap(function() | |
| 363 | bleed(bleedpart) | |
| 364 | end) | |
| 365 | coru() | |
| 366 | game:GetService('Debris'):AddItem(bleedpart,2)
| |
| 367 | end) | |
| 368 | coru() | |
| 369 | end | |
| 370 | end | |
| 371 | elseif hitz == "Right Leg" then | |
| 372 | local Limb = playa:FindFirstChild("Right Leg")
| |
| 373 | local ters = playa:FindFirstChild('Torso')
| |
| 374 | if Limb and ters then | |
| 375 | if ters:FindFirstChild('Right Hip') then ters["Right Hip"]:Destroy() end
| |
| 376 | for i,v in pairs(Limb:GetChildren()) do | |
| 377 | if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Rotate') then
| |
| 378 | v:Destroy() | |
| 379 | end | |
| 380 | end | |
| 381 | Limb.CFrame = ters.CFrame * CFrame.new(0.5, -2, 0) | |
| 382 | local Joint = Instance.new("Rotate")
| |
| 383 | Joint.Name = "Right Hip" | |
| 384 | Joint.Part0 = ters | |
| 385 | Joint.Part1 = Limb | |
| 386 | Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 387 | Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 388 | Joint.Parent = ters | |
| 389 | if charred and zombiemode == false then | |
| 390 | Limb.BrickColor = BrickColor.new('Black')
| |
| 391 | local fire = Instance.new('Fire',Limb)
| |
| 392 | fire.Heat = 5 | |
| 393 | fire.Size = 5 | |
| 394 | game:GetService('Debris'):AddItem(fire,2)
| |
| 395 | local coru=coroutine.wrap(function() | |
| 396 | wait(2) | |
| 397 | for i,v in pairs(Limb:GetChildren()) do | |
| 398 | if v:IsA('ParticleEmitter') then
| |
| 399 | v:Destroy() | |
| 400 | end | |
| 401 | end | |
| 402 | end) | |
| 403 | coru() | |
| 404 | end | |
| 405 | local B = Instance.new("Part")
| |
| 406 | B.TopSurface = 0 | |
| 407 | B.BottomSurface = 0 | |
| 408 | B.formFactor = "Symmetric" | |
| 409 | B.Size = Vector3.new(1, 1, 1) | |
| 410 | B.Transparency = 1 | |
| 411 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
| 412 | B.Parent = playa | |
| 413 | local W = Instance.new("Weld")
| |
| 414 | W.Part0 = Limb | |
| 415 | W.Part1 = B | |
| 416 | W.C0 = CFrame.new(0, -0.5, 0) | |
| 417 | W.Parent = Limb | |
| 418 | if kneef then | |
| 419 | local coru = coroutine.wrap(function() | |
| 420 | local uno = Instance.new('Part',workspace)
| |
| 421 | local dos = Instance.new('Part',workspace)
| |
| 422 | uno.CFrame = playa:FindFirstChild(hitz).CFrame | |
| 423 | dos.CFrame = kneef["big ass knife"].CFrame | |
| 424 | local weld = Instance.new('Weld',kneef["big ass knife"])
| |
| 425 | weld.Part0 = playa:FindFirstChild(hitz) | |
| 426 | weld.Part1 = kneef["big ass knife"] | |
| 427 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
| 428 | uno:Destroy() | |
| 429 | dos:Destroy() | |
| 430 | playa:FindFirstChild(hitz).Anchored = false | |
| 431 | for i, v in pairs(kneef:GetChildren()) do | |
| 432 | if v:IsA('BasePart') then
| |
| 433 | v.Anchored = false | |
| 434 | end | |
| 435 | end | |
| 436 | if zombiemode == false or override then | |
| 437 | wait() | |
| 438 | end | |
| 439 | if kneef:FindFirstChild('Grab') and kneef.Grab:FindFirstChildOfClass('BodyVelocity') then
| |
| 440 | kneef.Grab:FindFirstChildOfClass('BodyVelocity'):Destroy()
| |
| 441 | end | |
| 442 | local bleedpart = Instance.new("Part", kneef)
| |
| 443 | bleedpart.CanCollide = false | |
| 444 | bleedpart.Size = Vector3.new(0.2, 0.2, 0.2) | |
| 445 | bleedpart.CFrame = kneef["big ass knife"].CFrame | |
| 446 | bleedpart.Color = Color3.new(115/225, 115/225, 115/225) | |
| 447 | bleedpart.Transparency = 1 | |
| 448 | ||
| 449 | local bleedpartweld = Instance.new("Weld", kneef["big ass knife"])
| |
| 450 | bleedpartweld.Part0 = kneef["big ass knife"] | |
| 451 | bleedpartweld.Part1 = bleedpart | |
| 452 | bleedpartweld.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(90),0,0) | |
| 453 | local coru = coroutine.wrap(function() | |
| 454 | bleed(bleedpart) | |
| 455 | end) | |
| 456 | coru() | |
| 457 | game:GetService('Debris'):AddItem(bleedpart,2)
| |
| 458 | end) | |
| 459 | coru() | |
| 460 | end | |
| 461 | if playa then | |
| 462 | table.insert(rekt,playa) | |
| 463 | end | |
| 464 | end | |
| 465 | elseif hitz == "Left Leg" then | |
| 466 | local Limb = playa:FindFirstChild("Left Leg")
| |
| 467 | local ters = playa:FindFirstChild('Torso')
| |
| 468 | if Limb and ters then | |
| 469 | if ters:FindFirstChild('Left Hip') then ters["Left Hip"]:Destroy() end
| |
| 470 | for i,v in pairs(Limb:GetChildren()) do | |
| 471 | if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Rotate') then
| |
| 472 | v:Destroy() | |
| 473 | end | |
| 474 | end | |
| 475 | Limb.CFrame = ters.CFrame * CFrame.new(0.5, -2, 0) | |
| 476 | Limb.CFrame = ters.CFrame * CFrame.new(-0.5, -2, 0) | |
| 477 | local Joint = Instance.new("Rotate")
| |
| 478 | Joint.Name = "LeftHip" | |
| 479 | Joint.Part0 = ters | |
| 480 | Joint.Part1 = Limb | |
| 481 | Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 482 | Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 483 | Joint.Parent = ters | |
| 484 | if charred and zombiemode == false then | |
| 485 | Limb.BrickColor = BrickColor.new('Black')
| |
| 486 | local fire = Instance.new('Fire',Limb)
| |
| 487 | fire.Heat = 5 | |
| 488 | fire.Size = 5 | |
| 489 | game:GetService('Debris'):AddItem(fire,2)
| |
| 490 | local coru=coroutine.wrap(function() | |
| 491 | wait(2) | |
| 492 | for i,v in pairs(Limb:GetChildren()) do | |
| 493 | if v:IsA('ParticleEmitter') then
| |
| 494 | v:Destroy() | |
| 495 | end | |
| 496 | end | |
| 497 | end) | |
| 498 | coru() | |
| 499 | end | |
| 500 | ||
| 501 | local B = Instance.new("Part")
| |
| 502 | B.TopSurface = 0 | |
| 503 | B.BottomSurface = 0 | |
| 504 | B.formFactor = "Symmetric" | |
| 505 | B.Size = Vector3.new(1, 1, 1) | |
| 506 | B.Transparency = 1 | |
| 507 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
| 508 | B.Parent = playa | |
| 509 | local W = Instance.new("Weld")
| |
| 510 | W.Part0 = Limb | |
| 511 | W.Part1 = B | |
| 512 | W.C0 = CFrame.new(0, -0.5, 0) | |
| 513 | W.Parent = Limb | |
| 514 | Limb.CanCollide = false | |
| 515 | if kneef then | |
| 516 | local coru = coroutine.wrap(function() | |
| 517 | local uno = Instance.new('Part',workspace)
| |
| 518 | local dos = Instance.new('Part',workspace)
| |
| 519 | uno.CFrame = playa:FindFirstChild(hitz).CFrame | |
| 520 | dos.CFrame = kneef["big ass knife"].CFrame | |
| 521 | local weld = Instance.new('Weld',kneef["big ass knife"])
| |
| 522 | weld.Part0 = playa:FindFirstChild(hitz) | |
| 523 | weld.Part1 = kneef["big ass knife"] | |
| 524 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
| 525 | uno:Destroy() | |
| 526 | dos:Destroy() | |
| 527 | playa:FindFirstChild(hitz).Anchored = false | |
| 528 | for i, v in pairs(kneef:GetChildren()) do | |
| 529 | if v:IsA('BasePart') then
| |
| 530 | v.Anchored = false | |
| 531 | end | |
| 532 | end | |
| 533 | if zombiemode == false or override then | |
| 534 | wait() | |
| 535 | end | |
| 536 | if kneef:FindFirstChild('Grab') and kneef.Grab:FindFirstChildOfClass('BodyVelocity') then
| |
| 537 | kneef.Grab:FindFirstChildOfClass('BodyVelocity'):Destroy()
| |
| 538 | end | |
| 539 | local bleedpart = Instance.new("Part", kneef)
| |
| 540 | bleedpart.CanCollide = false | |
| 541 | bleedpart.Size = Vector3.new(0.2, 0.2, 0.2) | |
| 542 | bleedpart.CFrame = kneef["big ass knife"].CFrame | |
| 543 | bleedpart.Color = Color3.new(115/225, 115/225, 115/225) | |
| 544 | bleedpart.Transparency = 1 | |
| 545 | ||
| 546 | local bleedpartweld = Instance.new("Weld", kneef["big ass knife"])
| |
| 547 | bleedpartweld.Part0 = kneef["big ass knife"] | |
| 548 | bleedpartweld.Part1 = bleedpart | |
| 549 | bleedpartweld.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(90),0,0) | |
| 550 | local coru = coroutine.wrap(function() | |
| 551 | bleed(bleedpart) | |
| 552 | end) | |
| 553 | coru() | |
| 554 | game:GetService('Debris'):AddItem(bleedpart,2)
| |
| 555 | end) | |
| 556 | coru() | |
| 557 | end | |
| 558 | if playa then | |
| 559 | table.insert(rekt,playa) | |
| 560 | end | |
| 561 | end | |
| 562 | elseif playa then | |
| 563 | if finishnum ~= 1 then | |
| 564 | local coru=coroutine.wrap(function() | |
| 565 | player.Character.Head.Psycho.Playing = true | |
| 566 | wait(3) | |
| 567 | player.Character.Head.Psycho.Playing = false | |
| 568 | end) | |
| 569 | coru() | |
| 570 | end | |
| 571 | local playa2 = playa | |
| 572 | playa.Archivable = true | |
| 573 | local playa = playa:Clone() | |
| 574 | playa.Archivable = false | |
| 575 | playa2:Destroy() | |
| 576 | playa.Parent = workspace | |
| 577 | local Gibs = game.Workspace | |
| 578 | local Torso = playa.Torso | |
| 579 | local Head = playa:FindFirstChild("Head")
| |
| 580 | local function Scan(ch) | |
| 581 | local e | |
| 582 | for e = 1,#ch do | |
| 583 | Scan(ch[e]:GetChildren()) | |
| 584 | 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
| |
| 585 | ch[e]:remove() | |
| 586 | end | |
| 587 | end | |
| 588 | end | |
| 589 | Scan(playa:GetChildren()) | |
| 590 | if playa:FindFirstChild('HumanoidRootPart') and (zombiemode == false or override) then
| |
| 591 | playa:FindFirstChild('HumanoidRootPart'):Destroy()
| |
| 592 | end | |
| 593 | local hum2 = playa:FindFirstChildOfClass("Humanoid")
| |
| 594 | if zombiemode == true and override == false then | |
| 595 | soundy = true | |
| 596 | end | |
| 597 | if string.sub(hum2.Parent.Name,string.len(hum2.Parent.Name)-8,string.len(hum2.Parent.Name)) ~= "'s Zombie" then | |
| 598 | override = true | |
| 599 | end | |
| 600 | if hum2 ~= nil then | |
| 601 | hum2.Name = "Humanoid2" | |
| 602 | hum2.Health = 0 | |
| 603 | if zombiemode == false or override == true then | |
| 604 | table.insert(rekt,hum2.Parent) | |
| 605 | else | |
| 606 | local gyro = Instance.new('BodyGyro',Torso)
| |
| 607 | hum2.PlatformStand = false | |
| 608 | for i,v in pairs(hum2.Parent.Torso:GetChildren()) do | |
| 609 | if v:IsA('BodyGyro') then v:Destroy() end
| |
| 610 | end | |
| 611 | if playa:FindFirstChild('HumanoidRootPart') then
| |
| 612 | hum2.Parent.HumanoidRootPart.CFrame = hum2.Parent.Torso.CFrame | |
| 613 | local weldcrucial = Instance.new('Weld',hum2.Parent.HumanoidRootPart)
| |
| 614 | weldcrucial.Part0 = hum2.Parent.HumanoidRootPart | |
| 615 | weldcrucial.Part1 = hum2.Parent.Torso | |
| 616 | end | |
| 617 | end | |
| 618 | end | |
| 619 | local ch = playa:GetChildren() | |
| 620 | local i | |
| 621 | for i = 1,#ch do | |
| 622 | if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then | |
| 623 | ch[i]:remove() | |
| 624 | end | |
| 625 | end | |
| 626 | ||
| 627 | if Head then | |
| 628 | local Neck = Instance.new("Weld")
| |
| 629 | Neck.Name = "Neck" | |
| 630 | Neck.Part0 = Torso | |
| 631 | Neck.Part1 = Head | |
| 632 | if pool then | |
| 633 | local part = Instance.new('Part',Torso)
| |
| 634 | part.Position = Vector3.new(0,10,0) | |
| 635 | part.Size = Vector3.new(0.2,0.2,0.2) | |
| 636 | part.Transparency = 1 | |
| 637 | part.CanCollide = false | |
| 638 | local we = Instance.new('Weld',Torso)
| |
| 639 | we.Part0 = Torso | |
| 640 | we.Part1 = part | |
| 641 | we.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(90),0,0) | |
| 642 | local coru=coroutine.wrap(function() | |
| 643 | bleed(part) | |
| 644 | end) | |
| 645 | coru() | |
| 646 | end | |
| 647 | if head == false or head == nil then | |
| 648 | Neck.C0 = CFrame.new(0, 1.5, 0) | |
| 649 | else | |
| 650 | Neck.C0 = CFrame.new(0, 1.5, 0.2)*CFrame.Angles(0.5, 0.25, 0.25) | |
| 651 | local bleedpart = Instance.new("Part", Torso)
| |
| 652 | bleedpart.Size = Vector3.new(0.2, 0.2, 0.2) | |
| 653 | bleedpart.Color = Color3.new(115/225, 115/225, 115/225) | |
| 654 | bleedpart.CanCollide = false | |
| 655 | bleedpart.Position = Head.Position + Vector3.new(0, 1, 0) | |
| 656 | bleedpart.Transparency = 1 | |
| 657 | ||
| 658 | local bleedpartweld = Instance.new("Weld", Torso)
| |
| 659 | bleedpartweld.Part0 = Torso | |
| 660 | bleedpartweld.Part1 = bleedpart | |
| 661 | bleedpartweld.C0 = CFrame.Angles(-1, 0, -0.35) * CFrame.new(0, 1, 0.8) | |
| 662 | local coru = coroutine.wrap(function() | |
| 663 | bleed(bleedpart) | |
| 664 | end) | |
| 665 | coru() | |
| 666 | end | |
| 667 | Neck.C1 = CFrame.new() | |
| 668 | Neck.Parent = Torso | |
| 669 | end | |
| 670 | local Limb = playa:FindFirstChild("Right Arm")
| |
| 671 | if Limb then | |
| 672 | ||
| 673 | Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0) | |
| 674 | local Joint = Instance.new("Rotate")
| |
| 675 | Joint.Name = "RightShoulder" | |
| 676 | Joint.Part0 = Torso | |
| 677 | Joint.Part1 = Limb | |
| 678 | Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 679 | Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 680 | Joint.Parent = Torso | |
| 681 | ||
| 682 | local B = Instance.new("Part")
| |
| 683 | B.TopSurface = 0 | |
| 684 | B.BottomSurface = 0 | |
| 685 | B.formFactor = "Symmetric" | |
| 686 | B.Size = Vector3.new(1, 1, 1) | |
| 687 | B.Transparency = 1 | |
| 688 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
| 689 | B.Parent = playa | |
| 690 | local W = Instance.new("Weld")
| |
| 691 | W.Part0 = Limb | |
| 692 | W.Part1 = B | |
| 693 | W.C0 = CFrame.new(0, -0.5, 0) | |
| 694 | W.Parent = Limb | |
| 695 | end | |
| 696 | local Limb = playa:FindFirstChild("Left Arm")
| |
| 697 | if Limb then | |
| 698 | ||
| 699 | Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0) | |
| 700 | local Joint = Instance.new("Rotate")
| |
| 701 | Joint.Name = "LeftShoulder" | |
| 702 | Joint.Part0 = Torso | |
| 703 | Joint.Part1 = Limb | |
| 704 | Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 705 | Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 706 | Joint.Parent = Torso | |
| 707 | ||
| 708 | local B = Instance.new("Part")
| |
| 709 | B.TopSurface = 0 | |
| 710 | B.BottomSurface = 0 | |
| 711 | B.formFactor = "Symmetric" | |
| 712 | B.Size = Vector3.new(1, 1, 1) | |
| 713 | B.Transparency = 1 | |
| 714 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
| 715 | B.Parent = playa | |
| 716 | local W = Instance.new("Weld")
| |
| 717 | W.Part0 = Limb | |
| 718 | W.Part1 = B | |
| 719 | W.C0 = CFrame.new(0, -0.5, 0) | |
| 720 | W.Parent = Limb | |
| 721 | end | |
| 722 | local Limb = playa:FindFirstChild("Right Leg")
| |
| 723 | if Limb then | |
| 724 | Limb.CanCollide = false | |
| 725 | Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0) | |
| 726 | local Joint = Instance.new("Rotate")
| |
| 727 | Joint.Name = "RightHip" | |
| 728 | Joint.Part0 = Torso | |
| 729 | Joint.Part1 = Limb | |
| 730 | Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 731 | Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 732 | Joint.Parent = Torso | |
| 733 | ||
| 734 | local B = Instance.new("Part")
| |
| 735 | B.TopSurface = 0 | |
| 736 | B.BottomSurface = 0 | |
| 737 | B.formFactor = "Symmetric" | |
| 738 | B.Size = Vector3.new(1, 1, 1) | |
| 739 | B.Transparency = 1 | |
| 740 | B.CanCollide = true | |
| 741 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
| 742 | B.Parent = playa | |
| 743 | local W = Instance.new("Weld")
| |
| 744 | W.Part0 = Limb | |
| 745 | W.Part1 = B | |
| 746 | W.C0 = CFrame.new(0, -0.5, 0) | |
| 747 | W.Parent = Limb | |
| 748 | end | |
| 749 | local Limb = playa:FindFirstChild("Left Leg")
| |
| 750 | if Limb then | |
| 751 | Limb.CanCollide = false | |
| 752 | Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0) | |
| 753 | local Joint = Instance.new("Rotate")
| |
| 754 | Joint.Name = "LeftHip" | |
| 755 | Joint.Part0 = Torso | |
| 756 | Joint.Part1 = Limb | |
| 757 | Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 758 | Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 759 | Joint.Parent = Torso | |
| 760 | ||
| 761 | local B = Instance.new("Part")
| |
| 762 | B.TopSurface = 0 | |
| 763 | B.BottomSurface = 0 | |
| 764 | if zombiemode == false or override then | |
| 765 | B.CanCollide = true | |
| 766 | end | |
| 767 | B.formFactor = "Symmetric" | |
| 768 | B.Size = Vector3.new(1, 1, 1) | |
| 769 | B.Transparency = 1 | |
| 770 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
| 771 | B.Parent = playa | |
| 772 | local W = Instance.new("Weld")
| |
| 773 | W.Part0 = Limb | |
| 774 | W.Part1 = B | |
| 775 | W.C0 = CFrame.new(0, -0.5, 0) | |
| 776 | W.Parent = Limb | |
| 777 | end | |
| 778 | --[[ | |
| 779 | local Bar = Instance.new("Part")
| |
| 780 | Bar.TopSurface = 0 | |
| 781 | Bar.BottomSurface = 0 | |
| 782 | Bar.formFactor = "Symmetric" | |
| 783 | Bar.Size = Vector3.new(1, 1, 1) | |
| 784 | Bar.Transparency = 1 | |
| 785 | Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0) | |
| 786 | Bar.Parent = playa | |
| 787 | local Weld = Instance.new("Weld")
| |
| 788 | Weld.Part0 = Torso | |
| 789 | Weld.Part1 = Bar | |
| 790 | Weld.C0 = CFrame.new(0, 0.5, 0) | |
| 791 | Weld.Parent = Torso | |
| 792 | --]] | |
| 793 | playa.Parent = Gibs | |
| 794 | if kneef and explode == nil then | |
| 795 | local coru = coroutine.wrap(function() | |
| 796 | if playa:FindFirstChild(hitz) then | |
| 797 | local uno = Instance.new('Part',workspace)
| |
| 798 | local dos = Instance.new('Part',workspace)
| |
| 799 | uno.CFrame = playa:FindFirstChild(hitz).CFrame | |
| 800 | dos.CFrame = kneef["big ass knife"].CFrame | |
| 801 | local weld = Instance.new('Weld',kneef["big ass knife"])
| |
| 802 | weld.Part0 = playa:FindFirstChild(hitz) | |
| 803 | weld.Part1 = kneef["big ass knife"] | |
| 804 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
| 805 | uno:Destroy() | |
| 806 | dos:Destroy() | |
| 807 | playa:FindFirstChild(hitz).Anchored = false | |
| 808 | for i, v in pairs(kneef:GetChildren()) do | |
| 809 | if v:IsA('BasePart') then
| |
| 810 | v.Anchored = false | |
| 811 | end | |
| 812 | end | |
| 813 | if explode == nil or explode == false then | |
| 814 | local bleedpart = Instance.new("Part", kneef)
| |
| 815 | bleedpart.Size = Vector3.new(0.2, 0.2, 0.2) | |
| 816 | bleedpart.Color = Color3.new(115/225, 115/225, 115/225) | |
| 817 | bleedpart.CanCollide = false | |
| 818 | bleedpart.Position = Head.Position + Vector3.new(0, 1, 0) | |
| 819 | bleedpart.Transparency = 1 | |
| 820 | ||
| 821 | local bleedpartweld = Instance.new("Weld", kneef["big ass knife"])
| |
| 822 | bleedpartweld.Part0 = kneef["big ass knife"] | |
| 823 | bleedpartweld.Part1 = bleedpart | |
| 824 | bleedpartweld.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(90),0,0) | |
| 825 | local coru = coroutine.wrap(function() | |
| 826 | bleed(bleedpart) | |
| 827 | end) | |
| 828 | coru() | |
| 829 | end | |
| 830 | end | |
| 831 | if zombiemode == false or override then | |
| 832 | wait() | |
| 833 | end | |
| 834 | if kneef:FindFirstChild('Grab') and kneef.Grab:FindFirstChildOfClass('BodyVelocity') then
| |
| 835 | kneef.Grab:FindFirstChildOfClass('BodyVelocity'):Destroy()
| |
| 836 | end | |
| 837 | end) | |
| 838 | coru() | |
| 839 | end | |
| 840 | if explode then | |
| 841 | local movevector = CFrame.new(explode.Position,Torso.Position).lookVector | |
| 842 | local repulse = Instance.new('BodyForce',Torso)
| |
| 843 | repulse.Force = movevector*10000 + Vector3.new(0,5000,0) | |
| 844 | game.Debris:AddItem(repulse,0.05) | |
| 845 | end | |
| 846 | if charred and zombiemode == false then | |
| 847 | for i,v in pairs(playa:GetChildren()) do | |
| 848 | if v:IsA('BasePart') then
| |
| 849 | v.BrickColor = BrickColor.Black() | |
| 850 | local fire = Instance.new('Fire',v)
| |
| 851 | fire.Size = 5 | |
| 852 | fire.Heat = 5 | |
| 853 | elseif v:IsA('Accessory') then
| |
| 854 | for a,c in pairs(v:GetChildren()) do | |
| 855 | if c:IsA('BasePart') then
| |
| 856 | c.BrickColor = BrickColor.Black() | |
| 857 | local fire = Instance.new('Fire',v)
| |
| 858 | fire.Size = 5 | |
| 859 | fire.Heat = 5 | |
| 860 | for o,p in pairs(c:GetChildren()) do | |
| 861 | if p:IsA("SpecialMesh") then
| |
| 862 | p.TextureId = "" | |
| 863 | end | |
| 864 | end | |
| 865 | end | |
| 866 | end | |
| 867 | end | |
| 868 | end | |
| 869 | end | |
| 870 | if soundy then | |
| 871 | local sound = Instance.new('Sound',Head)
| |
| 872 | sound.SoundId = 'rbxassetid://903640857' | |
| 873 | sound.Volume = 1 | |
| 874 | sound:Play() | |
| 875 | sound.Ended:connect(function() | |
| 876 | sound:Destroy() | |
| 877 | local ambient = Instance.new('Sound',Head)
| |
| 878 | ambient.Volume = 0.25 | |
| 879 | ambient.Looped = true | |
| 880 | ambient.SoundId = 'rbxassetid://903641031' | |
| 881 | ambient:Play() | |
| 882 | end) | |
| 883 | end | |
| 884 | if override then | |
| 885 | 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 | |
| 886 | local coru = coroutine.wrap(function() | |
| 887 | wait(4.5) | |
| 888 | hum2.Parent.Name = hum2.Parent.Name.."'s Zombie" | |
| 889 | hum2.HipHeight = 0.2 | |
| 890 | wait(0.5) | |
| 891 | killz(hum2.Parent,"Head",nil,nil,false,false,false,false) | |
| 892 | end) | |
| 893 | coru() | |
| 894 | else | |
| 895 | game:GetService('Debris'):AddItem(playa, 12)
| |
| 896 | end | |
| 897 | else | |
| 898 | hum2.Health = 0 | |
| 899 | table.insert(zombies,playa) | |
| 900 | local attack = Instance.new('Sound',Head)
| |
| 901 | attack.SoundId = 'rbxassetid://903641424' | |
| 902 | attack.Volume = 2 | |
| 903 | for i,v in pairs(playa:GetChildren()) do | |
| 904 | if v:IsA('BasePart') and v:FindFirstChildOfClass('TouchTransmitter') == nil then
| |
| 905 | v.Touched:connect(function(hit) | |
| 906 | if hit.Parent and hit.Parent:FindFirstChildOfClass('Humanoid') then
| |
| 907 | local found = false | |
| 908 | if hit.Parent == player.Character then | |
| 909 | found = true | |
| 910 | end | |
| 911 | for a,c in pairs(zombies) do | |
| 912 | if c == hit.Parent then | |
| 913 | found = true | |
| 914 | end | |
| 915 | end | |
| 916 | if found == false and hit.Parent:FindFirstChildOfClass('Humanoid').Health > 0 then
| |
| 917 | attack:Play() | |
| 918 | if hit.Parent:FindFirstChildOfClass('Humanoid').Health - 2 <= 0 then
| |
| 919 | hit.Parent:FindFirstChildOfClass('Humanoid').Health = 0
| |
| 920 | wait() | |
| 921 | killz(hit.Parent,"Head") | |
| 922 | else | |
| 923 | hit.Parent:FindFirstChildOfClass('Humanoid'):TakeDamage(2)
| |
| 924 | end | |
| 925 | end | |
| 926 | end | |
| 927 | end) | |
| 928 | end | |
| 929 | end | |
| 930 | local coru = coroutine.wrap(function() | |
| 931 | wait(2) | |
| 932 | for i,v in pairs(playa:GetChildren()) do | |
| 933 | if v:IsA('BasePart') then
| |
| 934 | for a,c in pairs(v:GetChildren()) do | |
| 935 | if c:IsA('Fire') or c:IsA('ParticleEmitter') then
| |
| 936 | c:Destroy() | |
| 937 | end | |
| 938 | end | |
| 939 | elseif v:IsA('Accessory') then
| |
| 940 | for a,c in pairs(v:GetChildren()) do | |
| 941 | if c:IsA('BasePart') then
| |
| 942 | for b,d in pairs(c:GetChildren()) do | |
| 943 | if d:IsA('Fire') or d:IsA('ParticleEmitter') then
| |
| 944 | d:Destroy() | |
| 945 | end | |
| 946 | end | |
| 947 | end | |
| 948 | end | |
| 949 | end | |
| 950 | end | |
| 951 | end) | |
| 952 | coru() | |
| 953 | end | |
| 954 | end | |
| 955 | end | |
| 956 | ||
| 957 | mouse.KeyDown:connect(function(key) | |
| 958 | if key == "t" and mouse.Target then | |
| 959 | local hum = mouse.Target.Parent:FindFirstChildOfClass('Humanoid')
| |
| 960 | if hum == nil then hum = mouse.Target.Parent.Parent:FindFirstChildOfClass('Humanoid') end
| |
| 961 | if curpoint == nil then | |
| 962 | if hum and hum.Parent:FindFirstChild('Head') then
| |
| 963 | curpart = hum.Parent.Head | |
| 964 | else | |
| 965 | curpart = nil | |
| 966 | curpoint = mouse.Hit.p | |
| 967 | end | |
| 968 | if player.PlayerGui:FindFirstChild('Notification') then player.PlayerGui.Notification:Destroy() end
| |
| 969 | notify("ZOMBIE TARGET SET",false)
| |
| 970 | else | |
| 971 | curpart = nil | |
| 972 | curpoint = nil | |
| 973 | if player.PlayerGui:FindFirstChild('Notification') then player.PlayerGui.Notification:Destroy() end
| |
| 974 | notify("ZOMBIE TARGET REMOVED",false)
| |
| 975 | end | |
| 976 | elseif key == "y" then | |
| 977 | for o,p in pairs(zombies) do | |
| 978 | local coru = coroutine.wrap(function() | |
| 979 | if p:FindFirstChild('Torso') then
| |
| 980 | killz(p,"Head",nil,nil,false,false,false,true) | |
| 981 | else | |
| 982 | table.remove(zombies,o) | |
| 983 | end | |
| 984 | end) | |
| 985 | coru() | |
| 986 | wait() | |
| 987 | end | |
| 988 | for i,v in pairs(zombies) do | |
| 989 | table.remove(zombies,i) | |
| 990 | end | |
| 991 | if player.PlayerGui:FindFirstChild('Notification') then player.PlayerGui.Notification:Destroy() end
| |
| 992 | notify("ZOMBIES TERMINATED",false)
| |
| 993 | end | |
| 994 | end) | |
| 995 | ||
| 996 | function nub() | |
| 997 | local me = player.Character | |
| 998 | local point = me.HumanoidRootPart | |
| 999 | local playergui = player.PlayerGui | |
| 1000 | local rightshoulderz = me.Torso["Right Shoulder"]:Clone() | |
| 1001 | local leftshoulderz = me.Torso["Left Shoulder"]:Clone() | |
| 1002 | local torsojoint = me.HumanoidRootPart["RootJoint"]:Clone() | |
| 1003 | local lefthipz = me.Torso["Left Hip"]:Clone() | |
| 1004 | local righthipz = me.Torso["Right Hip"]:Clone() | |
| 1005 | local mode = "kill" | |
| 1006 | local lerpz = false | |
| 1007 | local active = false | |
| 1008 | local acting = false | |
| 1009 | local hit = false | |
| 1010 | local canClick = true | |
| 1011 | local stabbing = false | |
| 1012 | local grabbing = false | |
| 1013 | local finishing = false | |
| 1014 | local kyssing = false | |
| 1015 | local canbackgroundmusic = true | |
| 1016 | local cancolorfilter = true | |
| 1017 | local spinboolean = false | |
| 1018 | local grabbed = nil | |
| 1019 | local doing = false | |
| 1020 | local rightshoulder = nil | |
| 1021 | local leftshoulder = nil | |
| 1022 | local headweld = nil | |
| 1023 | local usable = true | |
| 1024 | finishnum = 1 | |
| 1025 | ||
| 1026 | ||
| 1027 | ||
| 1028 | ||
| 1029 | -- 1 - bitch ass knife | |
| 1030 | local obj1 = Instance.new("Model")
| |
| 1031 | obj1.Name = "bitch ass knife" | |
| 1032 | obj1.Parent = game.Workspace | |
| 1033 | ||
| 1034 | -- 2 - Grab | |
| 1035 | local obj2 = Instance.new("Part")
| |
| 1036 | obj2.CFrame = CFrame.new(Vector3.new(20.4525032, 6.14501333, -134.399979)) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126) | |
| 1037 | obj2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1038 | obj2.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1039 | obj2.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1040 | obj2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1041 | obj2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1042 | obj2.Material = Enum.Material.WoodPlanks | |
| 1043 | obj2.Size = Vector3.new(3, 0.30, 0.30) | |
| 1044 | obj2.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1045 | obj2.Anchored = true | |
| 1046 | obj2.BrickColor = BrickColor.new("Pine Cone")
| |
| 1047 | obj2.Friction = 0.30000001192093 | |
| 1048 | obj2.Shape = Enum.PartType.Cylinder | |
| 1049 | obj2.Name = "Grab" | |
| 1050 | obj2.Parent = obj1 | |
| 1051 | ||
| 1052 | ||
| 1053 | ||
| 1054 | ||
| 1055 | ||
| 1056 | -- 4 - Grab | |
| 1057 | local obj4 = Instance.new("Part")
| |
| 1058 | obj4.CFrame = CFrame.new(Vector3.new(18.9525032, 6.14501333, -134.399979)) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126) | |
| 1059 | obj4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1060 | obj4.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1061 | obj4.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1062 | obj4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1063 | obj4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1064 | obj4.Material = Enum.Material.DiamondPlate | |
| 1065 | obj4.Size = Vector3.new(0.2, 0.31, 0.31) | |
| 1066 | obj4.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1067 | obj4.Anchored = true | |
| 1068 | ||
| 1069 | obj4.Friction = 0.30000001192093 | |
| 1070 | obj4.Shape = Enum.PartType.Cylinder | |
| 1071 | obj4.Name = "Grab" | |
| 1072 | obj4.Parent = obj1 | |
| 1073 | ||
| 1074 | -- 5 - Grab | |
| 1075 | local obj4 = Instance.new("Part")
| |
| 1076 | obj4.CFrame = CFrame.new(Vector3.new(20.4525032, 6.14501333, -134.399979)) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126) | |
| 1077 | obj4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1078 | obj4.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1079 | obj4.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1080 | obj4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1081 | obj4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1082 | obj4.Material = Enum.Material.DiamondPlate | |
| 1083 | obj4.Size = Vector3.new(1, 0.31, 0.31) | |
| 1084 | obj4.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1085 | obj4.Anchored = true | |
| 1086 | ||
| 1087 | obj4.Friction = 0.30000001192093 | |
| 1088 | obj4.Shape = Enum.PartType.Cylinder | |
| 1089 | obj4.Name = "Grab" | |
| 1090 | obj4.Parent = obj1 | |
| 1091 | ||
| 1092 | -- 5 - Grab | |
| 1093 | local obj4 = Instance.new("Part")
| |
| 1094 | obj4.CFrame = CFrame.new(Vector3.new(21.8625032, 6.14501333, -134.399979)) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126) | |
| 1095 | obj4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1096 | obj4.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1097 | obj4.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1098 | obj4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1099 | obj4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1100 | obj4.Material = Enum.Material.DiamondPlate | |
| 1101 | obj4.Size = Vector3.new(0.2, 0.31, 0.31) | |
| 1102 | obj4.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1103 | obj4.Anchored = true | |
| 1104 | ||
| 1105 | obj4.Friction = 0.30000001192093 | |
| 1106 | ||
| 1107 | obj4.Shape = Enum.PartType.Cylinder | |
| 1108 | obj4.Name = "Grab" | |
| 1109 | obj4.Parent = obj1 | |
| 1110 | ||
| 1111 | ||
| 1112 | ||
| 1113 | -- 8 - big ass knife | |
| 1114 | local obj8 = Instance.new("Part")
| |
| 1115 | obj8.CFrame = CFrame.new(Vector3.new(18.4375095, 6.14502859, -134.401321)) * CFrame.Angles(0, 1.5707963705063, 0) | |
| 1116 | obj8.Transparency = 1 | |
| 1117 | obj8.Size = Vector3.new(0, 0, 0) | |
| 1118 | obj8.Material = "Air" | |
| 1119 | obj8.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1120 | obj8.Anchored = true | |
| 1121 | ||
| 1122 | obj8.Name = "big ass knife" | |
| 1123 | obj8.Parent = obj1 | |
| 1124 | ||
| 1125 | ||
| 1126 | ||
| 1127 | -- 10 - big ass knife | |
| 1128 | local obj10 = Instance.new("Part")
| |
| 1129 | obj10.CFrame = CFrame.new(Vector3.new(19.7425137, 6.14502859, -134.401321)) * CFrame.Angles(0, 1.5707963705063, 0) | |
| 1130 | ||
| 1131 | obj10.Size = Vector3.new(0, 0, 0) | |
| 1132 | ||
| 1133 | obj10.Anchored = true | |
| 1134 | obj10.Material = "Air" | |
| 1135 | obj10.Name = "big ass knife" | |
| 1136 | obj10.Parent = obj1 | |
| 1137 | local knife = obj10 | |
| 1138 | ||
| 1139 | ||
| 1140 | -- 32 - redstuff | |
| 1141 | local obj32 = Instance.new("Part")
| |
| 1142 | obj32.CFrame = CFrame.new(Vector3.new(19.9470005, 5.9749999, -134.399994)) * CFrame.Angles(-0, 0, -0) | |
| 1143 | ||
| 1144 | obj32.Size = Vector3.new(0, 0, 0) | |
| 1145 | obj32.Material = "Air" | |
| 1146 | obj32.Name = "redstuff" | |
| 1147 | obj32.Anchored = true | |
| 1148 | obj32.Parent = obj1 | |
| 1149 | ||
| 1150 | ||
| 1151 | ||
| 1152 | ||
| 1153 | local audio = Instance.new('Sound',knife)
| |
| 1154 | audio.Volume = 0 | |
| 1155 | ||
| 1156 | local audio2 = Instance.new('Sound',knife)
| |
| 1157 | audio2.Volume = 0 | |
| 1158 | ||
| 1159 | local holdpart = Instance.new("Part")
| |
| 1160 | holdpart.Parent = me | |
| 1161 | holdpart.Size = Vector3.new(0.4, 0.2, 0.2) | |
| 1162 | holdpart.Position = me.Head.Position + Vector3.new(0, 1, 0) | |
| 1163 | holdpart.BrickColor = BrickColor.new("Burnt Sienna")
| |
| 1164 | holdpart.Material = "Air" | |
| 1165 | ||
| 1166 | local previous = nil | |
| 1167 | for i,v in pairs(obj1:GetChildren()) do | |
| 1168 | if v:IsA('BasePart') then
| |
| 1169 | if previous then | |
| 1170 | local weld = Instance.new('Weld',v)
| |
| 1171 | weld.Part0 = v | |
| 1172 | weld.Part1 = previous | |
| 1173 | weld.C0 = v.CFrame:inverse() * previous.CFrame | |
| 1174 | previous.Anchored = false | |
| 1175 | previous.CanCollide = false | |
| 1176 | local vee = v | |
| 1177 | weld.AncestryChanged:connect(function(mez,par) | |
| 1178 | wait() | |
| 1179 | weld.Parent = vee | |
| 1180 | end) | |
| 1181 | end | |
| 1182 | previous = v | |
| 1183 | end | |
| 1184 | end | |
| 1185 | previous.Anchored = false | |
| 1186 | previous.CanCollide = false | |
| 1187 | ||
| 1188 | local holdpartweld = Instance.new("Weld", me.Torso)
| |
| 1189 | holdpartweld.Part0 = me.Torso | |
| 1190 | holdpartweld.Part1 = holdpart | |
| 1191 | holdpartweld.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(-1, -0.8, 0.15) | |
| 1192 | ||
| 1193 | holdpartweld.AncestryChanged:connect(function(mez,par) | |
| 1194 | if par ~= me.Torso then | |
| 1195 | wait() | |
| 1196 | holdpartweld.Parent = me.Torso | |
| 1197 | end | |
| 1198 | end) | |
| 1199 | ||
| 1200 | local knifeweld = Instance.new('Weld',me.Torso)
| |
| 1201 | knifeweld.Part0 = me.Torso | |
| 1202 | knifeweld.Part1 = obj2 | |
| 1203 | knifeweld.C1 = CFrame.Angles(0,math.rad(90),0) * CFrame.new(1, 0.8, 0.55) | |
| 1204 | knifeweld.AncestryChanged:connect(function(mez,par) | |
| 1205 | if par ~= me.Torso then | |
| 1206 | wait() | |
| 1207 | knifeweld.Parent = me.Torso | |
| 1208 | end | |
| 1209 | end) | |
| 1210 | ||
| 1211 | function equip() | |
| 1212 | local doit = coroutine.wrap(function() | |
| 1213 | if me:FindFirstChild('Right Arm') and me:FindFirstChild('Torso') then
| |
| 1214 | acting = true | |
| 1215 | local arm = me["Right Arm"] | |
| 1216 | local arm2 = me["Left Arm"] | |
| 1217 | local tors = me.Torso | |
| 1218 | local weld = Instance.new('Weld',arm)
| |
| 1219 | weld.Part0 = arm | |
| 1220 | weld.Part1 = tors | |
| 1221 | weld.C0 = CFrame.new(-1.5,0,0) | |
| 1222 | local weld2 = Instance.new("Weld", arm2)
| |
| 1223 | weld2.Part0 = arm2 | |
| 1224 | weld2.Part1 = tors | |
| 1225 | weld2.C0 = CFrame.new(1.5, 0, 0) | |
| 1226 | wait() | |
| 1227 | ||
| 1228 | for i = 0,1,0.1 do | |
| 1229 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld == nil then return end
| |
| 1230 | weld.C0 = weld.C0:lerp(CFrame.new(-1.5,0,0),i) | |
| 1231 | wait() | |
| 1232 | end | |
| 1233 | weld:Destroy() | |
| 1234 | weld2:Remove() | |
| 1235 | if tors ~= nil then | |
| 1236 | rightshoulderz:Clone().Parent = me.Torso | |
| 1237 | leftshoulderz:Clone().Parent = me.Torso | |
| 1238 | end | |
| 1239 | end | |
| 1240 | acting = false | |
| 1241 | end) | |
| 1242 | doit() | |
| 1243 | end | |
| 1244 | ||
| 1245 | ||
| 1246 | function bleedout() | |
| 1247 | local doit = coroutine.wrap(function() | |
| 1248 | local targe = grabbed | |
| 1249 | local num = 0 | |
| 1250 | while targe and targe:FindFirstChildOfClass('Humanoid') and targe:FindFirstChildOfClass('Humanoid').Health > 0 and num < 11 do
| |
| 1251 | if targe.Head:FindFirstChild('Died') then
| |
| 1252 | tone = math.random(6, 12) / 10 | |
| 1253 | targe.Head.Died.PlaybackSpeed = tone | |
| 1254 | targe.Head.Died:Play() | |
| 1255 | else | |
| 1256 | local deathsound = Instance.new('Sound',targe.Head)
| |
| 1257 | deathsound.Name = "Died" | |
| 1258 | deathsound.SoundId = 'rbxasset://sounds/uuhhh.mp3' | |
| 1259 | deathsound.Volume = 0.65 | |
| 1260 | deathsound.EmitterSize = 5 | |
| 1261 | deathsound.MaxDistance = 150 | |
| 1262 | tone = math.random(5, 15) / 10 | |
| 1263 | targe.Head.Died.PlaybackSpeed = tone | |
| 1264 | targe.Head.Died:Play() | |
| 1265 | end | |
| 1266 | targe:FindFirstChildOfClass('Humanoid').Health = targe:FindFirstChildOfClass('Humanoid').Health - 7
| |
| 1267 | num = num+1 | |
| 1268 | wait(0.325) | |
| 1269 | end | |
| 1270 | targe:FindFirstChildOfClass('Humanoid').Health = 0
| |
| 1271 | wait() | |
| 1272 | killz(targe,'Head',nil,nil,false,true) | |
| 1273 | wait(2) | |
| 1274 | targe:Remove() | |
| 1275 | end) | |
| 1276 | doit() | |
| 1277 | end | |
| 1278 | ||
| 1279 | function liedown() | |
| 1280 | local doit = coroutine.wrap(function() | |
| 1281 | local targe = grabbed | |
| 1282 | wait(2) | |
| 1283 | if targe and targe:FindFirstChildOfClass('Humanoid') then
| |
| 1284 | targe:FindFirstChildOfClass('Humanoid').PlatformStand = false
| |
| 1285 | end | |
| 1286 | end) | |
| 1287 | doit() | |
| 1288 | end | |
| 1289 | ||
| 1290 | ||
| 1291 | ||
| 1292 | ||
| 1293 | ||
| 1294 | ||
| 1295 | function throw() | |
| 1296 | if grabbed.Torso:FindFirstChild("TargetWeld") == nil or grabbed:FindFirstChildOfClass('Humanoid').Health <= 0 then return end
| |
| 1297 | paralyzed = false | |
| 1298 | targetweld = grabbed.Torso.TargetWeld | |
| 1299 | local ree = grabbed:FindFirstChild("Left Arm")
| |
| 1300 | targetweld2 =nil | |
| 1301 | if ree and ree:FindFirstChild("Weld") then
| |
| 1302 | targetweld2 = ree.Weld | |
| 1303 | end | |
| 1304 | ||
| 1305 | for i, v in pairs(grabbed:GetChildren()) do | |
| 1306 | if v.Name == "Part" then | |
| 1307 | v.CanCollide = true | |
| 1308 | end | |
| 1309 | end | |
| 1310 | ||
| 1311 | ||
| 1312 | local doit = coroutine.wrap(function() | |
| 1313 | local arm = me["Right Arm"] | |
| 1314 | local tors = grabbed.Torso | |
| 1315 | local arm2 = me["Left Arm"] | |
| 1316 | local targrightshoulder = rightshoulder | |
| 1317 | ||
| 1318 | local targleftshoulder = leftshoulder | |
| 1319 | if arm:FindFirstChildOfClass('Weld') == nil or arm2:FindFirstChildOfClass('Weld') == nil then return end
| |
| 1320 | doing = true | |
| 1321 | local weld2 = arm:FindFirstChildOfClass('Weld')
| |
| 1322 | local weld3 = arm2:FindFirstChildOfClass('Weld')
| |
| 1323 | local humanroot = me.HumanoidRootPart | |
| 1324 | ||
| 1325 | for i = 0,1,0.2 do | |
| 1326 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil or weld3 == nil then return end
| |
| 1327 | weld2.C0 = weld2.C0:lerp(CFrame.new(-0.9, 1.7, -0.5)* CFrame.Angles(-0.25, 1, -1.4), i) | |
| 1328 | weld3.C0 = weld3.C0:lerp(CFrame.new(0.8, 1.6, -0.5)* CFrame.Angles(-1.5, -1, 1.1), i) | |
| 1329 | targetweld.C0 = targetweld.C0:lerp(CFrame.new(0, 1.5, 0)*CFrame.Angles(0, 0, 0), i) | |
| 1330 | if targetweld2 then | |
| 1331 | targetweld2.C0 = targetweld2.C0:lerp(CFrame.new(-1.5, 0, 0)*CFrame.Angles(0, 0, 0), i) | |
| 1332 | end | |
| 1333 | wait() | |
| 1334 | end | |
| 1335 | ||
| 1336 | audio:Stop() | |
| 1337 | audio.SoundId = "rbxassetid://536642316" | |
| 1338 | tone = math.random(1, 3) | |
| 1339 | if tone == 1 then audio.PlaybackSpeed = 0.8 audio.TimePosition = 0.08 end | |
| 1340 | if tone == 2 then audio.PlaybackSpeed = 1 audio.TimePosition = 0.1 end | |
| 1341 | if tone == 3 then audio.PlaybackSpeed = 1.2 audio.TimePosition = 0.12 end | |
| 1342 | audio:Play() | |
| 1343 | ||
| 1344 | local slightthrow = Instance.new("BodyVelocity", grabbed.Torso)
| |
| 1345 | slightthrow.Velocity = Vector3.new(0,20,0)+(me.Torso.CFrame.lookVector*20) | |
| 1346 | slightthrow.P = 5000 | |
| 1347 | slightthrow.MaxForce = Vector3.new(9000001,9000001,9000001) | |
| 1348 | local point = grabbed.Torso.Position | |
| 1349 | local aaaaaa = grabbed | |
| 1350 | liedown() | |
| 1351 | ||
| 1352 | rightshoulderz:Clone().Parent = me.Torso | |
| 1353 | leftshoulderz:Clone().Parent = me.Torso | |
| 1354 | grabbed = nil | |
| 1355 | ||
| 1356 | if humanroot:FindFirstChild('Holder') then
| |
| 1357 | humanroot.Holder:Destroy() | |
| 1358 | end | |
| 1359 | local coru = coroutine.wrap(function() | |
| 1360 | while aaaaaa and aaaaaa:FindFirstChild('Torso') and (aaaaaa.Torso.Position-point).magnitude < 5 do wait(0.001) end
| |
| 1361 | slightthrow:Remove() | |
| 1362 | end) | |
| 1363 | coru() | |
| 1364 | ||
| 1365 | for i = 0,1,0.05 do | |
| 1366 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil or weld3 == nil then return end
| |
| 1367 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,0,0),i) | |
| 1368 | weld3.C0 = weld3.C0:lerp(CFrame.new(1.5,0,0),i) | |
| 1369 | wait() | |
| 1370 | end | |
| 1371 | weld2:Destroy() | |
| 1372 | weld3:Destroy() | |
| 1373 | targetweld:Remove() | |
| 1374 | if targetweld2 then | |
| 1375 | targetweld2:Remove() | |
| 1376 | end | |
| 1377 | if rightshoulder then | |
| 1378 | rightshoulder:Clone().Parent = tors | |
| 1379 | end | |
| 1380 | if leftshoulder then | |
| 1381 | leftshoulder:Clone().Parent = tors | |
| 1382 | end | |
| 1383 | headweld:Clone().Parent = tors | |
| 1384 | rightshoulderz:Clone().Parent = me.Torso | |
| 1385 | leftshoulderz:Clone().Parent = me.Torso | |
| 1386 | acting = false | |
| 1387 | canClick = true | |
| 1388 | doing = false | |
| 1389 | end) | |
| 1390 | doit() | |
| 1391 | end | |
| 1392 | ||
| 1393 | ||
| 1394 | ||
| 1395 | function fling() | |
| 1396 | local doit = coroutine.wrap(function() | |
| 1397 | if me:FindFirstChild('Right Arm') and me:FindFirstChild('Torso') and me:FindFirstChild('HumanoidRootPart') then
| |
| 1398 | acting = true | |
| 1399 | for i=1,finishnum do | |
| 1400 | local weld2 = Instance.new('Weld',me["Right Arm"])
| |
| 1401 | weld2.Part0 = me["Right Arm"] | |
| 1402 | weld2.Part1 = me["Torso"] | |
| 1403 | weld2.C0 = CFrame.new(-1.5,0,0) | |
| 1404 | if finishnum == 1 then | |
| 1405 | for i = 0,1,0.05 do | |
| 1406 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil then return end
| |
| 1407 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,0.9,-0.5)*CFrame.Angles(-math.pi/0.75,-math.pi/8,0),i) | |
| 1408 | wait(0.01) | |
| 1409 | end | |
| 1410 | end | |
| 1411 | audio.SoundId = "rbxassetid://166083610" | |
| 1412 | audio.PlaybackSpeed = 1 | |
| 1413 | audio.TimePosition = 0.1 | |
| 1414 | audio:Play() | |
| 1415 | if finishnum == 1 then | |
| 1416 | for i = 0,1,0.5 do | |
| 1417 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil then return end
| |
| 1418 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,1.2,0.1)*CFrame.Angles(math.pi/0.9,0,0),i) | |
| 1419 | wait(0.001) | |
| 1420 | end | |
| 1421 | end | |
| 1422 | weld2.C0 = CFrame.new(-1.5,1.2,0.1)*CFrame.Angles(math.pi/0.9,0,0) | |
| 1423 | local knofe = obj1:Clone() | |
| 1424 | for i, v in pairs(obj1:GetChildren()) do | |
| 1425 | if v:IsA('BasePart') then
| |
| 1426 | v.Transparency = 1 | |
| 1427 | end | |
| 1428 | end | |
| 1429 | knofe.Parent = workspace | |
| 1430 | knofe.Name = "Projectile" | |
| 1431 | knofe.Grab.CFrame = CFrame.new(knofe.Grab.CFrame.p, mouse.Hit.p)*CFrame.Angles(0,math.pi/2,0) | |
| 1432 | ||
| 1433 | local heck = Instance.new('BodyVelocity',knofe.Grab)
| |
| 1434 | heck.Velocity = (knofe.Grab.CFrame*CFrame.Angles(0,math.pi/-2,0)).lookVector*120 | |
| 1435 | local coru = coroutine.wrap(function() | |
| 1436 | wait(0.45) | |
| 1437 | if heck then | |
| 1438 | heck:Destroy() | |
| 1439 | end | |
| 1440 | end) | |
| 1441 | coru() | |
| 1442 | local able = true | |
| 1443 | knofe["big ass knife"].Touched:connect(function(hit) | |
| 1444 | 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
| |
| 1445 | local thing = hit.Parent:FindFirstChildOfClass('Humanoid')
| |
| 1446 | local ree = hit.Parent | |
| 1447 | if thing == nil then | |
| 1448 | ree = hit.Parent.Parent | |
| 1449 | end | |
| 1450 | if ree:FindFirstChildOfClass('Humanoid').Health > 0 then
| |
| 1451 | ||
| 1452 | game:GetService('Debris'):AddItem(knofe,5)
| |
| 1453 | tone = math.random(1, 3) | |
| 1454 | local sound = Instance.new('Sound',knofe.Grab)
| |
| 1455 | if tone == 1 then sound.SoundId = "rbxassetid://429400881" end | |
| 1456 | if tone == 2 then sound.SoundId = "rbxassetid://429400881" end | |
| 1457 | if tone == 3 then sound.SoundId = "rbxassetid://429400881" end | |
| 1458 | sound.PlaybackSpeed = 1 | |
| 1459 | sound:Play() | |
| 1460 | for i, v in pairs(knofe:GetChildren()) do | |
| 1461 | if v:IsA('BasePart') then
| |
| 1462 | v.CanCollide = true | |
| 1463 | v.Anchored = true | |
| 1464 | end | |
| 1465 | end | |
| 1466 | hit.Anchored = true | |
| 1467 | if ree:FindFirstChildOfClass('Humanoid') and hit.Name == "Torso" or hit.Name == "Head" then
| |
| 1468 | ree:FindFirstChildOfClass('Humanoid').Health = 0
| |
| 1469 | end | |
| 1470 | wait() | |
| 1471 | killz(ree,hit.Name,knofe) | |
| 1472 | else | |
| 1473 | ||
| 1474 | heck.Velocity = Vector3.new(0,0,0) | |
| 1475 | heck:Destroy() | |
| 1476 | game:GetService('Debris'):AddItem(knofe,5)
| |
| 1477 | tone = math.random(1, 3) | |
| 1478 | local sound = Instance.new('Sound',knofe.Grab)
| |
| 1479 | if tone == 1 then sound.SoundId = "rbxassetid://220833967" end | |
| 1480 | if tone == 2 then sound.SoundId = "rbxassetid://220833976" end | |
| 1481 | if tone == 3 then sound.SoundId = "rbxassetid://220834000" end | |
| 1482 | sound.PlaybackSpeed = 1 | |
| 1483 | sound:Play() | |
| 1484 | for i, v in pairs(knofe:GetChildren()) do | |
| 1485 | if v:IsA('BasePart') then
| |
| 1486 | v.Anchored = false | |
| 1487 | end | |
| 1488 | end | |
| 1489 | hit.Anchored = true | |
| 1490 | wait(0.001) | |
| 1491 | hit.Anchored = false | |
| 1492 | for i, v in pairs(knofe:GetChildren()) do | |
| 1493 | if v:IsA('BasePart') then
| |
| 1494 | v.Anchored = false | |
| 1495 | end | |
| 1496 | end | |
| 1497 | if knofe then | |
| 1498 | local coru = coroutine.wrap(function() | |
| 1499 | if hit then | |
| 1500 | local uno = Instance.new('Part',workspace)
| |
| 1501 | local dos = Instance.new('Part',workspace)
| |
| 1502 | uno.CFrame = hit.CFrame | |
| 1503 | dos.CFrame = knofe["big ass knife"].CFrame | |
| 1504 | local weld = Instance.new('Weld',knofe["big ass knife"])
| |
| 1505 | weld.Part0 = hit | |
| 1506 | weld.Part1 = knofe["big ass knife"] | |
| 1507 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
| 1508 | uno:Destroy() | |
| 1509 | dos:Destroy() | |
| 1510 | end | |
| 1511 | end) | |
| 1512 | coru() | |
| 1513 | end | |
| 1514 | end | |
| 1515 | elseif hit.Parent and hit.Parent ~= me and hit.Parent.Parent ~= me and hit.CanCollide and knofe.Grab.CanCollide == false then | |
| 1516 | if hit.Transparency and (hit.Transparency<=0.285 or hit:GetMass()<=3000) then | |
| 1517 | ||
| 1518 | local sound = Instance.new('Sound',knofe.Grab)
| |
| 1519 | sound.SoundId = 'rbxassetid://267585646' | |
| 1520 | sound:Play() | |
| 1521 | for i,v in pairs(knofe:GetChildren()) do | |
| 1522 | if v:IsA('BasePart') then
| |
| 1523 | v.Anchored = true | |
| 1524 | end | |
| 1525 | end | |
| 1526 | wait() | |
| 1527 | heck.Velocity = Vector3.new(0,0,0) | |
| 1528 | heck:Destroy() | |
| 1529 | local uno = Instance.new('Part',workspace)
| |
| 1530 | local dos = Instance.new('Part',workspace)
| |
| 1531 | uno.CFrame = hit.CFrame | |
| 1532 | dos.CFrame = knofe["big ass knife"].CFrame | |
| 1533 | local weld = Instance.new('Weld',knofe["big ass knife"])
| |
| 1534 | weld.Part0 = hit | |
| 1535 | weld.Part1 = knofe["big ass knife"] | |
| 1536 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
| 1537 | uno:Destroy() | |
| 1538 | dos:Destroy() | |
| 1539 | for i,v in pairs(knofe:GetChildren()) do | |
| 1540 | if v:IsA('BasePart') then
| |
| 1541 | v.Anchored = false | |
| 1542 | end | |
| 1543 | end | |
| 1544 | game:GetService('Debris'):AddItem(knofe,5)
| |
| 1545 | for i,v in pairs(knofe:GetChildren()) do | |
| 1546 | if v:IsA('BasePart') then
| |
| 1547 | v.CanCollide = true | |
| 1548 | end | |
| 1549 | end | |
| 1550 | end | |
| 1551 | 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
| |
| 1552 | ||
| 1553 | able = false | |
| 1554 | local sound = Instance.new('Sound',knofe.Grab)
| |
| 1555 | sound.SoundId = 'rbxassetid://144884907' | |
| 1556 | sound:Play() | |
| 1557 | local coru = coroutine.wrap(function() | |
| 1558 | ||
| 1559 | end) | |
| 1560 | coru() | |
| 1561 | end | |
| 1562 | end | |
| 1563 | end) | |
| 1564 | if finishnum == 1 then | |
| 1565 | for i= 0,1,0.1 do | |
| 1566 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil then return end
| |
| 1567 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,0,0),i) | |
| 1568 | wait(0.001) | |
| 1569 | end | |
| 1570 | else | |
| 1571 | for i= 0,1,0.5 do | |
| 1572 | if me:FindFirstChild('Right Arm') == nil or me:FindFirstChild('Torso') == nil or weld2 == nil then return end
| |
| 1573 | weld2.C0 = weld2.C0:lerp(CFrame.new(-1.5,0,0),i) | |
| 1574 | wait(0.001) | |
| 1575 | end | |
| 1576 | end | |
| 1577 | for i,v in pairs(obj1:GetChildren()) do | |
| 1578 | if v:IsA('BasePart') then
| |
| 1579 | v.Transparency = 0 | |
| 1580 | end | |
| 1581 | end | |
| 1582 | weld2:Destroy() | |
| 1583 | rightshoulderz:Clone().Parent = me.Torso | |
| 1584 | end | |
| 1585 | acting = false | |
| 1586 | canClick = true | |
| 1587 | end | |
| 1588 | end) | |
| 1589 | doit() | |
| 1590 | end | |
| 1591 | ||
| 1592 | ||
| 1593 | ||
| 1594 | active = true | |
| 1595 | ||
| 1596 | equip() | |
| 1597 | ||
| 1598 | ||
| 1599 | knifeweld.Part0 = me["Right Arm"] | |
| 1600 | knifeweld.C1 = CFrame.fromEulerAnglesXYZ(1.55, math.rad(-90), 1.55) * CFrame.new(0, 0.95, 0) | |
| 1601 | ||
| 1602 | canClick = true | |
| 1603 | ||
| 1604 | ||
| 1605 | mode = "fling" | |
| 1606 | ||
| 1607 | ||
| 1608 | mouse.Button1Down:connect(function() | |
| 1609 | if active == false or usable == false then return end | |
| 1610 | if canClick == true and acting == false then | |
| 1611 | if mode == "stab" and finishnum == 1 then | |
| 1612 | canClick = false | |
| 1613 | stab() | |
| 1614 | elseif mode == "fling" then | |
| 1615 | canClick = false | |
| 1616 | fling() | |
| 1617 | end | |
| 1618 | ||
| 1619 | ||
| 1620 | ||
| 1621 | ||
| 1622 | end | |
| 1623 | end) | |
| 1624 | ||
| 1625 | knife.Touched:connect(function(hitz) | |
| 1626 | if hitz.Parent and hitz.Parent:FindFirstChildOfClass("Humanoid") and hitz.Parent:FindFirstChild('Torso') and acting == true then
| |
| 1627 | if mode == "stab" and stabbing == true and hit == false then | |
| 1628 | hit = true | |
| 1629 | tone = math.random(1, 3) | |
| 1630 | audio:Stop() | |
| 1631 | if tone == 1 then audio.SoundId = "rbxassetid://220833967" end | |
| 1632 | if tone == 2 then audio.SoundId = "rbxassetid://220833976" end | |
| 1633 | if tone == 3 then audio.SoundId = "rbxassetid://220834000" end | |
| 1634 | audio.PlaybackSpeed = 1 | |
| 1635 | audio:Play() | |
| 1636 | killz(hitz.Parent,'Left Leg') | |
| 1637 | killz(hitz.Parent,'Left Arm') | |
| 1638 | killz(hitz.Parent,'Right Leg') | |
| 1639 | killz(hitz.Parent,'Right Arm') | |
| 1640 | ||
| 1641 | ||
| 1642 | end | |
| 1643 | end | |
| 1644 | end) | |
| 1645 | ||
| 1646 | player.CharacterAdded:connect(function() | |
| 1647 | usable = false | |
| 1648 | for i,v in pairs(playergui:GetChildren()) do | |
| 1649 | if v.Name == "REEEEEEEE" or v.Name == 'PSYCHOPAAAATH' then | |
| 1650 | v:Destroy() | |
| 1651 | end | |
| 1652 | end | |
| 1653 | end) | |
| 1654 | while usable do | |
| 1655 | local coru = coroutine.wrap(function() | |
| 1656 | if grabbed ~= nil then | |
| 1657 | if grabbed:FindFirstChildOfClass('Humanoid') and grabbed:FindFirstChildOfClass('Humanoid').Health > 0 then
| |
| 1658 | for i,v in pairs(grabbed:GetChildren()) do | |
| 1659 | if v:IsA('Tool') then
| |
| 1660 | local model = Instance.new('Model',workspace)
| |
| 1661 | v.Parent = model | |
| 1662 | model:TranslateBy(Vector3.new(3,0,0)) | |
| 1663 | end | |
| 1664 | end | |
| 1665 | grabbed:FindFirstChildOfClass('Humanoid').Name = "Hoomanoid"
| |
| 1666 | grabbed:FindFirstChildOfClass('Humanoid').JumpPower = 0
| |
| 1667 | grabbed:FindFirstChildOfClass('Humanoid').WalkSpeed = 0
| |
| 1668 | grabbed:FindFirstChildOfClass('Humanoid').PlatformStand = true
| |
| 1669 | grabweld = grabbed.Torso:FindFirstChild("TargetWeld")
| |
| 1670 | if grabweld ~= nil then return end | |
| 1671 | grabbed:FindFirstChildOfClass('Humanoid').PlatformStand = true
| |
| 1672 | if grabbed.Torso:FindFirstChild('Left Shoulder') then
| |
| 1673 | leftshoulder = grabbed.Torso["Left Shoulder"]:Clone() | |
| 1674 | end | |
| 1675 | if grabbed.Torso:FindFirstChild('Right Shoulder') then
| |
| 1676 | rightshoulder = grabbed.Torso["Right Shoulder"]:Clone() | |
| 1677 | end | |
| 1678 | headweld = grabbed.Torso["Neck"]:Clone() | |
| 1679 | local targetweld = Instance.new('Weld',grabbed.Torso)
| |
| 1680 | targetweld.Part0 = grabbed.Torso | |
| 1681 | targetweld.Part1 = grabbed.Head | |
| 1682 | targetweld.Name = "TargetWeld" | |
| 1683 | targetweld.C0 = CFrame.new(0,1.5,0) * CFrame.Angles(0, 0, 0) | |
| 1684 | if grabbed:FindFirstChild('Left Arm') then
| |
| 1685 | local targetweld2 = Instance.new('Weld',grabbed["Left Arm"])
| |
| 1686 | targetweld2.Part0 = grabbed.Torso | |
| 1687 | targetweld2.Part1 = grabbed["Left Arm"] | |
| 1688 | targetweld2.C0 = CFrame.new(-1.5,0,0) * CFrame.Angles(0, 0, 0) | |
| 1689 | end | |
| 1690 | ||
| 1691 | for i = 0,1,0.1 do | |
| 1692 | if me:FindFirstChild("Left Arm") == nil or me:FindFirstChild("Torso") == nil or targetweld == nil then return end
| |
| 1693 | targetweld.C0 = targetweld.C0:lerp(CFrame.new(0, 1.5, 0)*CFrame.Angles(0.25, 0, 0), i) | |
| 1694 | if targetweld2 then | |
| 1695 | targetweld2.C0 = targetweld2.C0:lerp(CFrame.new(-1.5, 0.5, 0)*CFrame.Angles(0, 0, -0.55), i) | |
| 1696 | end | |
| 1697 | wait(0.001) | |
| 1698 | end | |
| 1699 | end | |
| 1700 | end | |
| 1701 | end) | |
| 1702 | coru() | |
| 1703 | wait() | |
| 1704 | end | |
| 1705 | ||
| 1706 | end | |
| 1707 | local coru=coroutine.wrap(function() | |
| 1708 | nub() | |
| 1709 | end) | |
| 1710 | coru() | |
| 1711 | ||
| 1712 | player.CharacterAppearanceLoaded:connect(function() | |
| 1713 | local coru =coroutine.wrap(function() | |
| 1714 | nub() | |
| 1715 | end) | |
| 1716 | coru() | |
| 1717 | end) | |
| 1718 | ||
| 1719 | while true do | |
| 1720 | local coru=coroutine.wrap(function() | |
| 1721 | for i,v in pairs(rekt) do | |
| 1722 | if v and v:FindFirstChildOfClass('Humanoid') then
| |
| 1723 | for a,c in pairs(v:GetChildren()) do | |
| 1724 | if c:IsA('Tool') then
| |
| 1725 | local model = Instance.new('Model',workspace)
| |
| 1726 | c.Parent = model | |
| 1727 | model:TranslateBy(Vector3.new(3,0,0)) | |
| 1728 | end | |
| 1729 | end | |
| 1730 | v:FindFirstChildOfClass('Humanoid').Jump = false
| |
| 1731 | v:FindFirstChildOfClass('Humanoid').Sit = false
| |
| 1732 | v:FindFirstChildOfClass('Humanoid').JumpPower = 0
| |
| 1733 | v:FindFirstChildOfClass('Humanoid').PlatformStand = true
| |
| 1734 | v:FindFirstChildOfClass('Humanoid').Name = "No escape."
| |
| 1735 | local thing = getplr(v) | |
| 1736 | if thing then | |
| 1737 | thing.CameraMinZoomDistance = 3 | |
| 1738 | end | |
| 1739 | else | |
| 1740 | local thing = getplr(v) | |
| 1741 | if thing then | |
| 1742 | thing.CameraMinZoomDistance = 0.5 | |
| 1743 | end | |
| 1744 | table.remove(rekt,i) | |
| 1745 | end | |
| 1746 | end | |
| 1747 | end) | |
| 1748 | coru() | |
| 1749 | local coru2 = coroutine.wrap(function() | |
| 1750 | if curpart then | |
| 1751 | curpoint = curpart.CFrame.p | |
| 1752 | end | |
| 1753 | if lastgui then | |
| 1754 | lastgui:Destroy() | |
| 1755 | lastgui = nil | |
| 1756 | end | |
| 1757 | if curpoint then | |
| 1758 | lastgui = Instance.new('BillboardGui',player.PlayerGui)
| |
| 1759 | lastgui.AlwaysOnTop = true | |
| 1760 | lastgui.MaxDistance = 0 | |
| 1761 | lastgui.Size = UDim2.new(5,0,5,0) | |
| 1762 | if curpart == nil then | |
| 1763 | lastgui.Adornee = workspace | |
| 1764 | lastgui.StudsOffsetWorldSpace = curpoint | |
| 1765 | else | |
| 1766 | lastgui.Adornee = curpart | |
| 1767 | end | |
| 1768 | local cross = Instance.new('ImageLabel',lastgui)
| |
| 1769 | cross.BackgroundTransparency = 1 | |
| 1770 | cross.Size = UDim2.new(1,0,1,0) | |
| 1771 | cross.Image = 'rbxassetid://316279304' | |
| 1772 | for i,v in pairs(zombies) do | |
| 1773 | if v:FindFirstChildOfClass('Humanoid') then
| |
| 1774 | v:FindFirstChildOfClass('Humanoid').WalkToPoint = curpoint
| |
| 1775 | end | |
| 1776 | end | |
| 1777 | else | |
| 1778 | for i,v in pairs(zombies) do | |
| 1779 | if v:FindFirstChildOfClass('Humanoid') and v:FindFirstChild('Head') then
| |
| 1780 | v:FindFirstChildOfClass('Humanoid').WalkToPoint = v.Head.Position
| |
| 1781 | end | |
| 1782 | end | |
| 1783 | end | |
| 1784 | end) | |
| 1785 | coru2() | |
| 1786 | wait() | |
| 1787 | end |