What does this error mean? (string expected, got Instance)

Does anyone recognize this error? I’ve done some research on it but I still don’t understand it.

script:

here’s the client side of the system if that’s important:

Any and all help would be appreciated :sweat_smile:

Isn’t game the same as workspace? If so you are trying to read it twice.

The first arg passed to the server from a remote event is always the player. So in this case “a” is the player instance, instead of the zone.value.

When indexing the data model using [brackets] I think it is expecting a string to look for.

2 Likes

Change the parameters from RespawnerScript to “player, a”
the first parameter of OnServerEvent is always the player that called it

1 Like

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