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
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