forked from eprx/scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
piggy esp
85 lines (85 loc) · 1.82 KB
/
piggy esp
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
function changename()
for c,n in pairs(game.workspace:GetDescendants()) do
if n:IsA("SpecialMesh") then
if n.MeshId == "rbxassetid://524706126" then
n.Parent.Name = "Gear"
else
if n.MeshId == "rbxassetid://456878024" then
n.Parent.Name = "Key"
else
if n.MeshId == "16198309" and n.MeshType == "FileMesh" then
n.Parent.Name = "Hammer"
else
if n.MeshId == "rbxassetid://741743576" then
n.Parent.Name = "Carrot"
else
if n.MeshId == "16884681" then
n.Parent.Name = "Wrench"
else
if n.MeshId == "rbxassetid://725833400" then
n.Parent.Name = "Ammo"
else
if n.MeshId == "72012879" then
n.Parent.Name = "Gun"
else
if n.MeshId == "120607730" then
n.Parent.Name = "CarnivalHammer"
else
if n.Parent.BrickColor == "Burnt Sienna" then
n.Parent.Name = "Plank"
else
if n.Parent.BrickColor == "Really black" then
n.Parent.Name = "KeyCard"
else
if n.MeshId == "27787143" then
n.Parent.Name = "Extinguisher"
else
if n.MeshId == "12891705" then
n.Parent.Name = "Dynamite"
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
changename()
for i,v in pairs(game.workspace:GetChildren()) do
if v:IsA("Folder") then
for i3,v3 in pairs(v:GetChildren()) do
if v.Key then
for i2,v2 in pairs(v:GetDescendants()) do
if v2:IsA("Part") or v2:IsA("UnionOperation") then
local esp = Instance.new("BillboardGui", v2)
esp.AlwaysOnTop = true
esp.Enabled = true
esp.MaxDistance = math.huge
esp.Size = UDim2.new(1, 1, 1, 2)
esp.Active = true
local esp1 = Instance.new("Frame", esp)
local esp2 = Instance.new("TextLabel", esp)
esp.AlwaysOnTop = true
esp.Enabled = true
esp.MaxDistance = math.huge
esp.Size = UDim2.new(1, 1, 1, 2)
esp.Active = true
esp2.Text = esp2.Parent.Parent.Name
esp2.Size = UDim2.new(1,1,1,2)
esp2.TextColor3 = esp2.Parent.Parent.Color
esp2.BackgroundTransparency = 1
esp2.TextSize = 15
esp2.Font = "SciFi"
end
end
end
end
end
end