I made this script so that when I teleport to the other game, I would spawn on a specific SpawnLocation out of the 7 there, however, I only spawn on a random one. Why is this? Is there something wrong with my script?
local TeleportService = game:GetService("TeleportService")
player = script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent
wait(1)
script.Parent.MouseButton1Up:connect(function() --When the player clicks this GUI button, the script fires.
script.Parent.Parent.Parent.Parent.Visible = false
script.Parent.Parent.Parent.Parent.Parent.Dark.Visible = false
script.Parent.Parent.Parent.Parent.Parent.NewGameSlots.Visible = false
local fade = Instance.new("Frame", script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent) --This is just a fade for dramatic effect before the player teleports; there's nothing wrong with it.
fade.Name = "Fade"
fade.Size = UDim2.new(1, 0, 1, 0)
fade.BackgroundColor3 = Color3.new(0, 0, 0)
fade.Transparency = 1
fade.ZIndex = 10
for i = 1, 10 do
wait(.1)
fade.Transparency = fade.Transparency - .1
end
TeleportService:TeleportToSpawnByName(561825470 , "Spawn1", player) --This is the line where the player is supposed to teleport specifically to Spawn1 in the PlaceId 561825470. While it DOES teleport to 561825470, the player always spawns on a random SpawnLocation.
end)

2 comments
Can you check that you have the spawn Neutral property set to true.
All of the spawns have their Neutral property set to true.