As you can see, I have set my string value to nothing so I am expecting that the word “Bye” will be printed in the output message.Nonetheless, neither “Bye” word nor any related warning or error is printed in the output message.At that moment, I was confused and dumbfounded.
I have tried several solution like changing the double equal into ~= and adding another else statement down there.The code is as shown below:
If game.Workspace.OwnValue.Value ~= nil then
print ("Bye")
else print ("Hi")
end
This solution somehow worked yet I didn’t use it as I want to keep my script as short as possible.Hence, I would like to request for some help to solve this problem.Thank you very much