Description
When LogService.MessageOut
is run from the client within the Roblox Studio environment, it is able to detect server output. This behavior is not present from within the Roblox Player. As a result, outputted text is repeated in an unending cycle.
Reproduction
The issue can be consistently reproduced with the following code:
--Server
game:GetService("ReplicatedStorage").RemoteEvent.OnServerEvent:Connect(function(player,message)
warn(message)
end)
wait(3)
print(1)
--Client
game:GetService("LogService").MessageOut:Connect(function(message,messageType)
game:GetService("ReplicatedStorage").RemoteEvent:FireServer(messageType.Name.." from "..game:GetService("Players").LocalPlayer.Name..": "..message)
end)
Actual Behavior
LogService.MessageOut
is fired when output appears on the server, despite running on the client. The issue is exclusive to the Roblox Studio environment.
Expected Behavior
LogService.MessageOut
should only return output which is within its own context level.