So I've been working on attempting to restore and fix BuildIntoGames' Guest Defense 1. So far, I've gotten most features functioning, but I've encountered this one error and I have no clue how to get past it. I've tried everything, but I'm fried at this point. I feel like the answer is really obvious, but I'm just not looking there.
The error that comes up is "Player is not a valid member of Workspace"
Anyways, here's the code. The error comes at line 3.
while true do
wait(3)
player = game.Players:findFirstChild("" .. game.Workspace.Player)
level = player.Level
script.Parent.Level.Text = "Level : " .. level.Value
end
Thanks a ton, I'd really appreciate the help.

5 comments
Do you ever have anything named "Player" exactly directly under workspace? If not, that's exactly what the error is saying.
Using game.Workspace.Player would work fine in other scripts, but it only seems to be this one that doesn't want to work
is it a local script or a server script? that might be a problem.
It's in ReplicatedStorage
Not a local script, just your normal script.