So I have a text box and you can type in a city and it changes the string values value to the city you typed in. It works when I solo test it but when I test it on Roblox it doesn't work. What kind of remote event or function do I need?
local gui = script.Parent.Parent
local TinCity = script.Parent.City
local player = game:GetService('Players').LocalPlayer
local play2 = game.Workspace:FindFirstChild(player.Name)
print(play2)
TinCity.InputChanged:Connect(function()
local CityV = play2.PlayersDetails.City
CityV.Value = TinCity.Text
if CityV.Value == TinCity.Text and CityV.Value ~= "" and CityV ~= "N/A" then
gui.Enabled = false
end
end)

2 comments
You need to use a remote event to set the text on the server side to display to all player. You also need to filter this text as it may contain profanity.
What would the remote event look like? I have tried it and I can't get it to work.