RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"check if a instance called 'boolean' is there, if it isnt do a function"
-- server script local function checkForBooleanInstance() local booleanInstance = game.Workspace:FindFirstChild("boolean") if not booleanInstance then -- Replace 'doSomething' with the actual function you want to execute doSomething() end end -- Example function to be called if 'boolean' instance is not found function doSomething() print("The boolean instance was not found. Executing function.") -- Add the code for the function you want to execute here end checkForBooleanInstance()