How to get the message the player said in the chat

Have you created the remote event in the Rep Storage? For me all is working :frowning:

1 Like

Oh sorry it’s me ! :sweat_smile:
I’ve placed you’re script for the client in this :

local Character = game.Players.LocalPlayer.Character
local Head = Character.Head
local Eyes = Head.Eyes
local ClosedEyes = Head.ClosedEyes

while true do
	Eyes.Transparency = 0
	ClosedEyes.Transparency = 1
	wait(3.5)
	Eyes.Transparency = 1
	ClosedEyes.Transparency = 0
	wait(0.15)
end

game.ReplicatedStorage.msg.OnClientEvent:connect(function(msg)
	print(string.len(msg))
end)

But when I put your script in another local script with only you’re code it does work ! :grinning:
Thanks you very much ! :grin:
Have a good day ! :wink:

So when i’m doing this it does work :grinning: :

local Character = game.Players.LocalPlayer.Character
local Head = Character.Head
local Eyes = Head.Eyes
local ClosedEyes = Head.ClosedEyes

game.ReplicatedStorage.msg.OnClientEvent:connect(function(msg)
	print(string.len(msg))
end)

while true do
	Eyes.Transparency = 0
	ClosedEyes.Transparency = 1
	wait(3.5)
	Eyes.Transparency = 1
	ClosedEyes.Transparency = 0
	wait(0.15)
end

Go check my game, thanks to all of you I finally finished the FacialAnimation of my game ! :grinning:

Said a chat in the game if you want to see the player talk :wink:

1 Like