My client script contains:
game:GetService("LogService").MessageOut:Connect(function(message, messageType)
AddLocalMessage(message, messageType, os.time())
end)
When I print "hi" from a server script, the client still runs the AddLocalMessage function.
Is there a way to detect whether a log message came from the server or the client? If so, how?
You can’t, Roblox has ServerMessageOut but it’s in RobloxSecurityScripts.
You can write manually add like what kind script it came from (and add logic of sending what kind script is)
like if it’s server-side then server-side or client-side then client-side
1 Like
system
(system)
Closed
3
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.