How to wait until a player clicks to continue a server script?

local player = game.Players:WaitForChild(Player).Name

For some reason I thought this was the code before, I must’ve been tired.