Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to check if someone has a stringvalue?

Asked by 1 year ago
Edited 1 year ago

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

Log in to vote
0
Answered by 1 year ago

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!!

0
Thx for the help btw at first the script didn't work until I played around with it 666_brithday 103 — 1y
0
Your welcome and sorry about that I didn't test it out theking66hayday 841 — 1y
Ad

Answer this question