-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathESP.txt
More file actions
216 lines (209 loc) · 8.13 KB
/
ESP.txt
File metadata and controls
216 lines (209 loc) · 8.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
local toggleKey = "z"
local crashy = true -- CHANGE THIS TO TRUE IF IT CRASHES THIS GAME
local on = false
if game.CoreGui:FindFirstChild('ESP') then
game.CoreGui.ESP:Destroy()
elseif game.CoreGui:FindFirstChild('ESP') then
game.CoreGui.ESP:Destroy()
end
function doit(hey)
local t1 = Instance.new('SurfaceGui',hey)
t1.AlwaysOnTop = true
local t1g = Instance.new('Frame',t1)
t1g.Size = UDim2.new(1,0,1,0)
t1g.BackgroundColor3 = t1.Parent.BrickColor.Color
local t2 = Instance.new('SurfaceGui',hey)
t2.AlwaysOnTop = true
t2.Face = Enum.NormalId.Right
local t2g = Instance.new('Frame',t2)
t2g.Size = UDim2.new(1,0,1,0)
t2g.BackgroundColor3 = t2.Parent.BrickColor.Color
local t3 = Instance.new('SurfaceGui',hey)
t3.AlwaysOnTop = true
t3.Face = Enum.NormalId.Left
local t3g = Instance.new('Frame',t3)
t3g.Size = UDim2.new(1,0,1,0)
t3g.BackgroundColor3 = t3.Parent.BrickColor.Color
local t4 = Instance.new('SurfaceGui',hey)
t4.AlwaysOnTop = true
t4.Face = Enum.NormalId.Back
local t4g = Instance.new('Frame',t4)
t4g.Size = UDim2.new(1,0,1,0)
t4g.BackgroundColor3 = t4.Parent.BrickColor.Color
local t5 = Instance.new('SurfaceGui',hey)
t5.AlwaysOnTop = true
t5.Face = Enum.NormalId.Top
local t5g = Instance.new('Frame',t5)
t5g.Size = UDim2.new(1,0,1,0)
t5g.BackgroundColor3 = t5.Parent.BrickColor.Color
local t6 = Instance.new('SurfaceGui',hey)
t6.AlwaysOnTop = true
t6.Face = Enum.NormalId.Bottom
local t6g = Instance.new('Frame',t6)
t6g.Size = UDim2.new(1,0,1,0)
t6g.BackgroundColor3 = t6.Parent.BrickColor.Color
end
function undo(chr)
for i,v in pairs(chr:GetChildren()) do
if v.ClassName == "Part" or v.ClassName == "MeshPart" then
for a,c in pairs(v:GetChildren()) do
if c.ClassName == "SurfaceGui" then
c:Destroy()
end
if c.ClassName == "BillboardGui" and c.Name == "thingyye" then
c:Destroy()
end
end
end
end
end
local gui = Instance.new('ScreenGui')
if crashy == false then
gui.Parent = game.CoreGui
else
gui.Parent = game.CoreGui
end
gui.Name = "ESP"
gui.ResetOnSpawn = false
local frame = Instance.new('Frame',gui)
frame.Size = UDim2.new(0.2,0,0.3,0)
frame.Position = UDim2.new(0,0,0.9,0)
frame.BackgroundTransparency = 0.5
frame.BackgroundColor3 = Color3.fromRGB(131,182,239)
frame.BorderSizePixel = 4
frame.BorderColor3 = Color3.fromRGB(66,134,244)
frame.Active = true
frame.Draggable = true
local txt = Instance.new('TextLabel',frame)
txt.Text = "Mustardfoot's ESP Gui"
txt.TextColor3 = Color3.fromRGB(255,255,255)
txt.Size = UDim2.new(1,0,0.3,0)
txt.TextScaled = true
txt.BackgroundTransparency = 1
local but = Instance.new('TextButton',frame)
but.Text = "ESP On"
but.TextColor3 = Color3.fromRGB(255,255,255)
but.Size = UDim2.new(0.7,0,0.3,0)
but.Position = UDim2.new(0.15,0,0.5,0)
but.BorderSizePixel = 0
but.TextScaled = true
but.BackgroundColor3 = Color3.fromRGB(66,134,244)
but.BackgroundTransparency = 0.4
for i,v in pairs(game.Players:GetChildren()) do
if v.Character ~= nil then
undo(v.Character)
end
end
but.MouseButton1Down:connect(function()
if but.Text == "ESP On" then
but.Text = "ESP Off"
on = true
for i,v in pairs(game.Players:GetChildren()) do
if v.Character ~= game.Players.LocalPlayer.Character and v.Character.Head:FindFirstChild('ScreenGui') == nil then
if v.Name ~= game.Players.LocalPlayer.Name then
if v.Character:FindFirstChild('Head') then
local bill = Instance.new('BillboardGui',v.Character.Head)
bill.Name = "thingyye"
bill.AlwaysOnTop = true
bill.Size = UDim2.new(2,1,2)
bill.Adornee = v.Character.Head
local txt = Instance.new('TextLabel',bill)
txt.Text = v.Name
txt.BackgroundTransparency = 1
txt.Size = UDim2.new(1,0,1,0)
txt.TextColor3 = v.TeamColor.Color
end
for a,c in pairs(v.Character:GetChildren()) do
if c.ClassName == "MeshPart" and c.Transparency ~= 1 then
doit(c)
elseif c.ClassName == "Part" and c.Transparency ~= 1 then
doit(c)
end
end
end
end
end
wait()
undo(game.Players.LocalPlayer.Character)
else
but.Text = "ESP On"
on = false
for i,v in pairs(game.Players:GetChildren()) do
if v.Name ~= game.Players.LocalPlayer.Name then
undo(v.Character)
end
end
end
end)
for i,v in pairs(game.Players:GetChildren()) do
v.CharacterAdded:connect(function()
if v.Name ~= game.Players.LocalPlayer.Name then
v.Character:WaitForChild('Head')
wait(1)
if on == true then
if v.Character ~= game.Players.LocalPlayer.Character and v.Character.Head:FindFirstChild('ScreenGui') == nil then
if v.Character:FindFirstChild('Head') then
local bill = Instance.new('BillboardGui',v.Character.Head)
bill.Name = "thingyye"
bill.AlwaysOnTop = true
bill.Size = UDim2.new(2,1,2)
bill.Adornee = v.Character.Head
local txt = Instance.new('TextLabel',bill)
txt.Text = v.Name
txt.BackgroundTransparency = 1
txt.Size = UDim2.new(1,0,1,0)
txt.TextColor3 = v.TeamColor.Color
end
for a,c in pairs(v.Character:GetChildren()) do
if c.ClassName == "MeshPart" and c.Transparency ~= 1 then
doit(c)
elseif c.ClassName == "Part" and c.Transparency ~= 1 then
doit(c)
end
end
end
end
end
end)
end
game.Players.PlayerAdded:connect(function(v)
v.CharacterAdded:connect(function()
if v.Name ~= game.Players.LocalPlayer.Name then
v.Character:WaitForChild('Head')
wait(1)
if on == true then
if v.Character ~= game.Players.LocalPlayer.Character and v.Character.Head:FindFirstChild('ScreenGui') == nil then
if v.Character:FindFirstChild('Head') then
local bill = Instance.new('BillboardGui',v.Character.Head)
bill.Name = "thingyye"
bill.AlwaysOnTop = true
bill.Size = UDim2.new(2,1,2)
bill.Adornee = v.Character.Head
local txt = Instance.new('TextLabel',bill)
txt.Text = v.Name
txt.BackgroundTransparency = 1
txt.Size = UDim2.new(1,0,1,0)
txt.TextColor3 = v.TeamColor.Color
end
for a,c in pairs(v.Character:GetChildren()) do
if c.ClassName == "MeshPart" and c.Transparency ~= 1 then
doit(c)
elseif c.ClassName == "Part" and c.Transparency ~= 1 then
doit(c)
end
end
end
end
end
end)
end)
gui.Enabled = true
game.Players.LocalPlayer:GetMouse().KeyDown:Connect(function(input)
if input == toggleKey then
if gui.Enabled == true then
gui.Enabled = false
else
gui.Enabled = true
end
end
end)