Confusing "unable to cast value to object" error

im getting an "unable to cast value to object’, but heres the thing, the tweens ARE NOT the problem, but the end)() is the error?



i dont know how to fix this, can anyone help?

Maybe remove the () from end)()? The error means that you are trying to set a value of something instead of an object, to a value.

testing right now

char limit

i need the () for the coroutine wrap to run, thats a loop that doesnt hold the script up, it doesnt run if i dont have them there

Did you try putting end) instead of end()? That may be the problem, I have never seen an end terminated with two parentheses :thinking:

If that doesn’t fix the problem, maybe something in your code (not necessarily line 574) is wrong.

it fixes the problem, but only partially, when i put that in there, it causes everything in the coroutine wrap (a loop that doesnt hold the script up) to not run.

in my case, it was me using 2 values with the tween, i managed to fix this

1 Like

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