So, I’m keeping my ViewportFrames stored in a table:
local _ViewportFrames = {}
Each _ViewportFrame will have two variables - A & B:
_ViewportFrame[Child] = {_1 = PortalCass.FromPart(_Model[Child]["_1"], Enum.NormalId.Front, Player:WaitForChild("PlayerGui")), _2 = PortalCass.FromPart(_Model[Child]["_2"], Enum.NormalId.Front, Player:WaitForChild("PlayerGui"))}
When I want to remove the required variables, I’m attempting to index through the table using:
for i = 1, #_ViewportFrames do end
However, I’m getting no results. Not even a print-out when I’m attempting to debug.
PortalCass.Remove = function(Child)
for i = 1, #_ViewportFrame do
if _ViewportFrame[i] == Child then
print("Found!")
end
end
end