Categories > Exploiting > Scripts >

Player.Chatted doesn't work anymore?

Posts: 30

Threads: 8

Joined: Apr, 2018

Reputation: 0

Posted

I have a script that prints player's chat messages in Developer's Console (F9) and in in-game notifier, I used it for games that doesn't have Chat UI and/or heavily rely on BubbleChat feature, it used to be working in previous months (can't recall when), but it stopped sending messages in both console and in-game notifications after said month has passed

Here's the script:

-------------------------------------------------------------------
local Players		=	game:GetService ("Players");
local LocalPlayer	=	Players.LocalPlayer;
local StarterGui	=	game:GetService ("StarterGui");
-------------------------------------------------------------------
local function System_Notify (Title,Text,Icon, Duration)
	StarterGui:SetCore ("SendNotification", {
		Title		= Title;
		Text		= Text;
		Icon		= Icon;
		Duration	= Duration;
	});
end
-------------------------------------------------------------------
local function Logs ()
	for _, Player in pairs (Players:GetPlayers ()) do
		if (Player.Name ~= LocalPlayer.Name) then
			Player.Chatted:Connect (function (Message)
				local Player_Name	=	"";
				if (Player.Name ~= Player.DisplayName) then
					Player_Name	=	"[" .. Player.DisplayName .. "] " .. Player.Name;
				else
					Player_Name	=	Player.Name;
				end
				System_Notify (Player_Name, Message, Players:GetUserThumbnailAsync (Player.UserId, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size420x420), 3);
				print (Player_Name .. ': "'..Message..'"');
			end);
		end
	end
	Players.PlayerAdded:Connect (function (Player)
		if (Player.Name ~= LocalPlayer.Name) then
			local Player_Name	=	"";
			if (Player.Name ~= Player.DisplayName) then
				Player_Name	=	"[" .. Player.DisplayName .. "] " .. Player.Name;
			else
				Player_Name	=	Player.Name;
			end
			System_Notify ("Player Joined", Player_Name .. " joined.", "rbxasset://textures/ui/WarningIcon.png", 5);
			warn ("System: " .. Player_Name .. " joined.");
			Player.Chatted:Connect (function (Message)
				System_Notify (Player_Name, Message, Players:GetUserThumbnailAsync (Player.UserId, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size420x420), 3);
				print (Player_Name .. ': "'..Message..'"');
			end);
		end
	end);
	Players.PlayerRemoving:Connect (function (Player)
		if (Player.Name ~= LocalPlayer.Name) then
			local Player_Name	=	"";
			if (Player.Name ~= Player.DisplayName) then
				Player_Name	=	"[" .. Player.DisplayName .. "] " .. Player.Name;
			else
				Player_Name	=	Player.Name;
			end
			System_Notify ("Player Left", Player_Name .. " left.", "rbxasset://textures/ui/WarningIcon.png", 5);
			warn ("System: " .. Player_Name .. " left.");
		end
	end);
end
Logs ();
-------------------------------------------------------------------


Maybe Roblox patched it and made it only work in server-side? It only  worked in roblox studio and in my game
I can't tell the cause, and currently looking for alternatives like TextService, was planning to use others like PlayerChatted, but unfortunately it is studio exclusive feature, and Chat.Chatted was also Server-Side exclusive feature

Any advice or suggestions are highly appreciated, thanks in advance

  • 0

­­­

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )