...Value = ...Text (Value is not receiving Text)


The title might seem weird but the problem is about string values, number values not receiving a text that has been written by a player in a textbox.

An example from my code:

		player.ServerCreator.Server.Value = script.Parent.Parent.ServerName.Text

I have to mention that there were no errors being made.

Properties do not replicate between server and client. You can test this out in studio by clicking between server and client and checking out the properties in the text box.


Use remote events instead to send from client to server.

Wait but, I was using this code in a normal server script.

And this worked with some older code, but I had to rewrite it because of some database problems.

Exactly it doesn’t replicate,

Client, typed in some text

Server, doesn’t replicate, remains the original text value “Test”:

Server script will only see “test” and not the client “This is some text”

Ohh, I am gonna go into the game to check, since I got a “panel” that shows all values in my game. I will come back with a result.

Yea rip, it doesn’t work. (char limit)

Well, you can pass remote event in.

local RemoteEvent = game.ReplicatedStorage:WaitForChils("RemoteEvent")
local TextBox = script.Parent



local RemoteEvent = game.ReplicatedStorage:WaitForChils("RemoteEvent")
local TextBox = game.StarterGui.ScreenGui:FindFirstChild("TextBox")

RemoteEvent.OnServerEvent:Connect(function(player, stringOfText)
      print(player .. " Fired the remote event!")
      TextBox.Text = stringOfText

local Replicated = game:GetService("ReplicatedStorage")
local Remote = Replicated:WaitForChild("RemoteEvent")

local TextBox = script.Parent

TextBox.FocusLost:Connect(function(EnterPressed, InputObject)

local Replicated = game:GetService("ReplicatedStorage")
local Remote = Replicated.RemoteEvent

Remote.OnServerEvent:Connect(function(Player, Text)
	print(Player.Name..": "..Text)
1 Like

Alright, I used remote events and sent all the data, but it just doesn’t show up or other data shows up from other values.

And I got an important question. How does a remote event help when (before those) I had a server script? (I mean, instead of a local script and a server script, I only had a server script.)

First of all, try all of the solutions above.
If they don’t work, create a new Value inside of StarterPlayerScripts and make a script that sets the text to Value.

local Value = game.Players.LocalPlayer.ValueName

...ServerName.Text = Value.Value

Maybe this will work. Not sure if this is what you meant though.

Server script cannot read the text property,You Must Fire a remote event to a server script,Then check the value fired and check everything you want to check like validity in the serverscript to prevent hacker,

Yea, but the data wasn’t sent correctly or it wasn’t sent at all. For example, I wanted it to show the game mode, it showed the difficulty. And an interesting thing is that the older code actually worked and there was no usage of a remote event or bindable event.

try printing the data from client,If that did not work,Then the problem may be your function on the client