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

How to check if someone has a stringvalue?

I want to check if a player has a string value but don't need to know how much is in the value if that makes sense. like example boolvalues you can check if they are true how can I check in a stringvalue if something is in the value.

1 answer

✓ Accepted answer

Something like this. This checks to see if the stringvalue is empty then if it is it does nothing but if it isn't you can make it do what you want. Script:

if Yourstringvaluename.Value == "" then
end
else 
--put you want here

Note if this doesn't work remove the end and replace with something else Hope this helps!!

2 comments

0

Thx for the help btw at first the script didn't work until I played around with it

0

Your welcome and sorry about that I didn't test it out

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