[2ND POST] Teapots not valid member of workspace

hey, developers.

i posted this problem a few days ago, and the problem wasn’t solved, and i’m looking to see if anyone can help me with it.

the problem is with a remake of .dodge the teapots of doom’. the teapots are spawned in, and do not kill the player. it keeps giving me the error “teapots is not a valid member of workspace”.

below are the scripts inside of the game. if you can figure out why it’s broken, please leave a suggestion. also, i’m very new to scripting.

thanks.

map changer:
Uploading: mapchager.png…

remover: (where the error is happening, line 3)

map receiver:

general direction of where everything is located. (map changer is in workspace)
5cad8678b1d84c6d0ce9c0b3b16da8d4 (1)

I think it should be game.Workspace.Map1.Teapots.Spawn.CFrame

I don’t think it would always be Map1, instead, it would be Map and then the map number.

1 Like

i tried this, and it still does not work. instead, i get “Map1” is not a valid member of workspace.

Is it picking a map other than 1? If so, it wouldn’t just be Map1.

yes, there are 5 maps. they are selected randomly, and regenerated randomly.

The error is happening becuase the script expects a model called Teapots under workspace hence

game.Workspace.Teapots

Additionally within this model it is expecting a part called Spawn which is where the script will send players to spawn.

game.Workspace.Teapots.Spawn

This is probably because you are trying to rework a map system into your game without considering that this script is for a single “Teapots” model in workspace.

Since you have multiple maps it will need to be changed in order to properly locate and reference the spawn location like @Grayseon suggested. Perhaps it should be this instead with the proper naming for the spawn location as SpawnLocation instead of Spawn.

game.Workspace.Map1.Teapots.SpawnLocation.CFrame
2 Likes