TextBox Text Error

script.Parent.MouseButton1Click:Connect(function(player)
	if game.Players[script.Parent.Parent.player.Text] then
		print("a")
	else
		print(script.Parent.Parent.player.Text)
	end
end)

ERROR :

  19:53:48.890   is not a valid member of Players "Players"  -  Server - Script:2
  19:53:48.890  Stack Begin  -  Studio
  19:53:48.891  Script 'Players.Berat_HighMode.PlayerGui.phone_ui.scene_bank.frame.TextButton.Script', Line 2  -  Studio - Script:2

Text inputted to a TextBox through the client will only update for the client. You need to use a RemoteEvent to tell the server what the new text is.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.