Invalid argument #3 (Instance expected, got string) [Please help!]

Greetings, I got an error here that I really don’t know how to fix. The script is a database. I uploaded the part where the error takes place.

The part of the script:
Screenshot 2021-12-30 092921

The error:
Screenshot 2021-12-30 093012

Line 36 is:
Server.Value = ""

Please help me fix this error! Thanks.

What is Server.Value? Is it a StringValue?

1 Like

It is an ObjectValue (character limit)

You tried to put a string to it. If you want to make it empty put it to nil

Server.Value = nil
1 Like

It worked, thanks a lot! (character limit)

1 Like

Please mark the post that solved the problem as solution.

Umm… Didn’t I do it before you said that?

Nope you did not. Although, you just did it right now after my post.

It takes a long time before other people can see the solution when the owner of the post marks the solution

I am not gonna continue to argue on this cause I got to head back in the studio, but why would you comment with that on a post that someone already helped and it was successful? Plus that it wasn’t even a solution, it was to remind me of something I already have done…

I am not arguing and I realized it takes time before the post is marked. I commented because I felt the need that the person who solved it needs credit. I am truly sorry for the inconvenience.