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