I have a lobby and it has one spawn there, is the script thinking its supposed to be used for that lobby. I dont want it to be used there, I want it to be used when you change maps ( 5 spawns for each map). The map name is ' MAP ' the lobby name is DemonLObby
local player = game.Players.LocalPlayer
local Character = game.Workspace:WaitForChild(player.name)
local Torso = Character:WaitForChild('Torso')
local spawns = game.Workspace.Spawns
local SpawnNumber = math.random(1,5)
local spawnplate = spawns:findFirstChild('spawn'..SpawnNumber.."")
print(spawnplate.Name)
Torso.CFrame = CFrame.new(spawnplate.Position.X, spawnplate.Position.Y + 5,spawnplate.Position.Z)
script:Destroy()

3 comments
You're probably not using a Local Script or you have the Local Script in the wrong position.
Im using a Local Script what position do I put it in?
Local Scripts don't work in workspace or ServerScriptService.