Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end
- print("FE Compatibility: by WaverlyCole & Mokiros")
- InternalData = {}
- do
- script.Parent = owner.Character
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput"
- local function NewFakeEvent()
- local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect
- return Fake
- end
- local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
- local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
- local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
- self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
- end};ContextActionService.UnBindAction = ContextActionService.BindAction
- local function TriggerEvent(self,Event,...)
- local Trigger = Mouse[Event]
- if Trigger and Trigger.fakeEvent and Trigger.Function then
- Trigger.Function(...)
- end
- end
- Mouse.TrigEvent = TriggerEvent
- UserInputService.TrigEvent = TriggerEvent
- Event.OnServerEvent:Connect(function(FiredBy,Input)
- if FiredBy.Name ~= owner.Name then end
- if Input.MouseEvent then
- Mouse.Target = Input.Target
- Mouse.Hit = Input.Hit
- else
- local Begin = Input.UserInputState == Enum.UserInputState.Begin
- if Input.UserInputType == Enum.UserInputType.MouseButton1 then
- return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up")
- end
- for _,Action in pairs(ContextActionService.Actions) do
- for _,Key in pairs(Action.Keys) do
- if Key==Input.KeyCode then
- Action.Function(Action.Name,Input.UserInputState,Input)
- end
- end
- end
- Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
- UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
- end
- end)
- InternalData["Mouse"] = Mouse
- InternalData["ContextActionService"] = ContextActionService
- InternalData["UserInputService"] = UserInputService
- Event.Parent = NLS([[
- local Player = owner
- local Event = script:WaitForChild("UserInput")
- local UserInputService = game:GetService("UserInputService")
- local Mouse = Player:GetMouse()
- local Input = function(Input,gameProcessedEvent)
- if gameProcessedEvent then return end
- Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
- end
- UserInputService.InputBegan:Connect(Input)
- UserInputService.InputEnded:Connect(Input)
- local Hit,Target
- while wait(1/30) do
- if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
- Hit,Target = Mouse.Hit,Mouse.Target
- Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
- end
- end
- ]],owner.Character)
- end
- RealGame = game;game = setmetatable({},{
- __index = function (self,Index)
- local Sandbox = function (Thing)
- if Thing:IsA("Player") then
- local RealPlayer = Thing
- return setmetatable({},{
- __index = function (self,Index)
- local Type = type(RealPlayer[Index])
- if Type == "function" then
- if Index:lower() == "getmouse" or Index:lower() == "mouse" then
- return function (self)
- return InternalData["Mouse"]
- end
- end
- return function (self,...)
- return RealPlayer[Index](RealPlayer,...)
- end
- else
- if Index == "PlrObj" then
- return RealPlayer
- end
- return RealPlayer[Index]
- end
- end;
- __tostring = function(self)
- return RealPlayer.Name
- end
- })
- end
- end
- if RealGame[Index] then
- local Type = type(RealGame[Index])
- if Type == "function" then
- if Index:lower() == "getservice" or Index:lower() == "service" then
- return function (self,Service)
- if Service:lower() == "players" then
- return setmetatable({},{
- __index = function (self2,Index2)
- local RealService = RealGame:GetService(Service)
- local Type2 = type(Index2)
- if Type2 == "function" then
- return function (self,...)
- return RealService[Index2](RealService,...)
- end
- else
- if Index2:lower() == "localplayer" then
- return Sandbox(owner)
- end
- return RealService[Index2]
- end
- end;
- __tostring = function(self)
- return RealGame:GetService(Service).Name
- end
- })
- elseif Service:lower() == "contextactionservice" then
- return InternalData["ContextActionService"]
- elseif Service:lower() == "contextactionservice" then
- return InternalData["UserInputService"]
- elseif Service:lower() == "runservice" then
- return setmetatable({},{
- __index = function(self2,Index2)
- local RealService = RealGame:GetService(Service)
- local Type2 = type(Index2)
- if Type2 == "function" then
- return function (self,...)
- return RealService[Index2](RealService,...)
- end
- else
- if Index2:lower() == "bindtorenderstep" then
- return function (self,Name,Priority,Function)
- return RealGame:GetService("RunService").Stepped:Connect(Function)
- end
- end
- if Index2:lower() == "renderstepped" then
- return RealService["Stepped"]
- end
- return RealService[Index2]
- end
- end
- })
- else
- return RealGame:GetService(Service)
- end
- end
- end
- return function (self,...)
- return RealGame[Index](RealGame,...)
- end
- else
- if game:GetService(Index) then
- return game:GetService(Index)
- end
- return RealGame[Index]
- end
- else
- return nil
- end
- end
- });Game = game;owner = game:GetService("Players").LocalPlayer;script = {}
- print("Complete! Running... This made by Rufus But Converted by Zach")
- wait(2)
- script.Parent = nil
- mouse = game.Players.LocalPlayer:GetMouse()
- local aaabegone = Instance.new("Sound", workspace)
- aaabegone.SoundId = "rbxassetid://131057316"
- aaabegone.Volume = 10
- aaabegone:Play()
- print("Script by Rufus14 Showcase by purpleguy2playZ")
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Model0 = Instance.new("Model")
- Part1 = Instance.new("Part")
- SpecialMesh2 = Instance.new("SpecialMesh")
- Decal3 = Instance.new("Decal")
- Part4 = Instance.new("Part")
- Decal5 = Instance.new("Decal")
- RightShoulder = Instance.new("Motor")
- LeftShoulder = Instance.new("Motor")
- RightHip = Instance.new("Motor")
- LeftHip = Instance.new("Motor")
- Neck = Instance.new("Motor")
- Part11 = Instance.new("Part")
- Part12 = Instance.new("Part")
- Part13 = Instance.new("Part")
- Part14 = Instance.new("Part")
- Humanoid15 = Instance.new("Humanoid")
- Model0.Name = "Scp-008 Infected"
- Model0.Parent = mas
- Model0.PrimaryPart = Part1
- Part1.Name = "Head"
- Part1.Parent = Model0
- Part1.BrickColor = BrickColor.new("Really black")
- Part1.FormFactor = Enum.FormFactor.Symmetric
- Part1.Size = Vector3.new(2, 1, 1)
- Part1.CFrame = CFrame.new(-0.700021029, 4.49999905, 2.99999809, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.Color = Color3.new(0.0588235, 0.258824, 0.00392157)
- Part1.Position = Vector3.new(-0.700021029, 4.49999905, 2.99999809)
- Part1.Color = Color3.new(0.0588235, 0.258824, 0.00392157)
- SpecialMesh2.Parent = Part1
- SpecialMesh2.Scale = Vector3.new(1.25, 1.25, 1.25)
- SpecialMesh2.Scale = Vector3.new(1.25, 1.25, 1.25)
- Decal3.Name = "face"
- Decal3.Parent = Part1
- Decal3.Texture = "http://www.roblox.com/asset/?id=51827997"
- Part4.Name = "Torso"
- Part4.Parent = Model0
- Part4.BrickColor = BrickColor.new("Black")
- Part4.FormFactor = Enum.FormFactor.Symmetric
- Part4.Size = Vector3.new(2, 2, 1)
- Part4.CFrame = CFrame.new(-0.700021029, 2.99999905, 2.99999809, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part4.LeftSurface = Enum.SurfaceType.Weld
- Part4.RightSurface = Enum.SurfaceType.Weld
- Part4.Color = Color3.new(0.0156863, 0.14902, 0.243137)
- Part4.Position = Vector3.new(-0.700021029, 2.99999905, 2.99999809)
- Part4.Color = Color3.new(0.0156863, 0.14902, 0.243137)
- Decal5.Name = "roblox"
- Decal5.Parent = Part4
- RightShoulder.Name = "Right Shoulder"
- RightShoulder.Parent = Part4
- RightShoulder.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- RightShoulder.Part0 = Part4
- RightShoulder.Part1 = Part12
- RightShoulder.MaxVelocity = 0.15000000596046
- LeftShoulder.Name = "Left Shoulder"
- LeftShoulder.Parent = Part4
- LeftShoulder.C0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- LeftShoulder.Part0 = Part4
- LeftShoulder.Part1 = Part11
- LeftShoulder.MaxVelocity = 0.15000000596046
- RightHip.Name = "Right Hip"
- RightHip.Parent = Part4
- RightHip.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- RightHip.Part0 = Part4
- RightHip.Part1 = Part14
- RightHip.MaxVelocity = 0.10000000149012
- LeftHip.Name = "Left Hip"
- LeftHip.Parent = Part4
- LeftHip.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- LeftHip.Part0 = Part4
- LeftHip.Part1 = Part13
- LeftHip.MaxVelocity = 0.10000000149012
- Neck.Name = "Neck"
- Neck.Parent = Part4
- Neck.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Neck.Part0 = Part4
- Neck.Part1 = Part1
- Neck.MaxVelocity = 0.10000000149012
- Part11.Name = "Left Arm"
- Part11.Parent = Model0
- Part11.BrickColor = BrickColor.new("Maroon")
- Part11.CanCollide = false
- Part11.FormFactor = Enum.FormFactor.Symmetric
- Part11.Size = Vector3.new(1, 2, 1)
- Part11.CFrame = CFrame.new(-2.20002103, 2.99999905, 2.99999809, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part11.Color = Color3.new(0.309804, 0.00392157, 0.00392157)
- Part11.Position = Vector3.new(-2.20002103, 2.99999905, 2.99999809)
- Part11.Color = Color3.new(0.309804, 0.00392157, 0.00392157)
- Part12.Name = "Right Arm"
- Part12.Parent = Model0
- Part12.BrickColor = BrickColor.new("Earth green")
- Part12.CanCollide = false
- Part12.FormFactor = Enum.FormFactor.Symmetric
- Part12.Size = Vector3.new(1, 2, 1)
- Part12.CFrame = CFrame.new(0.799978971, 2.99999905, 2.99999809, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part12.Color = Color3.new(0.0666667, 0.290196, 0.0156863)
- Part12.Position = Vector3.new(0.799978971, 2.99999905, 2.99999809)
- Part12.Color = Color3.new(0.0666667, 0.290196, 0.0156863)
- Part13.Name = "Left Leg"
- Part13.Parent = Model0
- Part13.BrickColor = BrickColor.new("Earth yellow")
- Part13.CanCollide = false
- Part13.FormFactor = Enum.FormFactor.Symmetric
- Part13.Size = Vector3.new(1, 2, 1)
- Part13.CFrame = CFrame.new(-1.20002103, 0.999999046, 2.99999809, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part13.BottomSurface = Enum.SurfaceType.Smooth
- Part13.TopSurface = Enum.SurfaceType.Inlet
- Part13.Color = Color3.new(0.396078, 0.454902, 0.168627)
- Part13.Position = Vector3.new(-1.20002103, 0.999999046, 2.99999809)
- Part13.Color = Color3.new(0.396078, 0.454902, 0.168627)
- Part14.Name = "Right Leg"
- Part14.Parent = Model0
- Part14.BrickColor = BrickColor.new("Earth yellow")
- Part14.CanCollide = false
- Part14.FormFactor = Enum.FormFactor.Symmetric
- Part14.Size = Vector3.new(1, 2, 1)
- Part14.CFrame = CFrame.new(-0.200021029, 0.999999046, 2.99999809, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part14.BottomSurface = Enum.SurfaceType.Smooth
- Part14.TopSurface = Enum.SurfaceType.Inlet
- Part14.Color = Color3.new(0.396078, 0.454902, 0.168627)
- Part14.Position = Vector3.new(-0.200021029, 0.999999046, 2.99999809)
- Part14.Color = Color3.new(0.396078, 0.454902, 0.168627)
- Humanoid15.Parent = Model0
- Humanoid15.NameOcclusion = Enum.NameOcclusion.NoOcclusion
- Humanoid15.RightLeg = Part14
- Humanoid15.LeftLeg = Part13
- Humanoid15.Torso = Part4
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- local zombiebool = Instance.new("BoolValue", Model0)
- zombiebool.Name = "ImAZombie"
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- ded4 = Instance.new("Sound")
- ded3 = Instance.new("Sound")
- ded2 = Instance.new("Sound")
- attacc1 = Instance.new("Sound")
- attacc = Instance.new("Sound")
- alldied = Instance.new("Sound")
- spawnz = Instance.new("Sound")
- ded1 = Instance.new("Sound")
- ded4.Name = "ded4"
- ded4.Parent = mas
- ded4.Volume = 10
- ded4.SoundId = "rbxassetid://131138845"
- ded3.Name = "ded3"
- ded3.Parent = mas
- ded3.Volume = 10
- ded3.SoundId = "rbxassetid://131138850"
- ded2.Name = "ded2"
- ded2.Parent = mas
- ded2.Volume = 10
- ded2.SoundId = "rbxassetid://131138839"
- attacc1.Name = "attacc1"
- attacc1.Parent = mas
- attacc1.Volume = 10
- attacc1.SoundId = "rbxassetid://131138835"
- attacc.Name = "attacc"
- attacc.Parent = mas
- attacc.Volume = 10
- attacc.SoundId = "rbxassetid://131138828"
- alldied.Name = "zombiedied"
- alldied.Parent = mas
- alldied.Volume = 10
- alldied.SoundId = "rbxassetid://131058078"
- spawnz.Name = "spawn1"
- spawnz.Parent = mas
- spawnz.Volume = 10
- spawnz.SoundId = "rbxassetid://131060194"
- ded1.Name = "ded1"
- ded1.Parent = mas
- ded1.Volume = 10
- ded1.SoundId = "rbxassetid://131138860"
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- randomvictim = nil
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Part0 = Instance.new("Part")
- Attachment1 = Instance.new("Attachment")
- humanoidrootpart = Instance.new("Motor6D")
- Part0.Name = "HumanoidRootPart"
- Part0.Parent = Model0
- Part0.Transparency = 1
- Part0.CanCollide = false
- Part0.Locked = true
- Part0.FormFactor = Enum.FormFactor.Symmetric
- Part0.Size = Vector3.new(2, 2, 1)
- Part0.CFrame = CFrame.new(0, 3, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part0.BottomSurface = Enum.SurfaceType.Smooth
- Part0.TopSurface = Enum.SurfaceType.Smooth
- Part0.Position = Vector3.new(0, 3, 0)
- Attachment1.Name = "RootAttachment"
- Attachment1.Parent = Part0
- humanoidrootpart.Name = "RootJoint"
- humanoidrootpart.Parent = Part0
- humanoidrootpart.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- humanoidrootpart.Part0 = Part0
- humanoidrootpart.Part1 = Part4
- humanoidrootpart.MaxVelocity = 0.10000000149012
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = Model0
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- spawnz:Play()
- Humanoid15.WalkSpeed = 17
- Humanoid15.MaxHealth = 500
- Humanoid15.Health = 500
- function diiiie()
- ded1:Play()
- local corpseclone = Humanoid15.Parent:Clone()
- for i,v in pairs(Humanoid15.Parent:GetChildren()) do
- if v.ClassName == "Part" then
- v:destroy()
- end
- end
- for i,v in pairs(Humanoid15.Parent:GetChildren()) do
- if v.ClassName == "LocalScript" or v.ClassName == "Script" then
- v:Remove()
- end
- end
- corpseclone.Parent = workspace
- local function serch(part)
- for i,v in pairs(part:GetChildren()) do
- serch(v)
- if v.Name == "Weld" or v.Name == "Motor6D" then
- v:Remove()
- end
- end
- end
- serch(corpseclone)
- corpseclone.Name = corpseclone.Name.." (Dead)"
- local glue = Instance.new("Glue", corpseclone.Torso)
- glue.Part0 = corpseclone.Torso
- glue.Part1 = corpseclone["Left Leg"]
- glue.Name = "Left leg"
- local collider = Instance.new("Part", corpseclone["Left Leg"])
- collider.Position = Vector3.new(0,999,0)
- collider.Size = Vector3.new(1.5, 1, 1)
- collider.Shape = "Cylinder"
- local weld = Instance.new("Weld", collider)
- weld.Part0 = corpseclone["Left Leg"]
- weld.Part1 = collider
- weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
- collider.TopSurface = "Smooth"
- collider.BottomSurface = "Smooth"
- collider.formFactor = "Symmetric"
- glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- collider.Transparency = 1
- --
- local glue = Instance.new("Glue", corpseclone.Torso)
- glue.Part0 = corpseclone.Torso
- glue.Part1 = corpseclone["Right Leg"]
- glue.Name = "Right leg"
- local collider = Instance.new("Part", corpseclone["Right Leg"])
- collider.Position = Vector3.new(0,999,0)
- collider.Size = Vector3.new(1.5, 1, 1)
- collider.Shape = "Cylinder"
- local weld = Instance.new("Weld", collider)
- weld.Part0 = corpseclone["Right Leg"]
- weld.Part1 = collider
- weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
- collider.TopSurface = "Smooth"
- collider.BottomSurface = "Smooth"
- collider.formFactor = "Symmetric"
- glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- collider.Transparency = 1
- --
- local glue = Instance.new("Glue", corpseclone.Torso)
- glue.Part0 = corpseclone.Torso
- glue.Part1 = corpseclone["Right Arm"]
- glue.Name = "Right arm"
- local collider = Instance.new("Part", corpseclone["Right Arm"])
- collider.Position = Vector3.new(0,999,0)
- collider.Size = Vector3.new(1.5, 1, 1)
- collider.Shape = "Cylinder"
- local weld = Instance.new("Weld", collider)
- weld.Part0 = corpseclone["Right Arm"]
- weld.Part1 = collider
- weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
- collider.TopSurface = "Smooth"
- collider.BottomSurface = "Smooth"
- collider.formFactor = "Symmetric"
- glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- collider.Transparency = 1
- --
- local glue = Instance.new("Glue", corpseclone.Torso)
- glue.Part0 = corpseclone.Torso
- glue.Part1 = corpseclone["Left Arm"]
- glue.Name = "Left arm"
- local collider = Instance.new("Part", corpseclone["Left Arm"])
- collider.Position = Vector3.new(0,999,0)
- collider.Size = Vector3.new(1.5, 1, 1)
- collider.Shape = "Cylinder"
- local weld = Instance.new("Weld", collider)
- weld.Part0 = corpseclone["Left Arm"]
- weld.Part1 = collider
- weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
- collider.TopSurface = "Smooth"
- collider.BottomSurface = "Smooth"
- collider.formFactor = "Symmetric"
- glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- collider.Transparency = 1
- local findhead = corpseclone:findFirstChild("Head")
- if findhead and corpseclone.Torso:findFirstChild("NeckAttachment") then
- local attachment = Instance.new("Attachment", corpseclone.Head)
- attachment.Position = Vector3.new(0, -0.5, 0)
- attachment.Name = "lol"
- attachment.Visible = false
- corpseclone.Torso.NeckAttachment.Visible = false
- corpseclone.Torso.NeckAttachment.Position = corpseclone.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
- local ball = Instance.new("BallSocketConstraint", corpseclone)
- ball.Attachment0 = corpseclone.Torso.NeckAttachment
- ball.Attachment1 = attachment
- ball.LimitsEnabled = true
- ball.TwistLimitsEnabled = true
- ball.UpperAngle = 90
- ball.Restitution = 0.5
- ball.TwistUpperAngle = 90
- ball.TwistLowerAngle = -90
- local collidepartofleftleg = Instance.new("Part", corpseclone.Torso)
- collidepartofleftleg.Name = "Bone"
- collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
- collidepartofleftleg.Transparency = 1
- collidepartofleftleg:BreakJoints()
- local weeld = Instance.new("Weld", collidepartofleftleg)
- weeld.Part0 = collidepartofleftleg
- weeld.Part1 = corpseclone["Head"]
- if corpseclone.Torso:findFirstChild("Neck") then
- corpseclone.Torso.Neck:destroy()
- end
- end
- wait(10)
- corpseclone:destroy()
- end
- Humanoid15.Died:connect(diiiie)
- for i = 0,1 , 0.03 do
- Neck.C0 = Neck.C0:lerp(CFrame.new(0, 1.4826355, -0.0984807983, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),i)
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, -0.0174310207, 0.199238777, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736):inverse(),i)
- RightHip.C0 = RightHip.C0:lerp(CFrame.new(0.5, -2, -0.299999982, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736),i)
- LeftHip.C0 = LeftHip.C0:lerp(CFrame.new(-0.5, -2, -0.299999982, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736),i)
- LeftShoulder.C0 = LeftShoulder.C0:lerp(CFrame.new(-1.5, -0.0999999046, -0.400000006, 1, 0, 0, 0, 0.906307876, -0.422617942, 0, 0.422617942, 0.906307876),i)
- RightShoulder.C0 = RightShoulder.C0:lerp(CFrame.new(1.5, -0.0999999046, -0.400000006, 1, 0, 0, 0, 0.906307876, -0.422617942, 0, 0.422617942, 0.906307876),i)
- game:GetService("RunService").RenderStepped:wait()
- end
- canattacc = true
- function search()
- for i,v in pairs(workspace:GetChildren()) do
- if v.ClassName == "Model" then
- local humanoid = v:findFirstChildOfClass("Humanoid")
- local torso = v:findFirstChild("Torso")
- local imzomb = v:findFirstChild("ImAZombie")
- if humanoid and torso then
- if imzomb then
- else
- randomvictim = torso
- end
- end
- end
- end
- print("Found: "..randomvictim.Parent.Name)
- end
- search()
- function attaccing(part)
- local humanoid = part.Parent:findFirstChildOfClass("Humanoid")
- local torso = part.Parent:findFirstChild("Torso")
- local ImAZombie = part.Parent:findFirstChild("ImAZombie")
- if humanoid and canattacc and not ImAZombie then
- if humanoid.Health >= 600 then
- humanoid.MaxHealth = 100
- humanoid.Health = 100
- end
- local dmgrandom = math.random(46,90)
- if humanoid.Health < dmgrandom and humanoid.Health > 0 then
- humanoid.PlatformStand = true
- local zombiebool = Instance.new("BoolValue", torso.Parent)
- zombiebool.Name = "ImAZombie"
- search()
- humanoid.PlatformStand = true
- if torso then
- torso.CFrame = torso.CFrame * CFrame.fromEulerAnglesXYZ(0,0,1)
- end
- wait(1.5)
- if torso then
- local spawnzz = spawnz:Clone()
- spawnzz.Parent = torso
- spawnzz:Play()
- end
- humanoid.PlatformStand = false
- humanoid.Parent.Archivable = true
- humanoid.WalkSpeed = 17
- humanoid.MaxHealth = 400
- humanoid.Health = 400
- local zombieclone = humanoid.Parent:Clone()
- zombieclone.Name = zombieclone.Name.." (Scp-008 Infected)"
- zombieclone.Parent = workspace
- local dedth = ded1:Clone()
- dedth.Parent = zombieclone.Head
- local dedth1 = ded2:Clone()
- dedth1.Parent = zombieclone.Head
- local dedth2 = ded3:Clone()
- dedth2.Parent = zombieclone.Head
- local dedth3 = ded4:Clone()
- dedth3.Parent = zombieclone.Head
- zombieclone.Torso.Touched:connect(attaccing)
- local function di3()
- local diemath = math.random(1,4)
- if diemath == 1 then
- dedth:Play()
- end
- if diemath == 2 then
- dedth1:Play()
- end
- if diemath == 3 then
- dedth2:Play()
- end
- if diemath == 4 then
- dedth3:Play()
- end
- local corpseclone = zombieclone:Clone()
- for i,v in pairs(zombieclone:GetChildren()) do
- if v.ClassName == "Part" then
- v:destroy()
- end
- end
- for i,v in pairs(zombieclone:GetChildren()) do
- if v.ClassName == "LocalScript" or v.ClassName == "Script" then
- v:Remove()
- end
- end
- corpseclone.Humanoid.PlatformStand = true
- corpseclone.Parent = workspace
- local function serch(part)
- for i,v in pairs(part:GetChildren()) do
- serch(v)
- if v.Name == "Weld" or v.Name == "Motor6D" then
- v:Remove()
- end
- end
- end
- serch(corpseclone)
- local glue = Instance.new("Glue", corpseclone.Torso)
- glue.Part0 = corpseclone.Torso
- glue.Part1 = corpseclone["Left Leg"]
- glue.Name = "Left leg"
- local collider = Instance.new("Part", corpseclone["Left Leg"])
- collider.Position = Vector3.new(0,999,0)
- collider.Size = Vector3.new(1.5, 1, 1)
- collider.Shape = "Cylinder"
- local weld = Instance.new("Weld", collider)
- weld.Part0 = corpseclone["Left Leg"]
- weld.Part1 = collider
- weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
- collider.TopSurface = "Smooth"
- collider.BottomSurface = "Smooth"
- collider.formFactor = "Symmetric"
- glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- collider.Transparency = 1
- --
- local glue = Instance.new("Glue", corpseclone.Torso)
- glue.Part0 = corpseclone.Torso
- glue.Part1 = corpseclone["Right Leg"]
- glue.Name = "Right leg"
- local collider = Instance.new("Part", corpseclone["Right Leg"])
- collider.Position = Vector3.new(0,999,0)
- collider.Size = Vector3.new(1.5, 1, 1)
- collider.Shape = "Cylinder"
- local weld = Instance.new("Weld", collider)
- weld.Part0 = corpseclone["Right Leg"]
- weld.Part1 = collider
- weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
- collider.TopSurface = "Smooth"
- collider.BottomSurface = "Smooth"
- collider.formFactor = "Symmetric"
- glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- collider.Transparency = 1
- --
- local glue = Instance.new("Glue", corpseclone.Torso)
- glue.Part0 = corpseclone.Torso
- glue.Part1 = corpseclone["Right Arm"]
- glue.Name = "Right arm"
- local collider = Instance.new("Part", corpseclone["Right Arm"])
- collider.Position = Vector3.new(0,999,0)
- collider.Size = Vector3.new(1.5, 1, 1)
- collider.Shape = "Cylinder"
- local weld = Instance.new("Weld", collider)
- weld.Part0 = corpseclone["Right Arm"]
- weld.Part1 = collider
- weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
- collider.TopSurface = "Smooth"
- collider.BottomSurface = "Smooth"
- collider.formFactor = "Symmetric"
- glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- collider.Transparency = 1
- --
- local glue = Instance.new("Glue", corpseclone.Torso)
- glue.Part0 = corpseclone.Torso
- glue.Part1 = corpseclone["Left Arm"]
- glue.Name = "Left arm"
- local collider = Instance.new("Part", corpseclone["Left Arm"])
- collider.Position = Vector3.new(0,999,0)
- collider.Size = Vector3.new(1.5, 1, 1)
- collider.Shape = "Cylinder"
- local weld = Instance.new("Weld", collider)
- weld.Part0 = corpseclone["Left Arm"]
- weld.Part1 = collider
- weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
- collider.TopSurface = "Smooth"
- collider.BottomSurface = "Smooth"
- collider.formFactor = "Symmetric"
- glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- collider.Transparency = 1
- local findhead = corpseclone:findFirstChild("Head")
- if findhead and corpseclone.Torso:findFirstChild("NeckAttachment") then
- local attachment = Instance.new("Attachment", corpseclone.Head)
- attachment.Position = Vector3.new(0, -0.5, 0)
- attachment.Name = "lol"
- attachment.Visible = false
- corpseclone.Torso.NeckAttachment.Visible = false
- corpseclone.Torso.NeckAttachment.Position = corpseclone.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
- local ball = Instance.new("BallSocketConstraint", corpseclone)
- ball.Attachment0 = corpseclone.Torso.NeckAttachment
- ball.Attachment1 = attachment
- ball.LimitsEnabled = true
- ball.TwistLimitsEnabled = true
- ball.UpperAngle = 90
- ball.Restitution = 0.5
- ball.TwistUpperAngle = 90
- ball.TwistLowerAngle = -90
- local collidepartofleftleg = Instance.new("Part", corpseclone.Torso)
- collidepartofleftleg.Name = "Bone"
- collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
- collidepartofleftleg.Transparency = 1
- collidepartofleftleg:BreakJoints()
- local weeld = Instance.new("Weld", collidepartofleftleg)
- weeld.Part0 = collidepartofleftleg
- weeld.Part1 = corpseclone["Head"]
- if corpseclone.Torso:findFirstChild("Neck") then
- corpseclone.Torso.Neck:destroy()
- end
- end
- corpseclone.Name = corpseclone.Name.." (Dead)"
- wait(10)
- corpseclone:destroy()
- end
- zombieclone.Humanoid.Died:connect(di3)
- for i,v in pairs(humanoid.Parent:GetChildren()) do
- if v.ClassName == "Part" then
- v:destroy()
- end
- end
- wait(1)
- while true do
- if zombieclone.Humanoid.Health > 1 then
- if zombieclone.Parent == nil then
- zombieclone.Parent = workspace
- end
- end
- wait()
- end
- else
- canattacc = false
- local attaccramdom = math.random(1,2)
- if attaccramdom == 1 then
- attacc:Play()
- end
- if attaccramdom == 2 then
- attacc1:Play()
- end
- humanoid.Health = humanoid.Health - dmgrandom
- wait(0.8)
- canattacc = true
- end
- end
- end
- Part4.Touched:connect(attaccing)
- local run = Instance.new("Sound", workspace)
- run.SoundId = "rbxassetid://425903468"
- run:Play()
- run.Looped = true
- run.Volume = 10
- function clikd(key)
- key = key:lower()
- if key == "f" then
- local humanoid = mouse.Target.Parent:findFirstChild("Humanoid")
- local torso = mouse.Target.Parent:findFirstChild("Torso")
- if humanoid and torso then
- print("Picked "..mouse.Target.Parent.Name.." as a manual target")
- randomvictim = torso
- end
- end
- end
- mouse.KeyDown:connect(clikd)
- homanyzombies = 0
- -- Objects
- local ScreenGui = Instance.new("ScreenGui")
- local TextLabel = Instance.new("TextLabel")
- -- Properties
- ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui
- TextLabel.Parent = ScreenGui
- TextLabel.BackgroundColor3 = Color3.new(0, 0, 0)
- TextLabel.Position = UDim2.new(0.176427528, 0, 0.89121145, 0)
- TextLabel.Size = UDim2.new(0, 855, 0, 83)
- TextLabel.SizeConstraint = Enum.SizeConstraint.RelativeXX
- TextLabel.Font = Enum.Font.SourceSans
- TextLabel.FontSize = Enum.FontSize.Size14
- TextLabel.Text = "Scp-008 infected Alive: "
- TextLabel.TextColor3 = Color3.new(0.25098, 1, 0.0431373)
- TextLabel.TextScaled = true
- TextLabel.TextSize = 14
- TextLabel.TextWrapped = true
- while true do
- homanyzombies = 0
- for i,v in pairs(workspace:GetChildren()) do
- if v.ClassName == "Model" then
- local humanoid = v:findFirstChildOfClass("Humanoid")
- local imzomb = v:findFirstChild("ImAZombie")
- if humanoid and imzomb then
- if humanoid.Health >= 0.001 then
- homanyzombies = homanyzombies + 1
- TextLabel.Text = "Scp-008 Infected Alive: "..homanyzombies
- end
- end
- end
- end
- if homanyzombies == 0 then
- alldied:Play()
- run:Stop()
- TextLabel.Text = "Every zombie died!"
- wait(4)
- ScreenGui:destroy()
- while true do
- wait(3)
- end
- end
- for i,v in pairs(workspace:GetChildren()) do
- if v.ClassName == "Model" then
- local humanoid = v:findFirstChildOfClass("Humanoid")
- local imzomb = v:findFirstChild("ImAZombie")
- local torso = v:findFirstChild("Torso")
- if humanoid and imzomb and torso then
- if humanoid.Health > 0.01 then
- humanoid.WalkToPoint = randomvictim.Position
- for i = 0,0.6 , 0.1 do
- humanoid.WalkToPoint = randomvictim.Position
- if torso:findFirstChild("Right Hip") then
- torso["Right Hip"].C1 = CFrame.new(0,0,0)
- end
- if torso:findFirstChild("Left Hip") then
- torso["Left Hip"].C1 = CFrame.new(0,0,0)
- end
- if torso:findFirstChild("Right Shoulder") then
- torso["Right Shoulder"].C1 = CFrame.new(0,0,0)
- end
- if torso:findFirstChild("Left Shoulder") then
- torso["Left Shoulder"].C1 = CFrame.new(0,0,0)
- end
- --
- if torso:findFirstChild("Right Hip") then
- torso["Right Hip"].C0 = torso["Right Hip"].C0:lerp(CFrame.new(0.499992371, -1.87492192, 0.954907298, 1, 0, 0, 0, 0.819151878, 0.573576808, 0, -0.573576987, 0.819151878),i)
- end
- if torso:findFirstChild("Left Hip") then
- torso["Left Hip"].C0 = torso["Left Hip"].C0:lerp(CFrame.new(-0.500007629, -1.96685851, -0.799733043, 1, 0, 0, 0, 0.819151759, -0.573576927, 0, 0.573576868, 0.819151998),i)
- end
- if torso:findFirstChild("Right Shoulder") then
- torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0:lerp(CFrame.new(1.41486359, 0.409589052, -0.827155113, 1, 0, 0, 0, -8.94069672e-08, -1, 0, 1.00000012, 8.94069672e-08),i)
- end
- if torso:findFirstChild("Left Shoulder") then
- torso["Left Shoulder"].C0 = torso["Left Shoulder"].C0:lerp(CFrame.new(-1.50000763, 0.409590244, -0.901263297, 1, 0, 0, 0, -3.27825546e-07, -1, 0, 1.00000024, 3.27825575e-07),i)
- end
- game:GetService("RunService").RenderStepped:wait()
- end
- end
- end
- end
- end
- for i,v in pairs(workspace:GetChildren()) do
- if v.ClassName == "Model" then
- local humanoid = v:findFirstChildOfClass("Humanoid")
- local imzomb = v:findFirstChild("ImAZombie")
- local torso = v:findFirstChild("Torso")
- if humanoid and imzomb and torso then
- if humanoid.Health > 0.01 then
- humanoid.WalkToPoint = randomvictim.Position
- for i = 0,0.6 , 0.1 do
- humanoid.WalkToPoint = randomvictim.Position
- if torso:findFirstChild("Right Hip") then
- torso["Right Hip"].C1 = CFrame.new(0,0,0)
- end
- if torso:findFirstChild("Left Hip") then
- torso["Left Hip"].C1 = CFrame.new(0,0,0)
- end
- if torso:findFirstChild("Right Shoulder") then
- torso["Right Shoulder"].C1 = CFrame.new(0,0,0)
- end
- if torso:findFirstChild("Left Shoulder") then
- torso["Left Shoulder"].C1 = CFrame.new(0,0,0)
- end
- --
- if torso:findFirstChild("Right Hip") then
- torso["Right Hip"].C0 = torso["Right Hip"].C0:lerp(CFrame.new(0.5, -1.95895696, -0.881649196, 1, 0, 0, 0, 0.819151819, -0.573576868, 0, 0.573576868, 0.819151819),i)
- end
- if torso:findFirstChild("Left Hip") then
- torso["Left Hip"].C0 = torso["Left Hip"].C0:lerp(CFrame.new(-0.5, -1.97527182, 0.78138262, 1, 0, 0, 0, 0.819151819, 0.573576868, 0, -0.573576868, 0.819151819),i)
- end
- if torso:findFirstChild("Right Shoulder") then
- torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0:lerp(CFrame.new(1.41486359, 0.309589148, -0.82715553, 1, 0, 0, 0, -3.57627897e-07, -1, 0, 1.00000036, 3.57627897e-07),i)
- end
- if torso:findFirstChild("Left Shoulder") then
- torso["Left Shoulder"].C0 = torso["Left Shoulder"].C0:lerp(CFrame.new(-1.50000763, 0.309590578, -0.901263416, 1, 0, 0, 0, -2.68220901e-07, -1, 0, 1.00000024, 2.68220901e-07),i)
- end
- game:GetService("RunService").RenderStepped:wait()
- end
- end
- end
- end
- end
- if Humanoid15.Health > 1 then
- if Model0.Parent == nil then
- Model0.Parent = workspace
- end
- end
- if alldied.Parent == nil then
- alldied.Parent = workspace
- end
- if ded1.Parent == nil then
- ded1.Parent = workspace
- end
- if ded2.Parent == nil then
- ded2.Parent = workspace
- end
- if ded3.Parent == nil then
- ded3.Parent = workspace
- end
- if ded4.Parent == nil then
- ded4.Parent = workspace
- end
- if spawnz.Parent == nil then
- spawnz.Parent = workspace
- end
- if attacc.Parent == nil then
- attacc.Parent = workspace
- end
- if attacc1.Parent == nil then
- attacc1.Parent = workspace
- end
- if run.Parent == nil then
- run.Parent = workspace
- end
- wait()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement