local PlayersinSt = {}
local PlayersinCM = {}
local PlayersinCM1 = {}
local PlayersinCM2 = {}
local PlayersinGK = {}
local PlayersinLW = {}
local PlayersinRW = {}
local MaxPlayerinSt = 1
if Positions.Frame.Visible == true then
Positions.Frame.Visible = false
elseif Positions.Frame.Visible == false then
for i,v in pairs(Positions.Frame:GetChildren()) do
v.MouseButton1Click:Connect(function()
--local tablelist = "Playersin".. (v.Name)
print("Button clicked")
if not table.find("Playersin".. (v.Name), player) then
print("Player added")
table.insert("Playersin".. (v.Name), player)
print(player.Name)
v.Text = player.Name
end
end)
end
I need to call the table from a string value I have no idea how to do that since Im using a loop.
This is the line I need help
table.insert(“Playersin”… (v.Name), player)
The error says that it is a string value not table. I need to get the table from up there.