How can im find Variables

hi im trying do get Variables without using number

local BillboardGui2 = Instance.new("BillboardGui")
BillboardGui2.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
BillboardGui2.Active = true
BillboardGui2.LightInfluence = 1
BillboardGui2.AlwaysOnTop = true
BillboardGui2.Size = UDim2.new(2, 0, 1, 0)
BillboardGui2.ClipsDescendants = true
local Frame2 = Instance.new("Frame")
Frame2.Size = UDim2.new(1, 0, 1, 0)
Frame2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Frame2.Parent = BillboardGui2
local BillboardGui1 = Instance.new("BillboardGui")
BillboardGui1.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
BillboardGui1.Active = true
BillboardGui1.LightInfluence = 1
BillboardGui1.AlwaysOnTop = true
BillboardGui1.Size = UDim2.new(2, 0, 1, 0)
BillboardGui1.ClipsDescendants = true
local Frame1 = Instance.new("Frame")
Frame1.Size = UDim2.new(1, 0, 1, 0)
Frame1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Frame1.Parent = BillboardGui1 
local b = 1
(BillboardGui..b).Parent = game.Players.LocalPlayer.PlayerGui

You can store all Variables in a table and you can reference them using [].

1 Like