Why is my script not creating any SpawnLocations?
Asked by
6 years ago Edited 6 years ago
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.
01 | spawnlocation = Instance.new( "SpawnLocation" ,workspace) |
04 | function createSpawnA 1 () |
05 | spawnlocation.Transparency = 1 |
06 | spawnlocation.CanCollide = false |
07 | spawnlocation.Position = Vector 3. new( 462 , 0.5 , 48 ) |
10 | function createSpawnA 2 () |
11 | spawnlocation.Transparency = 1 |
12 | spawnlocation.CanCollide = false |
13 | spawnlocation.Position = Vector 3. new( 462 , 0.5 , 28 ) |
16 | function createSpawnA 3 () |
17 | spawnlocation.Transparency = 1 |
18 | spawnlocation.CanCollide = false |
19 | spawnlocation.Position = Vector 3. new( 462 , 0.5 , 8 ) |
22 | function createSpawnB 1 () |
23 | spawnlocation.Transparency = 1 |
24 | spawnlocation.CanCollide = false |
25 | spawnlocation.Position = Vector 3. new(- 237 , 0.5 , 9 ) |
28 | function createSpawnB 2 () |
29 | spawnlocation.Transparency = 1 |
30 | spawnlocation.CanCollide = false |
31 | spawnlocation.Position = Vector 3. new(- 237 , 0.5 , 29 ) |
34 | function createSpawnB 3 () |
35 | spawnlocation.Transparency = 1 |
36 | spawnlocation.CanCollide = false |
37 | spawnlocation.Position = Vector 3. new(- 237 , 0.5 , 49 ) |
51 | local spawnLocation = Instance.new( "SpawnLocation" ) |
52 | spawnLocation.CanCollide = false |
53 | spawnLocation.Position = Vector 3. new(- 11 , 0.5 , - 28 ) |
54 | spawnLocation.Transparency = 1 |
55 | spawnLocation.Parent = workspace |