Roblox Studio Scripting Error. Please Help!

Hey, So I tried making a piggy game by following the steps given in AlvinBlox’s “How To Make A Piggy Game” Video series.

I was in the process of scripting a part where the players get teleported to the selected map, in the parts called “PlayerSpawn” but when I tried to test it, the players were not getting teleported instead they would stay in the lobby!

It was also giving me this error saying “ServerScriptService.Game Logic:34:attempt to call a nil value”

error

Here’s the Game Logic Script, as well as a module script called “RoundModule”.
Game Logic Script:

RoundModule Script:

full Round Module script 3

Please provide me a solution, or another possible syntax to teleport a player to the parts called “PlayerSpawn” (Also I changed the position of the parts and also deleted some them too, also the parts are in the folder called “PlayerSpawns”)

I’ve tried everything i can to solve this problem by re-writing the scripts and teleporting the players to different parts.

Can you just copy and paste all the code in here so we could read easily?

1 Like

Never mind, found the error.

You’re calling Round.TeleportPlayers, the module is Round.TeleportPlayer, you added an extra s.

2 Likes

Tysm, I’m so mad at myself that i didn’t notice it, I’m very very thankful of you! :rofl: :sweat_smile: