So, I'm try to make something.. Yes something, and for it I need to get the value of what the player says, I tryed stuff from the wiki and made this and it... Doesn't work. :/
function playerjoins(Player)
Player.Chatted:connect(message)
end
function message(msg)
local text = Instance.new ("StringValue")
text.Parent = script
text.Value = msg
script.Parent.Text = text.Value
end
game.Players.PlayerAdded:connect(playerjoins)

2 comments
ALSO, it's not in a local script, it's in a normal one.
This is in a gui right?