Hi, this is a concept question. The title may be hard to understand, but it is self-explanatory. I have a mirror that generates models on the other side of itself, and these models are meant to, obviously, replicate the world on the other side of the mirror. This said mirror generates everything inside of the workspace and inverts it onto the other side of the mirror. To do this, it selects all bricks in the workspace (including character bricks) to copy and invert. So, I was wondering, how would I exclude a specific set of bricks from this mirror selection? As in, I want a whole model to not be selected and copied by the mirror. So, how would I exclude this specific model from the mirror's whole workspace selection? Is there a specific property I can use or a chain of statements?
--Here's the code, in case you need it to figure out a solution. It relies on a few other modules but this is the main block of code and the one where hopefully I can insert the model
--exclusion statement
local player = game:GetService("Players").LocalPlayer
local character; repeat wait() character = player.Character until character
local camera = game:GetService("Workspace").CurrentCamera
local rs = game:GetService("RunService").RenderStepped
local reflections = require(script:WaitForChild("reflections"))
local mirrors = game:GetService("Workspace"):WaitForChild("Mirror model")
rs:connect(function()
reflections:clearCharacters()
local characters = {}
for _, player in pairs(game:GetService("Players"):GetPlayers()) do
table.insert(characters, player.Character)
end
for _, mirror in pairs(mirrors:GetChildren()) do
if mirror:IsA("BasePart") then
reflections:drawWorld(mirror, game:GetService("Workspace"), {mirrors, unpack(characters)})
reflections:drawCharacters(characters, mirror)
end
end
end)
