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.
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