If statement not checking

I just tried this script I made and @Rescriptedd was sort of right, when you dont have it assigned to a value it just is an empty string

image

I replaced the elseif to just an else and I added .Value to

Clicked.leaderstats.BagType

Yep, you should check if the value is "", not nil.

1 Like

It wasnt even an error you just didnt know that a string value’s value wasnt nil when it was nothing

1 Like

oh yea. I was thinking it would be like a object value were it could be nil.

1 Like

Did you read this post?

30chars

Yea but I forgot that a string value can’t have nil.

Oh :laughing:

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.