I’ve been trying to make this function from a module work, however it works without the if statement, but if do it with the if statement it’ll refuse to work. Is this a possible bug or is it just because I’m doing this incorrectly, and yes I made sure it’s correctly done. However it will not properly listen for the type I’m trying to to get from the function.
Code:
Extra Code:


1 Like
The setting is false, so it fails the if statement. Add ~= nil
to the end of the if
1 Like
Thank you! That completely fixed it, I was unsure at first, rookie mistake for me to make lol.
Modules are just something I need more understanding on, but besides that thank you!
2 Likes
To second this. Rookie mistakes are common you will always make them regardless of your skill level.
I used to beat myself up often for mistakes and it only degraded my enjoyment and desire to program.
Long story short, mistakes or failures are only (first attempts in learning) and are needed to progress, sorry if this is cringe or whatnot but I felt it needed to be said.
2 Likes
well said, thank you for your response 
1 Like