There is no error in the output and i dont know why its not working so i was wondering if someone could help. --this script is in workspace
players = game.Players:GetChildren()
game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(function(msg)
for i = 1,#players do
chatbox = script.Chat:Clone()--clones a gui in the script
chatbox.Text = player.Name-- changes the name of the gui to the players name
chatbox.ChatText = msg-- changes the text guis name
space = players[i].PlayerGui.Chat.ChatSpace--gets the players space for chats
chatbox.Parent = space--puts the chat in the chatspace
end
end)
end)

2 comments
You will get more help if you take the time to make your question legible. Place code within a code block. The code you placed in your question includes comments which can't be distinguished from your code.
it glitched i remember putting it in the code block.