Advertisement
Guest User

P14gue D0ctor "2c6-049" v4

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