What I want: I want to create 6 separate Spawn Locations with different positions on my Baseplate. I want them to be invisible, and I want their CanCollide to be false.
What I get: As soon as I run my game, I take a look at the workspace. What I see is one Spawn Location that disappears after about 2 seconds.
I checked my spelling, keywords, punctuation. I checked the output, has no errors. I don't know what's going on. Please help.
spawnlocation = Instance.new("SpawnLocation",workspace)
function createSpawnA1()
spawnlocation.Transparency = 1
spawnlocation.CanCollide = false
spawnlocation.Position = Vector3.new(462,0.5,48)
end
function createSpawnA2()
spawnlocation.Transparency = 1
spawnlocation.CanCollide = false
spawnlocation.Position = Vector3.new(462,0.5,28)
end
function createSpawnA3()
spawnlocation.Transparency = 1
spawnlocation.CanCollide = false
spawnlocation.Position = Vector3.new(462,0.5,8)
end
function createSpawnB1()
spawnlocation.Transparency = 1
spawnlocation.CanCollide = false
spawnlocation.Position = Vector3.new(-237,0.5,9)
end
function createSpawnB2()
spawnlocation.Transparency = 1
spawnlocation.CanCollide = false
spawnlocation.Position = Vector3.new(-237,0.5,29)
end
function createSpawnB3()
spawnlocation.Transparency = 1
spawnlocation.CanCollide = false
spawnlocation.Position = Vector3.new(-237,0.5,49)
end
createSpawnA1()
createSpawnA2()
createSpawnA3()
createSpawnB1()
createSpawnB2()
createSpawnB3()
-----------------------------------------------------------------------------
--This works
function createSpawn()
local spawnLocation = Instance.new("SpawnLocation")
spawnLocation.CanCollide = false
spawnLocation.Position = Vector3.new(-11, 0.5, -28)
spawnLocation.Transparency = 1
spawnLocation.Parent = workspace
end
createSpawn()

10 comments
It doesn't seem to work for me. I copied your code and pasted it into a new script and removed my script. No Spawn Location seems to show up
I suggest you put this script in a whole new place and check to see if it works. There's probably another script conflicting with this one in your current work environment.
The spawnlocation DID spawn. It's only transparent.
Tried the script in a fresh new place and it still doesn't show up for me anywhere. I even tried changing the transparency back to 0. I don't know what's happening.
Got it, found a solution. Check out below the code I wrote, after the line
Parent the spawn location as the LAST property if you care about performance
Got it, thanks
Hey, just a quick mention; when I parent the spawn as the last property, that seems to be the cause of the Spawn Location disappearing after about 2 seconds. I know this because when I parent the spawn as the first property, it works fine. Do you happen to know why this is?
Something is destroying it then. The parent should always be the last property to assign.
You're right, I'm doing something wrong, it's actually not what I said. I'll find out