Run it
Copy the script and paste it into your executor.
local Workspace = game:GetService("Workspace")
local folders = {
Workspace:WaitForChild("TripMines"),
Workspace:WaitForChild("Traps")
}
-- Create 2D billboard
local function addBillboard(model)
if not model:IsA("Model") then return end
-- Prevent duplicates
if model:FindFirstChild("TrapBillboard") then return end
local basePart = model:FindFirstChildWhichIsA("BasePart", true)
if not basePart then return end
-- BillboardGui
local billboard = Instance.()
billboard.Name =
billboard.Size = .(, , , )
billboard.StudsOffset = .(, , )
billboard.AlwaysOnTop =
billboard.Parent = basePart
circle = .()
circle.Size = .(, , , )
circle.BackgroundColor3 = .(, , )
circle.BorderSizePixel =
circle.Parent = billboard
corner = .()
corner.CornerRadius = .(, )
corner.Parent = circle
_, folder (folders)
_, child (folder:())
(child)
folder.ChildAdded:((child)
.()
(child)
)
Basically shows every trap tripmine on the game
Tripmine Trouble 馃挘