Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I check when a remote function is fired from client? [closed]

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

1 answer

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)

1 comment

0

nope

This discussion is preserved as it was. New answers, comments, and votes are closed.