Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

I'm trying to print something if 'debugging = true' but it isn't working. Can someone help me?

Hello, I'm trying to print a message if "local debugging = true" but it isn't working. Here's a code sample: local debugging = true |||||||||||||||||||||||||||||||||||||||||||||||||||||| if debugging = true then do print("Getting MainUI...") end end

1 answer

✓ Accepted answer

when you want to test if a value is true or false you have to use == and you dont use do in if statements, you use do in for loops so your code would need to have if debugging == true then print("Getting MainUI...") end end

1 comment

0

The keyword do itself starts a loop.

This discussion is preserved as it was. New answers, comments, and votes are closed.