Logservice returning both server-sided and client-sided logs while testing in studio

i am working on some sort of admin commands script and i wanted to use logservice to display the output logs on the admin panel

when i try doing it logservice gives me both the client-sided and server-sided logs when i’m only trying to just get 1 of them in roblox studio

however when i try testing on the multi-client simulator or just from the roblox app everything seems to be working fine

i think thats just how it works for roblox studio because its easier to test if the client can get access to both server and client output

edit: you can use runservice:isServer() and runservice:isStudio to fix

roblox studio and the roblox player work differently, the roblox player uses one of roblox’s servers, but roblox studio uses your computer. so i believe this is a glitch where roblox studio is processing it from the server, its hard to explain.

i know, i was thinking of using runservice:isstudio but then i couldnt completely achieve what i was trying to make so i decided to ask the devforum if there was a solution

I believe that when you do a single player test in Roblox Studio you are able to view both client and server side outputs due to your testing environment acting as both a server and the client. Instead, what you can do to test this is try to do a two player test in studio. This will create two client windows and one server window, where you can view the outputs needed.