The Minefields
3.3k Views
414 Executions

Highlight Mines

The Minefields
Xabisco
XabiscoFirst script
10 months ago
Please login to perform these actions:

Highlight Mines is a The Minefields script for Roblox, uploaded to ScriptBlox on Jan 1, 2026.

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Highlight Mines Work in all modes - Some Issues in Hard mode

View Raw
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Workspace = game:GetService("Workspace")

local activeMinesList = {}
local allMinesData = {}

local function highlight()
    local minesFolder = Workspace:FindFirstChild("Mines")
    if not minesFolder then return end

    for _, child in ipairs(minesFolder:GetChildren()) do
        if child:FindFirstChild("DangerHighlight") then child.DangerHighlight:Destroy() end
        if child:FindFirstChild("SafeHighlight") then child.SafeHighlight:Destroy() end
    end

    local isActive = {}
    for _, name in ipairs(activeMinesList) do
        isActive[name] = true
    end

    for name, _ in pairs(allMinesData) do
        local mineInstance = minesFolder:FindFirstChild(name)
        if mineInstance then
            local hl = Instance.new("Highlight")
            hl.FillTransparency = 0.6
            hl.OutlineTransparency = 0.2
            
            if isActive[name] then
                hl.Name = "DangerHighlight"
                hl.FillColor = Color3.new(1, 0, 0) -- RED = DANGER
                hl.OutlineColor = Color3.new(1, 0, 0)
            else
                hl.Name = "SafeHighlight"
                hl.FillColor = Color3.new(0, 1, 0) -- GREEN = SAFE
                hl.OutlineColor = Color3.new(0, 1, 0)
            end
            hl.Parent = mineInstance
        end
    end
    print("[MineFields] Highlights Updated. Dangerous Mines: " .. #activeMinesList)


Comments

4
Log in to join the conversation. Login
umutemir3878's profile picture
umutemir38786 months ago

When update ?

1
HELLBENTBOI's profile picture
HELLBENTBOI7 months ago

Doesnt work

1
Henry_NotThere's profile picture
Henry_NotThere9 months ago

Very good script. (Works on Xeno!)

1
ScriptTrol's profile picture
ScriptTrol10 months ago

Best!

1