I am wanting to locate a player. The player is not specific and could be anyone who joins. Currently I am using:
local character = game.Workspace.Player
local player = game.Players:GetPlayerFromCharacter(character)
However, I am greeted with this error:
Player is not a valid member of Workspace
It is currently 3am and I am having a dumb moment. So could someone point out my mistake. Thanks :)

1 comment
It is running from a server script.