Attempt to index number with 'Value'

Okay, I have a script that saves the speed of the player when he left the game and not only. But for some reason, it says that you can not index Value. What’s the problem? If anything it’s a local script.
Снимок экрана 2022-12-29 в 16.06.35

Look at your speed variable. It is set to the humanoid’s walkspeed. The humanoid walkspeed doesn’t have any property named “Value”, walkspeed is an integer. That’s why it’s bringing up that error, try doing this instead:

speed = getDataRemote:InvokeServer("Speed", key)
1 Like

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