Advertisement
LeGoldenRobloxian

SCP 049

Nov 26th, 2017
347
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 36.81 KB | None | 0 0
  1. Player=game:GetService("Players").dakota12123
  2. Character=Player.Character
  3.  
  4.  
  5. -------------------------------------------------------
  6. local Orbd = Instance.new("Part", Character)
  7. Orbd.Name = "Orbd"
  8. Orbd.Shape = Enum.PartType.Ball
  9. Orbd.CanCollide = false
  10. Orbd.BrickColor = BrickColor.new("Really black")
  11. Orbd.Transparency = 0
  12. Orbd.Material = "Neon"
  13. Orbd.Size = Vector3.new(0.3, 0.3, 0.3)
  14. Orbd.TopSurface = Enum.SurfaceType.Smooth
  15. Orbd.BottomSurface = Enum.SurfaceType.Smooth
  16.  
  17. local Weld = Instance.new("Weld", Orbd)
  18. Weld.Part0 = Character.Head
  19. Weld.Part1 = Orbd
  20. Weld.C1 = CFrame.new(-0.26, -0.24, 0.55)
  21.  
  22. --------------------------------------------------------
  23. local Orbvc = Instance.new("Part", Character)
  24. Orbvc.Name = "Orbvc"
  25. Orbvc.Shape = Enum.PartType.Ball
  26. Orbvc.CanCollide = false
  27. Orbvc.BrickColor = BrickColor.new("Really black")
  28. Orbvc.Transparency = 0
  29. Orbvc.Material = "Neon"
  30. Orbvc.Size = Vector3.new(0.3, 0.3, 0.3)
  31. Orbvc.TopSurface = Enum.SurfaceType.Smooth
  32. Orbvc.BottomSurface = Enum.SurfaceType.Smooth
  33.  
  34. local Weld = Instance.new("Weld", Orbvc)
  35. Weld.Part0 = Character.Head
  36. Weld.Part1 = Orbvc
  37. Weld.C1 = CFrame.new(0.26, -0.24, 0.55)
  38. ---------------------------------------------------------
  39. local Mask = Instance.new("Part", Character)
  40. Mask.Name = "Mask"
  41. Mask.CanCollide = false
  42. Mask.BrickColor = BrickColor.new("Mid gray")
  43. Mask.Transparency = 0
  44. Mask.Material = "Plastic"
  45. Mask.Size = Vector3.new(0.1, 0.1, 0.1)
  46. Mask.TopSurface = Enum.SurfaceType.Smooth
  47. Mask.BottomSurface = Enum.SurfaceType.Smooth
  48.  
  49. local Weld = Instance.new("Weld", Mask)
  50. Weld.Part0 = Character.Head
  51. Weld.Part1 = Mask
  52. Weld.C1 = CFrame.new(0, -0.1, 0.8)
  53.  
  54. local M1 = Instance.new("SpecialMesh")
  55. M1.Parent = Mask
  56. M1.MeshId = "http://www.roblox.com/asset/?id=62679079"
  57. M1.Scale = Vector3.new( 1, 1, 2)
  58. ----------------------------------------------------------
  59. local Hood = Instance.new("Part", Character)
  60. Hood.Name = "Hood"
  61. Hood.CanCollide = false
  62. Hood.BrickColor = BrickColor.new("Really black")
  63. Hood.Transparency = 0
  64. Hood.Material = "Plastic"
  65. Hood.Size = Vector3.new(0.1, 0.1, 0.1)
  66. Hood.TopSurface = Enum.SurfaceType.Smooth
  67. Hood.BottomSurface = Enum.SurfaceType.Smooth
  68.  
  69. local Weld = Instance.new("Weld", Hood)
  70. Weld.Part0 = Character.Head
  71. Weld.Part1 = Hood
  72. Weld.C1 = CFrame.new(0, -0.2, 0)
  73.  
  74. local M2 = Instance.new("SpecialMesh")
  75. M2.Parent = Hood
  76. M2.MeshId = "http://www.roblox.com/asset/?id=83499032"
  77. M2.Scale = Vector3.new( 1, 1.2, 1.1)
  78. ------------------------------------------------------
  79.  
  80. p = game.Players.battleman22222
  81. char049 = p.Character
  82.  
  83. char049.Shirt:Remove()
  84. for i,v in pairs(char049:GetChildren()) do if v:IsA("Pants") then v:Remove() end end
  85. wait()shirt = Instance.new("Shirt", char049)
  86. shirt.Name = "Shirt"
  87. pants = Instance.new("Pants", char049)
  88. pants.Name = "Pants"
  89.  
  90. char049.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=648758131"
  91. char049.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=472675863"
  92.  
  93.  
  94. -------------------------------------------------
  95. ---- Orbd,Orbvc,Mask,Hood
  96.  
  97. --[[NIGHTOWLACE_WEAPONRY]]--
  98. maincolor = game.Players.battleman22222.Character.Torso.BrickColor.Name
  99. secondcolor = "Really black"
  100.  
  101. wait(1 / 60)
  102. Effects = { }
  103. local Player = game.Players.battleman22222
  104. local Character = Player.Character
  105. local Humanoid = Character.Humanoid
  106. local mouse = Player:GetMouse()
  107. local LeftArm = Character["Left Arm"]
  108. local RightArm = Character["Right Arm"]
  109. local LeftLeg = Character["Left Leg"]
  110. local RightLeg = Character["Right Leg"]
  111. local Head = Character.Head
  112. local Torso = Character.Torso
  113. local cam = game.Workspace.CurrentCamera
  114. local RootPart = Character.HumanoidRootPart
  115. local RootJoint = RootPart.RootJoint
  116. local equipped = false
  117. local attack = false
  118. local Anim = 'Idle'
  119. local idle = 0
  120. local attacktype = 1
  121. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  122. local velocity = RootPart.Velocity.y
  123. local sine = 0
  124. local change = 1
  125. local grabbed = false
  126. local cn = CFrame.new
  127. local mr = math.rad
  128. local angles = CFrame.Angles
  129. local ud = UDim2.new
  130. local c3 = Color3.new
  131.  
  132. local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  133. Humanoid.Animator:Destroy()
  134. Character.Animate:Destroy()
  135.  
  136. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  137. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  138. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  139.  
  140. RSH, LSH = nil, nil
  141.  
  142. RW = Instance.new("Weld")
  143. LW = Instance.new("Weld")
  144.  
  145. RH = Torso["Right Hip"]
  146. LH = Torso["Left Hip"]
  147.  
  148. RSH = Torso["Right Shoulder"]
  149. LSH = Torso["Left Shoulder"]
  150.  
  151. RSH.Parent = nil
  152. LSH.Parent = nil
  153.  
  154. RW.Name = "RW"
  155. RW.Part0 = Torso
  156. RW.C0 = cn(1.5, 0.5, 0)
  157. RW.C1 = cn(0, 0.5, 0)
  158. RW.Part1 = RightArm
  159. RW.Parent = Torso
  160.  
  161. LW.Name = "LW"
  162. LW.Part0 = Torso
  163. LW.C0 = cn(-1.5, 0.5, 0)
  164. LW.C1 = cn(0, 0.5, 0)
  165. LW.Part1 = LeftArm
  166. LW.Parent = Torso
  167.  
  168. function clerp(a, b, t)
  169.     local qa = {
  170.         QuaternionFromCFrame(a)
  171.     }
  172.     local qb = {
  173.         QuaternionFromCFrame(b)
  174.     }
  175.     local ax, ay, az = a.x, a.y, a.z
  176.     local bx, by, bz = b.x, b.y, b.z
  177.     local _t = 1 - t
  178.     return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  179. end
  180.  
  181. function QuaternionFromCFrame(cf)
  182.     local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  183.     local trace = m00 + m11 + m22
  184.     if trace > 0 then
  185.         local s = math.sqrt(1 + trace)
  186.         local recip = 0.5 / s
  187.         return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  188.     else
  189.         local i = 0
  190.         if m11 > m00 then
  191.             i = 1
  192.         end
  193.         if m22 > (i == 0 and m00 or m11) then
  194.             i = 2
  195.         end
  196.         if i == 0 then
  197.             local s = math.sqrt(m00 - m11 - m22 + 1)
  198.             local recip = 0.5 / s
  199.             return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  200.         elseif i == 1 then
  201.             local s = math.sqrt(m11 - m22 - m00 + 1)
  202.             local recip = 0.5 / s
  203.             return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  204.         elseif i == 2 then
  205.             local s = math.sqrt(m22 - m00 - m11 + 1)
  206.             local recip = 0.5 / s
  207.             return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  208.         end
  209.     end
  210. end
  211.  
  212. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  213.     local xs, ys, zs = x + x, y + y, z + z
  214.     local wx, wy, wz = w * xs, w * ys, w * zs
  215.     local xx = x * xs
  216.     local xy = x * ys
  217.     local xz = x * zs
  218.     local yy = y * ys
  219.     local yz = y * zs
  220.     local zz = z * zs
  221.     return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  222. end
  223.  
  224. function QuaternionSlerp(a, b, t)
  225.     local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  226.     local startInterp, finishInterp;
  227.     if cosTheta >= 0.0001 then
  228.         if (1 - cosTheta) > 0.0001 then
  229.             local theta = math.acos(cosTheta)
  230.             local invSinTheta = 1 / math.sin(theta)
  231.             startInterp = math.sin((1 - t) * theta) * invSinTheta
  232.             finishInterp = math.sin(t * theta) * invSinTheta  
  233.         else
  234.             startInterp = 1 - t
  235.             finishInterp = t
  236.         end
  237.     else
  238.         if (1 + cosTheta) > 0.0001 then
  239.             local theta = math.acos(-cosTheta)
  240.             local invSinTheta = 1 / math.sin(theta)
  241.             startInterp = math.sin((t - 1) * theta) * invSinTheta
  242.             finishInterp = math.sin(t * theta) * invSinTheta
  243.         else
  244.             startInterp = t - 1
  245.             finishInterp = t
  246.         end
  247.     end
  248.     return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  249. end
  250.  
  251. function swait(num)
  252.     if num == 0 or num == nil then
  253.         game:service'RunService'.RenderStepped:wait(0)
  254.     else
  255.         for i = 0, num do
  256.             game:service'RunService'.RenderStepped:wait(0)
  257.         end
  258.     end
  259. end
  260.  
  261. local RbxUtility = LoadLibrary("RbxUtility")
  262. local Create = RbxUtility.Create
  263.  
  264. function RemoveOutlines(part)
  265.     part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  266. end
  267.    
  268. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  269.     local Part = Create("Part"){
  270.         formFactor = FormFactor,
  271.         Parent = Parent,
  272.         Reflectance = Reflectance,
  273.         Transparency = Transparency,
  274.         CanCollide = false,
  275.         Locked = true,
  276.         BrickColor = BrickColor.new(tostring(BColor)),
  277.         Name = Name,
  278.         Size = Size,
  279.         Material = Material,
  280.     }
  281.     RemoveOutlines(Part)
  282.     return Part
  283. end
  284.    
  285. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  286.     local Msh = Create(Mesh){
  287.         Parent = Part,
  288.         Offset = OffSet,
  289.         Scale = Scale,
  290.     }
  291.     if Mesh == "SpecialMesh" then
  292.         Msh.MeshType = MeshType
  293.         Msh.MeshId = MeshId
  294.     end
  295.     return Msh
  296. end
  297.    
  298. function CreateWeld(Parent, Part0, Part1, C0, C1)
  299.     local Weld = Create("Weld"){
  300.         Parent = Parent,
  301.         Part0 = Part0,
  302.         Part1 = Part1,
  303.         C0 = C0,
  304.         C1 = C1,
  305.     }
  306.     return Weld
  307. end
  308.  
  309. function rayCast(Position, Direction, Range, Ignore)
  310.     return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  311. end
  312.  
  313. function CreateSound(id, par, vol, pit)
  314.     coroutine.resume(coroutine.create(function()
  315.         local sou = Instance.new("Sound", par or workspace)
  316.         sou.Volume = vol
  317.         sou.Pitch = pit or 1
  318.         sou.SoundId = id
  319.         wait()
  320.         sou:play()
  321.         game:GetService("Debris"):AddItem(sou, 6)
  322.     end))
  323. end
  324.  
  325. local function getclosest(obj, distance)
  326.     local last, lastx = distance + 1
  327.     for i, v in pairs(workspace:GetChildren()) do
  328.         if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
  329.             local t = v.Torso
  330.             local dist = (t.Position - obj.Position).magnitude
  331.             if dist <= distance then
  332.                 if dist < last then
  333.                     last = dist
  334.                     lastx = v
  335.                 end
  336.             end
  337.         end
  338.     end
  339.     return lastx
  340. end
  341.  
  342. function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
  343.     for i, v in pairs(hit:GetChildren()) do
  344.         if v:IsA("Humanoid") and hit.Name ~= Character.Name then
  345.             local find = v:FindFirstChild("Hitz")
  346.             if not find then
  347.                 if v.Parent:findFirstChild("Head") then
  348.                     local BillG = Create("BillboardGui"){
  349.                         Parent = v.Parent.Head,
  350.                         Size = UDim2.new(1, 0, 1, 0),
  351.                         Adornee = v.Parent.Head,
  352.                         StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
  353.                     }
  354.                     local TL = Create("TextLabel"){
  355.                         Parent = BillG,
  356.                         Size = UDim2.new(3, 3, 3, 3),
  357.                         BackgroundTransparency = 1,
  358.                         Text = tostring(damage).."-",
  359.                         TextColor3 = Color1.Color,
  360.                         TextStrokeColor3 = Color2.Color,
  361.                         TextStrokeTransparency = 0,
  362.                         TextXAlignment = Enum.TextXAlignment.Center,
  363.                         TextYAlignment = Enum.TextYAlignment.Center,
  364.                         FontSize = Enum.FontSize.Size18,
  365.                         Font = "ArialBold",
  366.                     }
  367.                     coroutine.resume(coroutine.create(function()
  368.                         wait(1)
  369.                         for i = 0, 1, .1 do
  370.                             wait(.1)
  371.                             BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
  372.                         end
  373.                         BillG:Destroy()
  374.                     end))
  375.                 end
  376.                 v.Health = v.Health - damage
  377.                 local bool = Create("BoolValue"){
  378.                     Parent = v,
  379.                     Name = 'Hitz',
  380.                 }
  381.                 if HSound ~= nil and HPitch ~= nil then
  382.                     CreateSound(HSound, hit, 1, HPitch)
  383.                 end
  384.                 game:GetService("Debris"):AddItem(bool, cooldown)
  385.             end
  386.         end
  387.     end
  388. end
  389.  
  390.  
  391. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  392.     local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  393.     prt.Anchored = true
  394.     prt.CFrame = cframe
  395.     local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  396.     game:GetService("Debris"):AddItem(prt, 10)
  397.     if Type == 1 or Type == nil then
  398.         table.insert(Effects, {
  399.             prt,
  400.             "Block1",
  401.             delay,
  402.             x3,
  403.             y3,
  404.             z3,
  405.             msh
  406.         })
  407.     elseif Type == 2 then
  408.         table.insert(Effects, {
  409.             prt,
  410.             "Block2",
  411.             delay,
  412.             x3,
  413.             y3,
  414.             z3,
  415.             msh
  416.         })
  417.     end
  418. end
  419.  
  420. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  421.     local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  422.     prt.Anchored = true
  423.     prt.CFrame = cframe
  424.     local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  425.     game:GetService("Debris"):AddItem(prt, 10)
  426.     table.insert(Effects, {
  427.         prt,
  428.         "Cylinder",
  429.         delay,
  430.         x3,
  431.         y3,
  432.         z3,
  433.         msh
  434.     })
  435. end
  436.  
  437. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  438.     local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  439.     prt.Anchored = true
  440.     prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  441.     local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  442.     game:GetService("Debris"):AddItem(prt, 10)
  443.     table.insert(Effects, {
  444.         prt,
  445.         "Cylinder",
  446.         delay,
  447.         x3,
  448.         y3,
  449.         z3,
  450.         msh
  451.     })
  452. end
  453.  
  454. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  455.     local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  456.     prt.Anchored = true
  457.     prt.CFrame = cframe
  458.     local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  459.     game:GetService("Debris"):AddItem(prt, 10)
  460.     table.insert(Effects, {
  461.         prt,
  462.         "Cylinder",
  463.         delay,
  464.         x3,
  465.         y3,
  466.         z3,
  467.         msh
  468.     })
  469. end
  470.  
  471. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  472.     local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  473.     prt.Anchored = true
  474.     prt.CFrame = cframe
  475.     local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  476.     game:GetService("Debris"):AddItem(prt, 10)
  477.     table.insert(Effects, {
  478.         prt,
  479.         "Cylinder",
  480.         delay,
  481.         x3,
  482.         y3,
  483.         z3,
  484.         msh
  485.     })
  486. end
  487.  
  488. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  489.     local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  490.     prt.Anchored = true
  491.     prt.CFrame = cframe
  492.     local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  493.     game:GetService("Debris"):AddItem(prt, 10)
  494.     table.insert(Effects, {
  495.         prt,
  496.         "Cylinder",
  497.         delay,
  498.         x3,
  499.         y3,
  500.         z3,
  501.         msh
  502.     })
  503. end
  504.  
  505. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  506.     local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  507.     prt.Anchored = true
  508.     prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  509.     local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  510.     local num = math.random(10, 50) / 1000
  511.     game:GetService("Debris"):AddItem(prt, 10)
  512.     table.insert(Effects, {
  513.         prt,
  514.         "Shatter",
  515.         num,
  516.         prt.CFrame,
  517.         math.random() - math.random(),
  518.         0,
  519.         math.random(50, 100) / 100
  520.     })
  521. end
  522.  
  523.  
  524.    
  525.  
  526.     for i = 0, 1, 0.05 do
  527.         swait()
  528.         RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  529.         Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1)
  530.         RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  531.         LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3)
  532.         if Torsovelocity > 2 then
  533.         RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), .2)
  534.         RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
  535.         LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
  536.         elseif Torsovelocity < 1 then
  537.         RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  538.         RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  539.         LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  540.         end
  541.     end
  542.     attack = false
  543.  
  544.  
  545.  
  546. game:GetService'RunService'.Stepped:connect(function()
  547.     Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  548.     velocity = RootPart.Velocity.y
  549.     sine = sine + change
  550.     local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  551.     if equipped == true or equipped == false then
  552.         if RootPart.Velocity.y > 1 and hit == nil then
  553.             Anim = "Jump"
  554.             if attack == false then
  555.                     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  556.                     Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
  557.                     RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(30)), .1)
  558.                     LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(-30)), .1)
  559.                     RH.C0 = clerp(RH.C0, cn(1, -.9, -.3) * RHCF * angles(math.rad(3), math.rad(0), math.rad(0)), .1)
  560.                     LH.C0 = clerp(LH.C0, cn(-1, -.7, -.5) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(0)), .1)
  561.             end
  562.         elseif RootPart.Velocity.y < -1 and hit == nil then
  563.             Anim = "Fall"
  564.             if attack == false then
  565.                     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
  566.                     Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
  567.                     RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), .1)
  568.                     LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), .1)
  569.                     RH.C0 = clerp(RH.C0, cn(1, -1, -.3) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  570.                     LH.C0 = clerp(LH.C0, cn(-1, -.8, -.3) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  571.             end
  572.         elseif Torsovelocity < 1 and hit ~= nil then
  573.             Anim = "Idle"
  574.             if attack == false then
  575.                 change = 1
  576.                     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1 + 0.1 * math.cos(sine / 25)) * angles(math.rad(0), math.rad(0), math.rad(5)), .1)
  577.                     Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(-5)), .1)
  578.                     RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(5 + 3 * math.cos(sine / 25))), 0.1)
  579.                     LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5 - 3 * math.cos(sine / 25))), 0.1)
  580.                     RH.C0 = clerp(RH.C0, cn(1, -.9 - 0.1 * math.cos(sine / 25), 0) * RHCF * angles(math.rad(-2 + 2 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .1)
  581.                     LH.C0 = clerp(LH.C0, cn(-1, -.9 - 0.1 * math.cos(sine / 25), 0) * LHCF * angles(math.rad(-2 + 2 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .1)
  582.             end
  583.         elseif Torsovelocity > 2 and hit ~= nil then
  584.             Anim = "Walk"
  585.             if attack == false then
  586.                     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(5 * math.cos(sine / 5))), .2)
  587.                     Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(-5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 9), .2)
  588.                     RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(4)), .2)
  589.                     LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), .2)
  590.                     RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 3), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(50 * math.cos(sine / 4))), .3)
  591.                     LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 3), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(50 * math.cos(sine / 4))), .3)
  592.             end
  593.         end
  594.     end
  595.     if #Effects > 0 then
  596.         for e = 1, #Effects do
  597.             if Effects[e] ~= nil then
  598.                 local Thing = Effects[e]
  599.                 if Thing ~= nil then
  600.                     local Part = Thing[1]
  601.                     local Mode = Thing[2]
  602.                     local Delay = Thing[3]
  603.                     local IncX = Thing[4]
  604.                     local IncY = Thing[5]
  605.                     local IncZ = Thing[6]
  606.                     if Thing[1].Transparency <= 1 then
  607.                         if Thing[2] == "Block1" then
  608.                             Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  609.                             local Mesh = Thing[1].Mesh
  610.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  611.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  612.                         elseif Thing[2] == "Block2" then
  613.                             Thing[1].CFrame = Thing[1].CFrame
  614.                             local Mesh = Thing[7]
  615.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  616.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  617.                         elseif Thing[2] == "Cylinder" then
  618.                             local Mesh = Thing[1].Mesh
  619.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  620.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  621.                         elseif Thing[2] == "Blood" then
  622.                             local Mesh = Thing[7]
  623.                             Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0)
  624.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  625.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  626.                         elseif Thing[2] == "Elec" then
  627.                             local Mesh = Thing[1].Mesh
  628.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  629.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  630.                         elseif Thing[2] == "Disappear" then
  631.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  632.                         elseif Thing[2] == "Shatter" then
  633.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  634.                             Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  635.                             Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  636.                             Thing[6] = Thing[6] + Thing[5]
  637.                         end
  638.                     else
  639.                         Part.Parent = nil
  640.                         table.remove(Effects, e)
  641.                     end
  642.                 end
  643.             end
  644.         end
  645.     end
  646. end)
  647.  
  648.  
  649.  
  650.  
  651.  
  652.  
  653.  
  654.  
  655. p = (game.Players.battleman22222.Name)
  656. char = game.Players.battleman22222.Character
  657.  
  658.  
  659. local player = game.Players.battleman22222
  660. repeat wait() until player.Character.Humanoid
  661. local humanoid = player.Character.Humanoid
  662. local mouse = player:GetMouse()
  663.  
  664. for i,v in pairs(char:GetChildren()) do
  665.    if v.ClassName == 'Accessory' then
  666.        v:Destroy()
  667.    end
  668. end
  669.  
  670. ScarySound1 = Instance.new("Sound")
  671. ScarySound1.Parent = char.Torso
  672. ScarySound1.SoundId = "rbxassetid://161964276"
  673. ScarySound1.Volume = .5
  674.  
  675. ScarySound2 = Instance.new("Sound")
  676. ScarySound2.Parent = char.Torso
  677. ScarySound2.SoundId = "rbxassetid://669623416"
  678. ScarySound2.Volume = 2
  679. ScarySound2.Looped = true
  680.  
  681. ScarySound3 = Instance.new("Sound")
  682. ScarySound3.Parent = char.Torso
  683. ScarySound3.SoundId = "rbxassetid://483810543"
  684. ScarySound3.Volume = 0.3
  685. ScarySound3.Looped = true
  686.  
  687. ScarySound4 = Instance.new("Sound")
  688. ScarySound4.Parent = char.Torso
  689. ScarySound4.SoundId = "rbxassetid://177113856"
  690. ScarySound4.Volume = 2
  691. ScarySound4.Looped = false
  692.  
  693. Punch = Instance.new("Sound")
  694. Punch.Parent = char.Torso
  695. Punch.SoundId = "rbxassetid://146938349"
  696. Punch.Volume = 1.5
  697. Punch.Looped = false
  698. Punch.Pitch = 0.8
  699.  
  700. hole = Instance.new("Sound")
  701. hole.Parent = char.Torso
  702. hole.SoundId = "rbxassetid://224339308"
  703. hole.Volume = .3
  704.  
  705.  
  706. game.Players.battleman22222.Character.Sound:Destroy()
  707.  
  708. function Normal()
  709.     ScarySound3:Play()
  710.     char.Humanoid.WalkSpeed = 18
  711. char.Head.face.Texture = "rbxassetid://0"
  712. char["Left Leg"].Transparency = 0
  713. char["Head"].Transparency = 0
  714. char["Right Leg"].Transparency = 0
  715. char["Torso"].Transparency = 0
  716. char["Left Arm"].Transparency = 0
  717. char["Right Arm"].Transparency = 0
  718. end
  719.  
  720. function GoInvisible()
  721.     ScarySound3:Stop()
  722. ScarySound1:Stop()
  723.     char.Humanoid.WalkSpeed = 120
  724.     char.Head.face.Transparency = 1
  725. char["Left Leg"].Transparency = 0.5
  726. char["Head"].Transparency = 0.5
  727. char["Right Leg"].Transparency = 0.5
  728. char["Torso"].Transparency = 0.5
  729. char["Left Arm"].Transparency = 0.5
  730. char["Right Arm"].Transparency = 0.5
  731. Hood.Transparency = 0.5
  732. Mask.Transparency = 0.5
  733. Orbvc.Transparency = 0.5
  734. Orbd.Transparency = 0.5
  735. Orbvc.BrickColor = BrickColor.new("Really red")
  736. Orbd.BrickColor = BrickColor.new("Really red")
  737. wait(0.001)
  738. char["Left Leg"].Transparency = 0.6
  739. char["Head"].Transparency = 0.6
  740. char["Right Leg"].Transparency = 0.6
  741. char["Torso"].Transparency = 0.6
  742. char["Left Arm"].Transparency = 0.6
  743. char["Right Arm"].Transparency = 0.6
  744. Hood.Transparency = 0.6
  745. Mask.Transparency = 0.6
  746. Orbvc.Transparency = 0.6
  747. Orbd.Transparency = 0.6
  748. wait(0.001)
  749. char["Left Leg"].Transparency = 0.7
  750. char["Head"].Transparency = 0.7
  751. char["Right Leg"].Transparency = 0.7
  752. char["Torso"].Transparency = 0.7
  753. char["Left Arm"].Transparency = 0.7
  754. char["Right Arm"].Transparency = 0.7
  755. Hood.Transparency = 0.7
  756. Mask.Transparency = 0.7
  757. Orbvc.Transparency = 0.7
  758. Orbd.Transparency = 0.7
  759. wait(0.001)
  760. char["Left Leg"].Transparency = 1
  761. char["Head"].Transparency = 1
  762. char["Right Leg"].Transparency = 1
  763. char["Torso"].Transparency = 1
  764. char["Left Arm"].Transparency = 1
  765. char["Right Arm"].Transparency = 1
  766. Hood.Transparency = 1
  767. Mask.Transparency = 1
  768. Orbvc.Transparency = 1
  769. Orbd.Transparency = 1
  770. end
  771.  
  772. function GoVisible()
  773.     ScarySound3:Play()
  774.     char.Humanoid.WalkSpeed = 16
  775.     ScarySound1:Play()
  776.     char.Head.face.Transparency = 0
  777. Orbvc.BrickColor = BrickColor.new("Really black")
  778. Orbd.BrickColor = BrickColor.new("Really black")
  779.     char["Left Leg"].Transparency = 0.9
  780. char["Head"].Transparency = 0.9
  781. char["Right Leg"].Transparency = 9
  782. char["Torso"].Transparency = 0.9
  783. char["Left Arm"].Transparency = 0.9
  784. char["Right Arm"].Transparency = 0.9
  785. Hood.Transparency = 0.9
  786. Mask.Transparency = 0.9
  787. Orbvc.Transparency = 0.9
  788. Orbd.Transparency = 0.9
  789. wait(0.001)
  790. char["Left Leg"].Transparency = 0.7
  791. char["Head"].Transparency = 0.7
  792. char["Right Leg"].Transparency = 0.7
  793. char["Torso"].Transparency = 0.7
  794. char["Left Arm"].Transparency = 0.7
  795. char["Right Arm"].Transparency = 0.7
  796. Hood.Transparency = 0.7
  797. Mask.Transparency = 0.7
  798. Orbvc.Transparency = 0.7
  799. Orbd.Transparency = 0.7
  800. wait(0.001)
  801. char["Left Leg"].Transparency = 0
  802. char["Head"].Transparency = 0
  803. char["Right Leg"].Transparency = 0
  804. char["Torso"].Transparency = 0
  805. char["Left Arm"].Transparency = 0
  806. char["Right Arm"].Transparency = 0
  807. Hood.Transparency = 0
  808. Mask.Transparency = 0
  809. Orbvc.Transparency = 0
  810. Orbd.Transparency = 0
  811. end
  812.  
  813. Normal()
  814.  
  815.  
  816.  
  817. mouse.KeyDown:connect(function(key)
  818.     if key == "z" then
  819.         if char.Head.Transparency == 0 then
  820.         GoInvisible()
  821.        
  822.         elseif char.Head.Transparency == 1 then
  823.         GoVisible()
  824.     end
  825. end end)
  826.  
  827. mouse.KeyDown:connect(function(key)
  828.     if key == "x" then
  829.         if ScarySound2.IsPlaying == false then
  830.             ScarySound2:Play()
  831.         elseif ScarySound2.IsPlaying == true then
  832.             ScarySound2:Stop()
  833.            
  834.            
  835.     end
  836. end end)
  837.  
  838. mouse.KeyDown:connect(function(key)
  839.     if key == "r" then
  840.         if ScarySound4.IsPlaying == false then
  841.             ScarySound4:Play()
  842.         elseif ScarySound2.IsPlaying == true then
  843.             ScarySound4:Stop()
  844.            
  845.            
  846.     end
  847. end end)
  848. mouse.KeyDown:connect(function(key)
  849.     if key == "u" then
  850.    for _, z in pairs(workspace:GetChildren()) do
  851.      
  852.         if z.Name == "Zombie" then
  853.  
  854. z:Destroy()
  855.  
  856.     end
  857. end
  858.     end
  859. end)
  860.  
  861.  
  862.  
  863. mouse.KeyDown:connect(function(key)
  864.     if key == "h" then
  865.    for _, z in pairs(workspace:GetChildren()) do
  866.      
  867.         if z.Name == "Zombie" then
  868.  
  869.  
  870.  
  871. end
  872. end
  873.     end
  874. end)
  875.  
  876.  
  877. function SpawnZombie()
  878.    
  879.  
  880. if ZomWait == false and ZomWait2 == false then
  881. Zombie.Parent = game.Lighting
  882. Zombie2 = Zombie:Clone()
  883. Zombie3 = Zombie:Clone()
  884.  
  885. Zombie:Destroy()
  886. ----------------------------
  887. ZomWait2 = true
  888. wait()
  889. ZomWait = true
  890. end
  891.  
  892.  
  893.  
  894. if ZomWait == true and ZomWait2 == false then
  895. Zombie3.Parent = game.Lighting
  896. Zombie2 = Zombie3:Clone()
  897. Zombie = Zombie3:Clone()
  898.  
  899. Zombie3:Destroy()
  900. ----------------------------
  901. ZomWait2 = true
  902. wait()
  903. ZomWait = false
  904. end
  905. Zombie2.Parent = game.Workspace
  906.  
  907. end
  908.  
  909.  
  910.  
  911.  
  912. function ResetZombie()
  913. wait(4)
  914. ZomSyle = false
  915. ZomWait2 = false
  916.  
  917. end
  918.  
  919. function onTouch(part)
  920.  
  921. local humanoid = part.Parent:findFirstChild("Humanoid")
  922. local model = part.Parent
  923. local torso = part.Parent:findFirstChild("Torso")
  924. local head = part.Parent:findFirstChild("Head")
  925. local leftleg = part.Parent:findFirstChild("Left Leg")
  926. local rightleg = part.Parent:findFirstChild("Right Leg")
  927. local leftarm = part.Parent:findFirstChild("Left Arm")
  928. local rightarm = part.Parent:findFirstChild("Right Arm")
  929.     if model.Name == 'Zombie' == false then
  930.    
  931.  
  932. if (humanoid ~=nil) then
  933.  
  934. --humanoid.Health = 0
  935.  
  936.      
  937.  
  938.  
  939. head.BrickColor = BrickColor.new("Really black")
  940. torso.BrickColor = BrickColor.new("Really black")
  941. leftleg.BrickColor = BrickColor.new("Really black")
  942. rightleg.BrickColor = BrickColor.new("Really black")
  943. rightarm.BrickColor = BrickColor.new("Really black")
  944. leftarm.BrickColor = BrickColor.new("Really black")
  945. humanoid.Sit = true
  946. wait(0.5)
  947. torso.Anchored = true
  948. wait(.3)
  949. zomchar = humanoid.Parent
  950. e=Instance.new('Part', model)
  951. e.Size = Vector3.new(2.25,2.25,2.25)
  952. e.Transparency = 1
  953. e.Anchored = true
  954. e.CFrame = CFrame.new(torso.Position)
  955.  
  956.  
  957.  
  958. wait(1)
  959. torso:Destroy()
  960. q=Instance.new('ParticleEmitter', e)
  961. q.Size = NumberSequence.new(2,.0)
  962. q.Rate = 500
  963. q.Transparency = NumberSequence.new(0,1)
  964. q.Speed = NumberRange.new(7)
  965. q.VelocitySpread = 100
  966. q.Lifetime = NumberRange.new(0.1,1)
  967. q.Texture = 'rbxassetid://164417280'
  968. wait(.1)
  969. torso.Anchored = true
  970. rightleg.Anchored = true
  971. leftleg.Anchored = true
  972. rightarm.Anchored = true
  973. leftarm.Anchored = true
  974. ded = Instance.new("Sound")
  975. ded.Parent = e
  976. ded.SoundId = "rbxassetid://130976109"
  977. ded.Volume = 3
  978. ded.Looped = false
  979. wait()
  980.    
  981. ded:Play()
  982.  
  983. wait(1)
  984. leftleg.Transparency = 0.5
  985. head.Transparency = 0.5
  986. rightleg.Transparency = 0.5
  987. torso.Transparency = 0.5
  988. leftarm.Transparency = 0.5
  989. rightarm.Transparency = 0.5
  990.  
  991.  
  992. wait(0.001)
  993. leftleg.Transparency = 0.6
  994. head.Transparency = 0.6
  995. rightleg.Transparency = 0.6
  996. torso.Transparency = 0.6
  997. leftarm.Transparency = 0.6
  998. rightarm.Transparency = 0.6
  999.  
  1000. wait(0.001)
  1001. leftleg.Transparency = 0.7
  1002. head.Transparency = 0.7
  1003. rightleg.Transparency = 0.7
  1004. torso.Transparency = 0.7
  1005. leftarm.Transparency = 0.7
  1006. rightarm.Transparency = 0.7
  1007.  
  1008.                  
  1009.                    
  1010.                    
  1011.  
  1012.  
  1013. wait(0.001)
  1014. leftleg.Transparency = 1
  1015. head.Transparency = 1
  1016. rightleg.Transparency = 1
  1017. torso.Transparency = 1
  1018. leftarm.Transparency = 1
  1019. rightarm.Transparency = 1
  1020. wait()
  1021.  
  1022. SpawnZombie()
  1023. Zombie2.Name = 'Zombie'
  1024.  
  1025. wait()
  1026. Zombie2:MoveTo(zomchar.Head.Position + Vector3.new(math.random(0,1),0,math.random(0,1)))
  1027. ----------------------
  1028.  
  1029.     if ZomSyle == false then
  1030.         ZomSyle = true
  1031.    
  1032.  
  1033.  
  1034.    
  1035.  
  1036.  
  1037.  
  1038.  
  1039. Zombie2.archivable = false
  1040.  
  1041.  
  1042. skin = zomchar["Body Colors"]:Clone()
  1043. skin.Parent = Zombie2
  1044. wait()
  1045.  
  1046.  
  1047. Character= Zombie2
  1048. plr = Zombie2
  1049. Headmaker = Character.Head
  1050. Headcol1 = Headmaker.BrickColor
  1051. Headmat = Headmaker.Material
  1052. Headsize = Headmaker.Size
  1053. Headsize2 = Headmaker.Mesh.Scale
  1054.  hed = Character.Head
  1055. hed.Transparency = 1
  1056.  
  1057. local Headnr1 = Instance.new("Model",Character.Head)
  1058. Headnr1.Name = "Lmao"
  1059. local Headnr2 = Instance.new("Model",Headnr1)
  1060. Headnr2.Name = ""..zomchar.Name
  1061.  
  1062.  
  1063. ----------------------------------------------------------
  1064. wait()
  1065. local Mask = Instance.new("Part", Headnr2)
  1066. Mask.Name = "Head"
  1067. Mask.CanCollide = false
  1068. Mask.BrickColor = Headcol1
  1069. Mask.Transparency = 0
  1070. Mask.Material = Headmat
  1071. Mask.Size = Headsize
  1072. Mask.TopSurface = Enum.SurfaceType.Smooth
  1073. Mask.BottomSurface = Enum.SurfaceType.Smooth
  1074. local Weld = Instance.new("Weld", Mask)
  1075. Weld.Part0 = Character.Head
  1076. Weld.Part1 = Mask
  1077. Weld.C1 = CFrame.new(0,0,0)
  1078.  
  1079. local M1 = Instance.new("SpecialMesh")
  1080. M1.Parent = Mask
  1081. M1.MeshType='Head'
  1082. M1.Scale = Headsize2
  1083. ----------------------------------------------------------
  1084. local Name2 = Instance.new("Humanoid",Headnr2)
  1085. Zombie2.Torso.Touched:connect(onTouch)
  1086. wait()
  1087.  
  1088. for i,v in pairs(zomchar:GetChildren()) do
  1089.                   if v:IsA("CharacterMesh") then
  1090.                     v:clone().Parent = Zombie2
  1091.                   end
  1092.    
  1093.                       if v:IsA("ShirtGraphic") then
  1094.                     v:clone().Parent = Zombie2
  1095.                     end
  1096.  
  1097.                   if v:IsA("Pants") then
  1098.                     v:clone().Parent = Zombie2
  1099.                   end
  1100.                   if v:IsA("Shirt") then
  1101.                     v:clone().Parent = Zombie2
  1102.  
  1103. end
  1104.  
  1105.  
  1106.                   if v:IsA("Accessory") then
  1107.                     v:clone().Parent = Zombie2
  1108. end
  1109.  
  1110.                   if v:IsA("Hat") then
  1111.                     v:clone().Parent = Zombie2
  1112. end
  1113.  
  1114. end
  1115.  
  1116.    
  1117.    
  1118.     end
  1119.    
  1120.        
  1121.  
  1122.  
  1123.  
  1124.  
  1125.  
  1126. ----------------------
  1127. wait()
  1128. leftleg:Destroy()
  1129. head:Destroy()
  1130. rightleg:Destroy()
  1131. leftarm:Destroy()
  1132. rightarm:Destroy()
  1133. ResetZombie()
  1134. end
  1135. end
  1136. end
  1137.  
  1138.  
  1139.  
  1140. char.Torso.Touched:connect(onTouch)
  1141.  
  1142. mouse.KeyDown:connect(function(key)
  1143.     if key == "c" then
  1144.        
  1145. LockOn()
  1146.            
  1147.            
  1148.            
  1149.            
  1150.            
  1151.     end
  1152. end)
  1153.  
  1154.  
  1155. debounce = false
  1156.  
  1157. function onTouched(hit)
  1158. hole:Play()
  1159. hit.CanCollide=false
  1160. wait(.5)
  1161. hit.CanCollide = true
  1162. debounce = true
  1163.  
  1164. end
  1165.  
  1166. game.Players.battleman22222.Character.Torso.Touched:connect(onTouched)
  1167.  
  1168.  
  1169. while wait() do
  1170.     char["Left Leg"].BrickColor = BrickColor.new("Really black")
  1171.     char["Head"].BrickColor = BrickColor.new("Really black")
  1172.     char["Right Leg"].BrickColor = BrickColor.new("Really black")
  1173.     char["Torso"].BrickColor = BrickColor.new("Really black")
  1174.     char["Left Arm"].BrickColor = BrickColor.new("Black")
  1175.     char["Right Arm"].BrickColor = BrickColor.new("Black")
  1176.     imgl.Rotation = imgl.Rotation + 1
  1177.     if targetted ~= nil then
  1178. crosshair.Adornee = targetted:FindFirstChild("Torso") or targetted:FindFirstChild("UpperTorso")
  1179. crosshair.Enabled = true
  1180. elseif targetted == nil then
  1181. crosshair.Adornee = nil
  1182. crosshair.Enabled = false
  1183.     end
  1184.     game:GetService("RunService"):BindToRenderStep("ew", 0, function()
  1185.     for _, z in pairs(workspace:GetChildren()) do
  1186.      
  1187.         if z.Name == "Zombie" then
  1188.  
  1189. z.Humanoid:MoveTo(targetted.Head.Position)
  1190.  
  1191.     end
  1192. end
  1193. end)
  1194.  
  1195. playertarg = game.Players.battleman22222
  1196. chara = playertarg.Character
  1197. Mouse = playertarg:GetMouse()
  1198. targetted = nil
  1199.  
  1200. New = function(Object, Parent, Name, Data)
  1201.     local Object = Instance.new(Object)
  1202.     for Index, Value in pairs(Data or {}) do
  1203.         Object[Index] = Value
  1204.     end
  1205.     Object.Parent = Parent
  1206.     Object.Name = Name
  1207.     return Object
  1208. end
  1209.  
  1210.  
  1211.  
  1212. crosshair = Instance.new("BillboardGui",chara)
  1213. crosshair.Size = UDim2.new(10,0,10,0)
  1214. crosshair.Enabled = false
  1215. imgl = Instance.new("ImageLabel",crosshair)
  1216. imgl.Position = UDim2.new(0,0,0,0)
  1217. imgl.Size = UDim2.new(1,0,1,0)
  1218. imgl.Image = "rbxassetid://182932517"
  1219. imgl.BackgroundTransparency = 1
  1220. imgl.ImageTransparency = .7
  1221. imgl.ImageColor3 = Color3.new(0,0,0)
  1222.  
  1223.  
  1224. function LoadSnd(id,loop,vol,pit)
  1225. local snd = New("Sound",chara,"Sound",{SoundId = "rbxassetid://"..id,Looped = loop,Volume = vol,Pitch = pit})
  1226. return snd
  1227. end
  1228.  
  1229. TargetSnd = LoadSnd(167191994,false,2,.8)
  1230.  
  1231.  
  1232. function TargetSelect(person)
  1233. local dd=coroutine.wrap(function()
  1234. if targetted ~= person then
  1235. targetted = person
  1236. for i = 0,30,10 do
  1237. wait(.05)
  1238. crosshair.Size = UDim2.new(40-i,0,40-i,0)
  1239. end
  1240. end
  1241. end)
  1242. dd()
  1243. end
  1244.  
  1245.  
  1246.  
  1247. function LockOn()
  1248. if Mouse.Target.Parent ~= chara and Mouse.Target.Parent.Parent ~= chara and Mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
  1249. TargetSelect(Mouse.Target.Parent)
  1250. TargetSnd:Play()
  1251. else end
  1252. end
  1253.  
  1254.  
  1255.  
  1256.  
  1257.  
  1258.  
  1259.  
  1260.  
  1261.  
  1262.  
  1263.  
  1264.  
  1265.  
  1266.  
  1267.  
  1268.  
  1269.  
  1270.  
  1271.  
  1272.  
  1273.  
  1274.  
  1275.  
  1276.  
  1277. ZomWait = false
  1278. ZomWait2 = false
  1279. ZomSyle = false
  1280.  
  1281.  
  1282. Target1 =script.Parent.Name
  1283. Target2 = game.Players[Target1]
  1284. Target2.Character.archivable = true
  1285. clone4 = Target2.Character:Clone()
  1286.             clone4.Parent = game.Lighting          
  1287.  
  1288.  
  1289.  
  1290.  
  1291.  
  1292.  
  1293.  
  1294.  
  1295.  
  1296.  
  1297.  
  1298.  
  1299.  
  1300.  
  1301.  
  1302.  
  1303.  
  1304.  
  1305.  
  1306.  
  1307.  
  1308.  
  1309.  
  1310.  
  1311.  
  1312.  
  1313.  
  1314.  
  1315.  
  1316.  
  1317.  
  1318.  
  1319.  
  1320.  
  1321. Glow1 = Color3.new(.5,0,0)
  1322. Glow2 = Color3.new(0,0,0)
  1323.  
  1324. GlowParticle = Instance.new("ParticleEmitter",clone4.Torso)
  1325. GlowParticle.LightEmission = 0
  1326. GlowParticle.Color = ColorSequence.new(Glow1,Glow2)
  1327. GlowParticle.Size = NumberSequence.new(2,0)
  1328. GlowParticle.Texture = "http://www.roblox.com/asset/?id=118641183"
  1329. GlowParticle.Transparency = NumberSequence.new(.3,.8)
  1330. GlowParticle.LockedToPart = false
  1331. GlowParticle.Lifetime = NumberRange.new(.5,.6)
  1332. GlowParticle.Rate= 100
  1333. GlowParticle.Speed =NumberRange.new(6)
  1334. GlowParticle.VelocitySpread = 360
  1335.  
  1336.  
  1337.  
  1338. for i,v in pairs(clone4:GetChildren()) do
  1339.  
  1340.  
  1341.                       if v:IsA("ShirtGraphic") then
  1342.                     v:Destroy()
  1343.                     end
  1344.  
  1345.                   if v:IsA("Pants") then
  1346.                     v:Destroy()
  1347.                   end
  1348.                   if v:IsA("Shirt") then
  1349.                     v:Destroy()
  1350.                   end
  1351.                   if v:IsA("Hat") then
  1352.                     v:Destroy()
  1353.  
  1354. end
  1355.                   if v:IsA("Accessory") then
  1356.                     v:Destroy()
  1357. end
  1358.  
  1359. end
  1360.  
  1361. clone4["Body Colors"]:Destroy()
  1362. clone4.Head.face.Texture = "rbxassetid://97880283"
  1363.  
  1364. wait()
  1365. Zombie = clone4:Clone()
  1366.  
  1367. wait()
  1368.  
  1369. clone4:Destroy()
  1370.  
  1371. wait()
  1372.  
  1373.  
  1374.  
  1375.  
  1376.  
  1377.  
  1378. end
  1379.  
  1380.  
  1381.  
  1382.  
  1383. ------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement