I'm making something in my discord so that you can see whenever I join the game, however I don't want it to send a message using a webhook when I'm in studio? I think I have to use a if statement but I don't know.
✓ ANSWER ACCEPTED
`Solved` How do I figure out if the player is in Studio?
1 answer
✓ Accepted answer
local RunService = game:GetService("RunService")
if RunService:IsStudio() then
print("I am in Roblox Studio")
else
print("I am in an online Roblox Server")
end
https://developer.roblox.com/en-us/api-reference/function/RunService/IsStudio
This discussion is preserved as it was. New answers, comments, and votes are closed.
