Table.find wont find v.Name?

I want to make a fe2 game
It prints nil and also doesn’t work
I tried making it a local

local lift = {"Roblox"} -- this is not part of my script I use a touch event to insert players to table this is for you to test :D
function loadscreen()
	warn("Loading screen..")
	for i, v in pairs(game.Players:GetChildren()) do
		print(v.Name)
		local plr = table.find(lift, v.Name)
		print(plr)
		if plr then
			warn("Loading gui")
			local gui = game.ReplicatedStorage.ScreenGui:Clone()
			gui.Parent = v.PlayerGui
			gui.Enabled = true
		end
	end
end

I tested it out, and it’s probably because the value ISN’T in the table. What is the script for inserting player names and the table.

Is there something that’s named “Roblox” inside the Player’s Children…?

Like I said in the code that is a example for you to test

It’s in the table though I tested it while I was in the table

I even printed the table and it showed me in it

So when a player steps on the lift it gets inserted in the table and when the round starts it finds that player and moves it to the table but I created a loadscreen function so the player can wait while it’s loading

I found what the problem is it was v.Name was the problem so I changed it to v lol

It might be because the table is a list of the player objects, not their names. I don’t know for sure though. I’m not the most talented scripter. Try:

local plr = table.find(lift, v)

That’s odd. Could you try:

local plr
for i = 1, #lift do
    print(lift[i])
    if lift[i] == v.Name then
        plr = v; print("player found")
    end
end