If you only needed it for the Text property specifically, you could check if the instance was something that has a Text property (TextLabel,TextBox,TextButton) before referring to the property:
1 | for i,v in pairs (game.Players:GetDescendants()) do |
2 | if v:IsA( "TextLabel" ) or v:IsA( "TextBox" ) or v:IsA( "TextButton" ) then |
3 | print ( "text property is here!" ) |
However, if you are using this to try and alter GUIs through a server script, it will not work. Instead, you might need to use FireAllClients() with a RemoteEvent, and check if it has the Text property in a LocalScript.