Hello,
I am wondering how do you check if a StringValue is empty.
while true do
wait(0.01)
if script.Parent.Parent.Answers.Seven ~= "" then
print("Hi")
end
end
Hello,
I am wondering how do you check if a StringValue is empty.
while true do
wait(0.01)
if script.Parent.Parent.Answers.Seven ~= "" then
print("Hi")
end
end
You should do a Changed event. Doing the loop to check may cause some/a lot of lag in your game.
script.Parent.Parent.Answers.Seven.Changed:Connect(function()
if script.Parent.Parent.Answers.Seven.Value ~= '' then
print('Hi')
end
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
StringValue.Value ~= ""
Wow.. Completely forgot the .Value. OML. Thanks :)