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