Hi! I want to be able to check when a remote function is fired from a client, but it says it can only be implemented on the server. By the way, my game has a custom chat system.
game:GetService('ReplicatedStorage').ClassicChatSystemChatEvents.Chat.OnServerInvoke = function(msg) if string.sub(msg, 1, 9) == (prefix.."clearchat") then for i=1, 4 do wait() send("Clearing chat...") end send("Done!") end end
situation fixed with a gui LOL
You can use
game:GetService('ReplicatedStorage').ClassicChatSystemEvents.Chat.OnClientEvent
inside of a localscript and use The script below for a serverscript run to localscript!
game:GetService('ReplicatedStorage').ClassicChatSystemEvents.Chat:FireClient(game.Players.PlayerName, Argument1, Argument2, Argument3)