So im trying to figure out how to get the player with a server script my game is a solo game so i feel like looping through all the players constantly would be useless is there a better way?
my attempt
local plr = game.Players:WaitForChild("Player")
print(plr.Name)
this waits forever until it yields ;'/

1 comment
local player = game.Players:GetPlayers()[1] or game.Players.PlayerAdded:Wait()