Parameter Issue in Server-Client Script

Hello! I’m trying to create a character customization system, but when I have the user confirm their outfit, I receive an error.

4 Likes

i dont see anything called “thePants” anywhere in the storage or defined anywhere, did you mean to use currentPants?

It’s an argument from confirm.OnServerEvent:connect

1 Like

Oh yeah, i see it now

23 Likes

Haha, I like the image xd. Idk why I chose to use screenshots, it was some graphics practice, but what would I do to change it and make it visible. I thought I used parameters there for that?

3 Likes

Send a value that the string can understand, like a string.
So instead of sending an Instance BluePants, you can just send a string “blue_pants”.

It seems like the problem is that you don’t send the value of currentPants and currentShirt the way you do for hairStyle. This depends on how it is set up, but I think you should try to replicate what you have that works for the hair.

Sounds good, I’m going to attempt that now.

Ended up recreating it, more efficiently. It works now :slight_smile:

1 Like

Then you should mark the post as solved. Click the box with a checkmark, next to the like button.