Hello, Im OriginalDevelops, Im currently trying to make a custom chat, when player click the send button, it will fire the server and then clone a text with Player Name and the Text that player input! But it give me an error 10:56:22.792 -Players.OriginalDevelops.PlayerGui.StarterMenu.ChatFrame.Input.SendButton.ServerClient:5: attempt to concatenate string with userdata
MY SCRIPT
script.Parent.Send.OnServerEvent:Connect(function(plr)
local newText = game.ReplicatedStorage.ChatText:Clone()
newText.Name = "ChatNumber".. #script.Parent.Parent.Parent.Holder.TextStorage:GetChildren()
newText.Text = plr.Name.." : ".. script.Parent.Parent:GetPropertyChangedSignal("Text")
newText.Position = UDim2.new(0, 0, newText.Position.Y.Scale + (.008 * #script.Parent.Parent.Parent.Holder.TextStorage:GetChildren()), 0)
newText.Parent = script.Parent.Parent.Parent.Holder.TextStorage
script.Parent.Parent.Parent.Holder.CanvasSize = UDim2.new(0,0,script.Parent.Parent.Parent.Holder.Position.Y.Scale + (0.1), 0)
end)