View difference between Paste ID: 3eRPXT2w and 73xXBUBt
SHOW: | | - or go back to the newest paste.
1
plr = script.Parent.Parent.Parent.Parent
2
char = plr.Character
3
local d = char:GetChildren()
4
for i=1, #d do
5
        if (d[i].className == "Hat") then
6
                d[i]:Destroy()
7
        end
8
end
9
10
Player = game:GetService("Players").LocalPlayer
11
PlayerGui = Player.PlayerGui
12
Cam = workspace.CurrentCamera
13
Backpack = Player.Backpack
14
Character = Player.Character
15
char = Player.Character
16
Humanoid = Character.Humanoid
17
Mouse = Player:GetMouse()
18
RootPart = Character["HumanoidRootPart"]
19
Torso = Character["Torso"]
20
Head = Character["Head"]
21
RightArm = Character["Right Arm"]
22
LeftArm = Character["Left Arm"]
23
RightLeg = Character["Right Leg"]
24
LeftLeg = Character["Left Leg"]
25
RootJoint = RootPart["RootJoint"]
26
Neck = Torso["Neck"]
27
RightShoulder = Torso["Right Shoulder"]
28
LeftShoulder = Torso["Left Shoulder"]
29
RightHip = Torso["Right Hip"]
30
LeftHip = Torso["Left Hip"]
31
32
function weld(a, b, acf)
33
    local w = Instance.new("Weld", a)
34
    w.Part0 = a
35
    w.Part1 = b
36
    w.C0 = acf
37
end
38
local righteyebrickcolor = "Really red"
39
local reye = Instance.new("Part", char)
40
reye.CanCollide = false
41
reye.BrickColor = BrickColor.new(righteyebrickcolor)
42
reye.Material = "Neon"
43
reye.Size = Vector3.new(.25,.35,.15)
44
weld(reye, char.Head, CFrame.new(0.15,-0.2,0.55), CFrame.new(1,0,0))
45
m1 = Instance.new("SpecialMesh", reye)
46
m1.MeshType = "Sphere"
47
m1.Scale = Vector3.new(0.9,0.9,0.9)
48
reye.Locked = true
49
reye.Name = "re"
50
51
52
local lefteyebrickcolor = "Really red"
53
local leye = Instance.new("Part", char)
54
leye.CanCollide = false
55
leye.BrickColor = BrickColor.new(lefteyebrickcolor)
56
leye.Material = "Neon"
57
leye.Size = Vector3.new(.25,.35,.15)
58
weld(reye, char.Head, CFrame.new(0.15,-0.2,0.55), CFrame.new(1,0,0))
59
m1 = Instance.new("SpecialMesh", leye)
60
m1.MeshType = "Sphere"
61
m1.Scale = Vector3.new(0.9,0.9,0.9)
62
leye.Locked = true
63
leye.Name = "le"
64
65
wait(1)
66
local Dummy = game.Workspace:FindFirstChild("Meti2000")
67
if Dummy == nil then
68
	error("Target not found!")
69
	return
70
end
71
wait(0.5)
72
for i,v in pairs(Dummy:GetChildren()) do
73
	if v.ClassName == "Part" then
74
		v.Transparency = 10
75
	end
76
end
77
Dummy["Left Arm"].Transparency = 1
78
Dummy["Right Arm"].Transparency = 1
79
Dummy["Torso"].Transparency = 1
80
Dummy["Head"].Transparency = 1
81
Dummy["Left Leg"].Transparency = 1
82
Dummy["Right Leg"].Transparency = 1
83
leye.Transparency = 1
84
reye.Transparency = 1
85
local Humanoid = Dummy:FindFirstChild("Humanoid")
86
local Head = Dummy:FindFirstChild("Head")
87
local ishead = true
88
if Humanoid == nil then error("Humanoid not found!") return end
89
if Head == nil then ishead = false end
90
if ishead == true then
91
	if Head:FindFirstChild("face") then
92
		Head:FindFirstChild("face"):Destroy()
93
	end
94
end
95
Humanoid.MaxHealth = math.huge
96
Humanoid.Health = math.huge
97
Humanoid.WalkSpeed = 6000
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 = 5
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
		Dummy["Left Arm"].Transparency = 0
149
		Dummy["Right Arm"].Transparency = 0
150
		Dummy["Torso"].Transparency = 0
151
		Dummy["Head"].Transparency = 0
152
		Dummy["Left Leg"].Transparency = 0
153
		Dummy["Right Leg"].Transparency = 0
154
        leye.Transparency = 0
155
        reye.Transparency = 0
156
		wait(3)
157
		Dummy["Left Arm"].Transparency = 1
158
		Dummy["Right Arm"].Transparency = 1
159
		Dummy["Torso"].Transparency = 1
160
		Dummy["Neck"].Transparency = 1
161
		Dummy["Left Leg"].Transparency = 1
162
		Dummy["Right Leg"].Transparency = 1
163
		leye.Transparency = 1
164
        reye.Transparency = 1
165
	end
166
end