Attempt to compare userdata to number, WHAT?

The thing is, I dont even know why this is considered a userdata

image
I slapped a bunch of parts into workspace, added required variables to the script, and I’m not seeing any errors, what happens that causes this to spit out the userdata error?

You forgot to make Number a value, not a string.

Doesn’t matter, it’s a print, we’re trying to figure out what’s going on with the “compare userdata” error, which I unfortunately cannot replicate.

Ill try something, 1 second.
Seems like i might have found the solution

Sorry, I just woke up, so it took me a while to process why, lol.

I have fixed it. I have changed the HighestValue to the index of the biggest value in the table, then i just did FinalPosition = Table[HighestValue]. Thanks everybody!

Well, sorry I wasn’t of much help. Good job getting it to work!

2 Likes