Textbox keeps changing the string value into my username

client:

script.Parent.FocusLost:Connect(function()
	local text = script.Parent.Text
	local rs = game:GetService("ReplicatedStorage"):WaitForChild("RPFL"):FindFirstChild("Officiating"):WaitForChild("Scoreboard").HomeName
	if text then
		rs:FireServer(text)
	end
end)

server

local RS = game:GetService("ReplicatedStorage")
local EventFolder = RS:WaitForChild("RPFL"):WaitForChild("Officiating")
local TeamProperties = RS:WaitForChild("TeamProperties")

EventFolder.Scoreboard.HomeName.OnServerEvent:Connect(function(text)
	TeamProperties:WaitForChild("HName").Value = tostring(text)
end)

server

local RS = game:GetService("ReplicatedStorage")
local EventFolder = RS:WaitForChild("RPFL"):WaitForChild("Officiating")
local TeamProperties = RS:WaitForChild("TeamProperties")

EventFolder.Scoreboard.HomeName.OnServerEvent:Connect(function(Player, text)
	TeamProperties:WaitForChild("HName").Value = tostring(text)
end)
1 Like

all it took is just to add a Player into the function?
Thanks

1 Like

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