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