Help with player chatted

I wanted to make a sound that plays when someone talks but this happens??

You need Player.Chatted, not Players.PlayerChatted. Consider also making a proper chat module within the Lua Chat System.

local player = game.Players.LocalPlayer

player.Chatted:Connect(function(msg)
	if msg == "Play sound!" then
		--play sound or whatever here
	end
end)

Code example for anyone still confused.