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