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