What argument do I need for this event?

I’m trying to make a variable for a GetPlayerByUserId function for a function that checks if a value equals a certain number. And I don’t really know about what argument I need for the function.

local coinNumber = game.ServerStorage.CoinNumber

coinNumber.Changed:Connect(function()
	if game.ServerStorage.CoinNumber.Value == 10 then
		local player = game.Players:GetPlayerByUserId()
 end
end)

Any help?

Please read the API, before posting: Players | Documentation - Roblox Creator Hub
You had to insert the user id of a player as a parameter.

oh sorry about that. I’ll do that next time.