SHOW:
|
|
- or go back to the newest paste.
| 1 | - | plr = script.Parent.Parent.Parent.Parent |
| 1 | + | |
| 2 | - | char = plr.Character |
| 2 | + | |
| 3 | - | local d = char:GetChildren() |
| 3 | + | |
| 4 | - | for i=1, #d do |
| 4 | + | |
| 5 | - | if (d[i].className == "Hat") then |
| 5 | + | |
| 6 | - | d[i]:Destroy() |
| 6 | + | |
| 7 | - | end |
| 7 | + | |
| 8 | char = Player.Character | |
| 9 | Humanoid = Character.Humanoid | |
| 10 | Mouse = Player:GetMouse() | |
| 11 | RootPart = Character["HumanoidRootPart"] | |
| 12 | Torso = Character["Torso"] | |
| 13 | Head = Character["Head"] | |
| 14 | RightArm = Character["Right Arm"] | |
| 15 | LeftArm = Character["Left Arm"] | |
| 16 | RightLeg = Character["Right Leg"] | |
| 17 | LeftLeg = Character["Left Leg"] | |
| 18 | RootJoint = RootPart["RootJoint"] | |
| 19 | Neck = Torso["Neck"] | |
| 20 | RightShoulder = Torso["Right Shoulder"] | |
| 21 | LeftShoulder = Torso["Left Shoulder"] | |
| 22 | RightHip = Torso["Right Hip"] | |
| 23 | LeftHip = Torso["Left Hip"] | |
| 24 | ||
| 25 | function weld(a, b, acf) | |
| 26 | local w = Instance.new("Weld", a)
| |
| 27 | w.Part0 = a | |
| 28 | w.Part1 = b | |
| 29 | w.C0 = acf | |
| 30 | end | |
| 31 | local righteyebrickcolor = "Really red" | |
| 32 | local reye = Instance.new("Part", char)
| |
| 33 | reye.CanCollide = false | |
| 34 | reye.BrickColor = BrickColor.new(righteyebrickcolor) | |
| 35 | reye.Material = "Neon" | |
| 36 | reye.Size = Vector3.new(.25,.35,.15) | |
| 37 | weld(reye, char.Head, CFrame.new(0.15,-0.2,0.55), CFrame.new(1,0,0)) | |
| 38 | m1 = Instance.new("SpecialMesh", reye)
| |
| 39 | m1.MeshType = "Sphere" | |
| 40 | m1.Scale = Vector3.new(0.9,0.9,0.9) | |
| 41 | reye.Locked = true | |
| 42 | reye.Name = "re" | |
| 43 | ||
| 44 | ||
| 45 | local lefteyebrickcolor = "Really red" | |
| 46 | local leye = Instance.new("Part", char)
| |
| 47 | leye.CanCollide = false | |
| 48 | leye.BrickColor = BrickColor.new(lefteyebrickcolor) | |
| 49 | leye.Material = "Neon" | |
| 50 | leye.Size = Vector3.new(.25,.35,.15) | |
| 51 | weld(reye, char.Head, CFrame.new(0.15,-0.2,0.55), CFrame.new(1,0,0)) | |
| 52 | m1 = Instance.new("SpecialMesh", leye)
| |
| 53 | m1.MeshType = "Sphere" | |
| 54 | m1.Scale = Vector3.new(0.9,0.9,0.9) | |
| 55 | leye.Locked = true | |
| 56 | leye.Name = "le" | |
| 57 | ||
| 58 | wait(1) | |
| 59 | local Dummy = game.Workspace:FindFirstChild("Meti2000")
| |
| 60 | if Dummy == nil then | |
| 61 | error("Target not found!")
| |
| 62 | return | |
| 63 | end | |
| 64 | wait(0.5) | |
| 65 | for i,v in pairs(Dummy:GetChildren()) do | |
| 66 | if v.ClassName == "Part" then | |
| 67 | v.Transparency = 10 | |
| 68 | end | |
| 69 | end | |
| 70 | Dummy["Left Arm"].Transparency = 1 | |
| 71 | Dummy["Right Arm"].Transparency = 1 | |
| 72 | Dummy["Torso"].Transparency = 1 | |
| 73 | Dummy["Head"].Transparency = 1 | |
| 74 | Dummy["Left Leg"].Transparency = 1 | |
| 75 | Dummy["Right Leg"].Transparency = 1 | |
| 76 | leye.Transparency = 1 | |
| 77 | reye.Transparency = 1 | |
| 78 | local Humanoid = Dummy:FindFirstChild("Humanoid")
| |
| 79 | local Head = Dummy:FindFirstChild("Head")
| |
| 80 | local ishead = true | |
| 81 | if Humanoid == nil then error("Humanoid not found!") return end
| |
| 82 | if Head == nil then ishead = false end | |
| 83 | if ishead == true then | |
| 84 | if Head:FindFirstChild("face") then
| |
| 85 | Head:FindFirstChild("face"):Destroy()
| |
| 86 | end | |
| 87 | end | |
| 88 | Humanoid.MaxHealth = math.huge | |
| 89 | Humanoid.Health = math.huge | |
| 90 | Humanoid.WalkSpeed = 6000 | |
| 91 | Humanoid.Name = "Zombie" | |
| 92 | function onTouchedDeath(part) | |
| 93 | if part.Parent ~= nil then | |
| 94 | local h = part.Parent:findFirstChild("Humanoid")
| |
| 95 | if h ~= nil then | |
| 96 | local has_health = h.Health > 0 | |
| 97 | h:TakeDamage(h.MaxHealth + 10) | |
| 98 | end | |
| 99 | end | |
| 100 | end | |
| 101 | Dummy["Left Arm"].Touched:connect(onTouchedDeath) | |
| 102 | Dummy["Right Arm"].Touched:connect(onTouchedDeath) | |
| 103 | Dummy["Torso"].Touched:connect(onTouchedDeath) | |
| 104 | Dummy["Head"].Touched:connect(onTouchedDeath) | |
| 105 | Dummy["Left Leg"].Touched:connect(onTouchedDeath) | |
| 106 | Dummy["Right Leg"].Touched:connect(onTouchedDeath) | |
| 107 | local larm = script.Parent:FindFirstChild("Left Arm")
| |
| 108 | local rarm = script.Parent:FindFirstChild("Right Arm")
| |
| 109 | function findNearestTorso(pos) | |
| 110 | local list = game.Workspace:children() | |
| 111 | local torso = nil | |
| 112 | local dist = 5 | |
| 113 | local temp = nil | |
| 114 | local human = nil | |
| 115 | local temp2 = nil | |
| 116 | for x = 1, #list do | |
| 117 | temp2 = list[x] | |
| 118 | if (temp2.className == "Model") and (temp2 ~= script.Parent) then | |
| 119 | temp = temp2:findFirstChild("Right Arm")
| |
| 120 | human = temp2:findFirstChild("Humanoid")
| |
| 121 | if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then | |
| 122 | if (temp.Position - pos).magnitude < dist then | |
| 123 | torso = temp | |
| 124 | dist = (temp.Position - pos).magnitude | |
| 125 | end | |
| 126 | end | |
| 127 | end | |
| 128 | end | |
| 129 | return torso | |
| 130 | end | |
| 131 | while true do | |
| 132 | wait(0.3) | |
| 133 | local target = findNearestTorso(Dummy["Torso"].Position) | |
| 134 | if target ~= nil then | |
| 135 | Humanoid:MoveTo(target.Position, target) | |
| 136 | local Music = Instance.new("Sound", Dummy.Head)
| |
| 137 | Music.SoundId = "http://www.roblox.com/asset/?id=224299497" | |
| 138 | Music.Looped = false | |
| 139 | Music.Volume = 1 | |
| 140 | Music:Play() | |
| 141 | Dummy["Left Arm"].Transparency = 0 | |
| 142 | Dummy["Right Arm"].Transparency = 0 | |
| 143 | Dummy["Torso"].Transparency = 0 | |
| 144 | Dummy["Head"].Transparency = 0 | |
| 145 | Dummy["Left Leg"].Transparency = 0 | |
| 146 | Dummy["Right Leg"].Transparency = 0 | |
| 147 | leye.Transparency = 0 | |
| 148 | reye.Transparency = 0 | |
| 149 | wait(3) | |
| 150 | Dummy["Left Arm"].Transparency = 1 | |
| 151 | Dummy["Right Arm"].Transparency = 1 | |
| 152 | Dummy["Torso"].Transparency = 1 | |
| 153 | Dummy["Neck"].Transparency = 1 | |
| 154 | Dummy["Left Leg"].Transparency = 1 | |
| 155 | Dummy["Right Leg"].Transparency = 1 | |
| 156 | leye.Transparency = 1 | |
| 157 | reye.Transparency = 1 | |
| 158 | end | |
| 159 | end |