Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mouse = game.Players.LocalPlayer:GetMouse()
- target = game.Players.LocalPlayer.Character.Torso
- local graphic = game.Players.LocalPlayer.Character:findFirstChild("Shirt Graphic")
- if graphic then
- graphicid = graphic.Graphic
- end
- caninfect = true
- invisible = false
- function targettool()
- local torso = mouse.Target.Parent:findFirstChild("Torso")
- local humanoid = mouse.Target.Parent:findFirstChild("Humanoid")
- if torso and humanoid then
- target = torso
- print("You are now targetting "..torso.Parent.Name)
- end
- end
- mouse.Button1Down:connect(targettool)
- function inv(key)
- if key == "q" then
- invisible = not invisible
- if invisible then
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 40
- for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if v.ClassName == "Part" then
- if v.Name == "HumanoidRootPart" then
- else
- v.Transparency = 1
- end
- end
- game.Players.LocalPlayer.Character.Head.face.Transparency = 1
- for q,w in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if w.ClassName == "Shirt Graphic" then
- w.Graphic = "rbxassetid://0"
- end
- end
- for e,r in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if r.ClassName == "Accessory" or r.ClassName == "Hat" then
- r.Handle.Transparency = 1
- end
- end
- end
- end
- if not invisible then
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
- for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if v.ClassName == "Part" then
- if v.Name == "HumanoidRootPart" then
- else
- v.Transparency = 0
- end
- end
- game.Players.LocalPlayer.Character.Head.face.Transparency = 0
- for q,w in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if w.ClassName == "Shirt Graphic" then
- w.Graphic = graphicid
- end
- end
- for e,r in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if r.ClassName == "Accessory" or r.ClassName == "Hat" then
- r.Handle.Transparency = 0
- end
- end
- end
- end
- end
- end
- mouse.KeyDown:connect(inv)
- function zawmbie(part)
- if part.Parent then
- torso = part.Parent:findFirstChild("Torso")
- humanoid = part.Parent:findFirstChild("Humanoid")
- end
- if caninfect and torso and humanoid ~= nil and part.Parent ~= nil then
- if torso.Parent.Name == "IM DEAD" then
- --nono
- else
- torso.Parent.Archivable = true
- local zombieclone = torso.Parent:Clone()
- zombieclone.Name = "IM DEAD"
- torso.Anchored = true
- humanoid.Health = 0
- for i,v in pairs(torso.Parent:GetChildren()) do
- if v.ClassName == "Part" then
- v.CFrame = v.CFrame * CFrame.new(0,50,0)
- v.Anchored = true
- v.Transparency = 1
- end
- if v.ClassName == "Hat" or v.ClassName == "Accessory" then
- v:destroy()
- end
- end
- local infectionsound = Instance.new("Sound", torso.Parent.Head)
- infectionsound.SoundId = "rbxassetid://144540754"
- infectionsound.Volume = 10
- infectionsound:Play()
- zombieclone.Parent = workspace.Base
- local function die()
- wait(5)
- zombieclone:destroy()
- end
- zombieclone.Humanoid.Died:connect(die)
- local face = zombieclone.Head:findFirstChild("face")
- zombieclone.Torso.CFrame = zombieclone.Torso.CFrame * CFrame.new(4,0,4)
- zombieclone.Humanoid.MaxHealth = humanoid.MaxHealth * 2
- zombieclone.Humanoid.Health = zombieclone.Humanoid.MaxHealth
- zombieclone.Humanoid.WalkSpeed = 1
- local rarmfornow = zombieclone.Torso:findFirstChild("Right Shoulder")
- local larmfornow = zombieclone.Torso:findFirstChild("Left Shoulder")
- if rarmfornow ~= nil then
- for i = 1,2 do
- wait()
- rarmfornow.C0 = rarmfornow.C0 * CFrame.Angles(0,0,0.09)
- end
- for i = 1,3 do
- wait()
- rarmfornow.C0 = rarmfornow.C0 * CFrame.Angles(0,0,0.11)
- end
- for i = 1,6 do
- wait()
- rarmfornow.C0 = rarmfornow.C0 * CFrame.Angles(0,0,0.12)
- end
- for i = 1,3 do
- wait()
- rarmfornow.C0 = rarmfornow.C0 * CFrame.Angles(0,0,0.11)
- end
- for i = 1,2 do
- wait()
- rarmfornow.C0 = rarmfornow.C0 * CFrame.Angles(0,0,0.09)
- end
- end
- if larmfornow ~= nil then
- for i = 1,2 do
- wait()
- larmfornow.C0 = larmfornow.C0 * CFrame.Angles(0,0,-0.09)
- end
- for i = 1,3 do
- wait()
- larmfornow.C0 = larmfornow.C0 * CFrame.Angles(0,0,-0.11)
- end
- for i = 1,6 do
- wait()
- larmfornow.C0 = larmfornow.C0 * CFrame.Angles(0,0,-0.12)
- end
- for i = 1,3 do
- wait()
- larmfornow.C0 = larmfornow.C0 * CFrame.Angles(0,0,-0.11)
- end
- for i = 1,2 do
- wait()
- larmfornow.C0 = larmfornow.C0 * CFrame.Angles(0,0,-0.09)
- end
- end
- wait(3)
- zombieclone.Torso.Touched:connect(zawmbie)
- canchange = true
- function change()
- if canchange then
- canchange = false
- ply = game.Players:GetPlayers()[math.random(game.Players.NumPlayers)]
- local plytorso = ply.Character:findFirstChild("Torso")
- local plyhumanoid = ply.Character:findFirstChild("Humanoid")
- if ply.Name == game.Players.LocalPlayer.Name or not plyhumanoid or not plytorso or plytorso.Transparency == 1 then
- change()
- else
- target = ply.Character.Torso
- print(target.Parent.Name)
- end
- wait(5)
- canchange = true
- end
- end
- zombieclone.Torso.Touched:connect(change)
- while true do
- wait()
- for i,v in pairs(game.Players:GetChildren()) do
- local char = v:findFirstChild("Character")
- if char ~= nil then
- local ws = v.Character:findFirstChild("Humanoid")
- if ws ~= nil then
- if ws.WalkSpeed >= 41 then
- ws.WalkSpeed = 16
- end
- end
- end
- end
- local targethum = target.Parent:findFirstChild("Humanoid")
- if targethum ~= nil then
- for i,v in pairs(workspace.Base:GetChildren()) do
- if v.ClassName == "Model" and v.Name == "IM DEAD" then
- if zombieclone.Humanoid.WalkSpeed <= 17 then
- zombieclone.Humanoid.WalkSpeed = zombieclone.Humanoid.WalkSpeed + 1
- end
- if zombieclone.Humanoid.WalkSpeed >= 17 then
- zombieclone.Humanoid.WalkSpeed = 17
- end
- v.Humanoid.WalkToPoint = target.Position
- local rleg = zombieclone.Torso:findFirstChild("Right Hip")
- local lleg = zombieclone.Torso:findFirstChild("Left Hip")
- if rleg ~= nil and lleg ~= nil then
- for i = 1,5 do
- wait()
- lleg.C0 = lleg.C0 * CFrame.Angles(0,0,0.13)
- rleg.C0 = rleg.C0 * CFrame.Angles(0,0,0.13)
- end
- v.Humanoid.WalkToPoint = target.Position
- for i = 1,10 do
- wait()
- lleg.C0 = lleg.C0 * CFrame.Angles(0,0,-0.13)
- rleg.C0 = rleg.C0 * CFrame.Angles(0,0,-0.13)
- end
- v.Humanoid.WalkToPoint = target.Position
- for i = 1,5 do
- wait()
- lleg.C0 = lleg.C0 * CFrame.Angles(0,0,0.13)
- rleg.C0 = rleg.C0 * CFrame.Angles(0,0,0.13)
- end
- end
- end
- end
- end
- end
- end
- end
- end
- game.Players.LocalPlayer.Character.Torso.Touched:connect(zawmbie)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement