Advertisement
iiJosephCats205

Zombie

Nov 7th, 2019
4,202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.72 KB | None | 0 0
  1. --By iiJoeCats (This is supposed to be for Halloween.)
  2. --//BO NOT EDIT WHAT IS UNDER THIS UNLESS YOU KNOW WHAT YOUR DOING\\--
  3. repeat wait(1) until game.Players.LocalPlayer
  4. print("Running...")
  5. local player = game.Players.LocalPlayer
  6. local mouse = player:GetMouse()
  7. local UIS = game:GetService("UserInputService")
  8. local character = player.Character
  9. local run = game:GetService("RunService")
  10. local TweenS = game:GetService("TweenService")
  11. local runS = run.RenderStepped
  12. local maincolor = BrickColor.new("Camo")
  13. local attack = false
  14. local hum = character:FindFirstChildOfClass("Humanoid")
  15. local rArm = character["Right Arm"]
  16. local lArm = character["Left Arm"]
  17. local rLeg = character["Right Leg"]
  18. local lLeg = character["Left Leg"]
  19. local tors = character.Torso
  20. local hed = character.Head
  21. local root = character.HumanoidRootPart
  22. local rootj = root.RootJoint
  23. local op = false
  24. Instance.new("BoolValue",character).Name = "Zombie"
  25. local names = {
  26.     "oof",
  27.     "wow",
  28.     "OwO",
  29.     "memes",
  30.     "dedXD",
  31.     "baby-shark",
  32.     "wasted",
  33.     "whostoleyourmomscokeandjustgothigh",
  34.     "furry",
  35.     "iburryguts",
  36.     "fortnite",
  37.     "BOI",
  38.     "yodahitsthebooftoohardandfukingdiesXD"
  39. }
  40. function removeItem(item,timer)
  41.     game:GetService("Debris"):AddItem(item,timer)
  42. end
  43. function morph()
  44.     local bc = character:FindFirstChildOfClass("BodyColors")
  45.     if bc then
  46.         bc.HeadColor = maincolor
  47.         bc.LeftArmColor = maincolor
  48.         bc.RightArmColor = maincolor
  49.         bc.LeftLegColor = maincolor
  50.         bc.RightLegColor = maincolor
  51.         bc.TorsoColor = maincolor
  52.     else
  53.         local newBc = Instance.new("BodyColors",character)
  54.         newBc.HeadColor = maincolor
  55.         newBc.LeftArmColor = maincolor
  56.         newBc.RightArmColor = maincolor
  57.         newBc.LeftLegColor = maincolor
  58.         newBc.RightLegColor = maincolor
  59.         newBc.TorsoColor = maincolor
  60.     end
  61. end
  62. spawn(function()
  63.     morph()
  64. end)
  65. hum.WalkSpeed = 20
  66. local raWeld = Instance.new("Weld",tors)
  67. raWeld.Part0 = tors
  68. raWeld.Part1 = rArm
  69. raWeld.C0 = CFrame.new(1.5,.5,-.5) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(0),math.rad(0))
  70. local laWeld = Instance.new("Weld",tors)
  71. laWeld.Part0 = tors
  72. laWeld.Part1 = lArm
  73. laWeld.C0 = CFrame.new(-1.5,.5,-.5) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(0),math.rad(0))
  74. local theme = Instance.new("Sound",character)
  75. theme.SoundId = "rbxassetid://1722896592"
  76. theme.Volume = 1
  77. theme.PlaybackSpeed = 1.01
  78. theme.Looped = true
  79. theme.MaxDistance = 5000
  80. theme:Play()
  81. function maul()
  82.     local hedWeld = Instance.new("Weld",tors)
  83.     hedWeld.Part0 = tors
  84.     hedWeld.Part1 = hed
  85.     hedWeld.C0 = CFrame.new(0,1.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(0))
  86.     for i = 0,1,0.29 do
  87.         runS:wait()
  88.         raWeld.C0 = raWeld.C0:lerp(CFrame.new(0.9,1.35,-.75) * CFrame.fromEulerAnglesXYZ(math.rad(135),math.rad(0),math.rad(-35)),i)
  89.         laWeld.C0 = laWeld.C0:lerp(CFrame.new(-0.9,1.35,-.75) * CFrame.fromEulerAnglesXYZ(math.rad(135),math.rad(0),math.rad(35)),i)
  90.         hedWeld.C0 = hedWeld.C0:lerp(CFrame.new(0,1.5,.45) * CFrame.fromEulerAnglesXYZ(math.rad(45),math.rad(0),math.rad(0)),i)
  91.     end
  92.     wait(0.25)
  93.     for i = 0,0.86,0.3 do
  94.         runS:wait()
  95.         raWeld.C0 = raWeld.C0:lerp(CFrame.new(0.9,0.15,-.75) * CFrame.fromEulerAnglesXYZ(math.rad(20),math.rad(0),math.rad(-35)),i)
  96.         laWeld.C0 = laWeld.C0:lerp(CFrame.new(-0.9,0.15,-.75) * CFrame.fromEulerAnglesXYZ(math.rad(20),math.rad(0),math.rad(35)),i)
  97.         hedWeld.C0 = hedWeld.C0:lerp(CFrame.new(0,1.5,-.41) * CFrame.fromEulerAnglesXYZ(math.rad(-35),math.rad(0),math.rad(0)),i)
  98.     end
  99.     local function touched(prt)
  100.         local humn = prt.Parent:FindFirstChildOfClass("Humanoid")
  101.         if humn then
  102.             local suspect = humn.Parent
  103.             if suspect then
  104.                 if humn.Health > 0 then
  105.                     local val = suspect:FindFirstChildOfClass("BinaryStringValue")
  106.                     local secondVal = suspect:FindFirstChild("Zombie")
  107.                     if not val then
  108.                         Instance.new("BinaryStringValue",suspect).Name = names[math.random(1, #names)]
  109.                         spawn(function()
  110.                             if op == false then
  111.                                 humn:TakeDamage(math.random(15,20))
  112.                             else
  113.                                 suspect:BreakJoints()  
  114.                             end
  115.                             local sound = Instance.new("Sound",suspect)
  116.                             sound.SoundId = "rbxassetid://131237241"
  117.                             sound.Volume = 10
  118.                             sound.MaxDistance = 1000
  119.                             sound:Play()
  120.                             removeItem(sound,1.4)
  121.                             for i = 1,6 do
  122.                                 local bld = Instance.new("Part",suspect)
  123.                                 bld.BrickColor = BrickColor.new("Maroon")
  124.                                 bld.Material = Enum.Material.Glass
  125.                                 bld.Transparency = 0.45
  126.                                 bld.Reflectance = 0.75
  127.                                 bld.Size = Vector3.new(math.random(1,2),0.05,math.random(1,2))
  128.                                 bld.TopSurface = Enum.SurfaceType.Smooth
  129.                                 bld.BottomSurface = Enum.SurfaceType.Smooth
  130.                                 bld.Position = suspect.Head.Position + Vector3.new(math.random(-3,3),0,math.random(-3,3))
  131.                                 removeItem(bld,1.2)
  132.                             end
  133.                         end)
  134.                         wait(0.5)
  135.                         suspect:FindFirstChildOfClass("BinaryStringValue"):Destroy()
  136.                     else
  137.                         --nothing
  138.                     end
  139.                 end
  140.             end
  141.         end
  142.     end
  143.     local touch = rArm.Touched:Connect(touched)
  144.     local touch2 = lArm.Touched:Connect(touched)
  145.     wait(0.1)
  146.     for i = 0,1,0.25 do
  147.         runS:wait()
  148.         raWeld.C0 = raWeld.C0:lerp(CFrame.new(1.5,.5,-.5) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(0),math.rad(0)),i)
  149.         laWeld.C0 = laWeld.C0:lerp(CFrame.new(-1.5,.5,-.5) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(0),math.rad(0)),i)
  150.         hedWeld.C0 = hedWeld.C0:lerp(CFrame.new(0,1.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(0)),i)
  151.     end
  152.     wait(0.1)
  153.     touch:Disconnect()
  154.     touch2:Disconnect()
  155.     hedWeld:Destroy()
  156. end
  157. mouse.KeyDown:Connect(function(key)
  158.     if not attack then
  159.         if key == "q" then
  160.             attack = true
  161.             maul()
  162.             attack = false
  163.         end
  164.         if key == "f" and player.Name == "iiJoeCats" then
  165.             op = not op
  166.         end
  167.     end
  168.     if key == "e" then
  169.         theme.Playing = not theme.Playing
  170.     end
  171. end)
  172. while runS:wait() do
  173.     if run:IsClient() then
  174.         --local
  175.         workspace.CurrentCamera.FieldOfView = 70 + theme.PlaybackLoudness / 100
  176.     else
  177.         --server   
  178.     end
  179. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement