--// variables //--
local debounce = false
local placement = script.Parent.Parent.Values.Placings
local amount = game.ReplicatedStorage.Values.Amount
local finished = {}
local finishedplrs = {}
--// touched script //--
script.Parent.Touched:Connect(function(hit)
if debounce == false then
debounce = true
if hit.Parent:FindFirstChild("Humanoid") then
if game.Players:FindFirstChild(hit.Parent.Name) then
local plr = game.Players:FindFirstChild(hit.Parent.Name)
if plr.TeamColor == BrickColor.new("Dusty Rose") then
print(plr.Name)
for i, v in pairs(finishedplrs) do
if v.Name == plr.Name then
print(plr.Name .. " already finished.")
else
table.insert(finished, 1, plr.leaderstats.Team.Value)
table.insert(finishedplrs, 1, plr.Name)
print(finished[1] .. " - " .. finishedplrs[1])
end
end
local debounce = false
end
end
end
end
end)
print(plr.Name)
works (line 16) but
print(finished[1] .. " - " .. finishedplrs[1])
doesn't work. (line 23)

2 comments
so i found out that the script isn't inserting neither of them
yes