Weird error: String expected got string

Try doing tostring(v) (Not sure if it will work but try it anyway ig)
Edit: Read through your code, it should work…

1 Like

Try

Inst.Value = tostring(v)

The serialized cframes is already a string tho

Actually my post won’t work for you, it will interfere with your NumberValue, so disregard my post. Can you do print(typeof(SerializedRecording)) and print(SerializedRecording) in your code? Just post what they send here.

image

Tried adding it but still the same

It isn’t a fix, its just supposed to detect what the value gives…

Also what is ServerScriptService.ServerEvents Line 19?

I mean the tostring(v) fix that you sent earlier not the print statement

The inst.value = value (which is the line 4 of the function)

Yea disregard that post because I didn’t read your code properly. Try doing the prints just to see what is actually being outputted.

the recording is a table of cframes

and the serializecframes should return a string

Just use the print just in case it isn’t what you think it is.

How long is the string? iirc, if the string being set a property is too long, that error is outputted (It’s very strange). If the string isn’t long enough to hit the limit, I’m not sure what the issue could be.

True, esp because position values can be very large because of decimals. You may want to cap the positions to a certain decimal point if you get what I mean.

The string is extremely long cuz it’s a recording of a player’s obby run

I suggest segmenting the string into multiple values, putting the value instances into a folder, and saving the folder as a whole.

You may want to chop it down into individual sections as it’s most likely hitting the maximum limit for a StringValue

1 Like

It’s max size is 200k chars tho and i haven’t gotten the string too long error

Can you try the print? I wanna see what is being outputted.

Sometimes, the error doesn’t occur. I had this problem before and it was because the string I was saving was too long (In addition, CFrames contain a lot of values).

Here’s an example:

1 Like