Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 4 years ago
Edited 4 years ago

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

Log in to vote
0
Answered by
Lakodex 711 Moderation Voter
4 years ago
Edited 4 years ago

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)
0
nope iiDkOffical 109 — 4y
Ad

Answer this question