jericoalejo

Untitled

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