Spawning in the void while making a team spawn system

Im spawning in the void while being in the “Players” team which means that no spawnlocation supports the team, i did configurate how it should the spawnlocations and teams settings as you can see in the screenshots. I need your help.

image

1 Like

Hello!

There could honestly be many issues, but just make sure the Enabled property on the spawn is set to true. Make sure it’s anchored and not being destroyed. Make sure there are no scripts that would essentially overwrite this functionality as well! The screenshots don’t give full context so it’ll be up to you to figure out the problem.

Making the spawnlocations neutral allows me to spawn on them so its supposed to work.
It makes hours im trying to figure how to make it work, devforum is my last solution.

Hmm, are you spawning in the void all the time? is it sometimes? Are you making sure you’re actually teamed in on the Players team? Try making it auto-assignable and then just testing spawning normally without any influence from scripts or other third-party factors.

I spawn in the void 100% of the time and im sure its teamed, but making it auto assignable makes it strangely work. There is no differences between using my script and making it auto assignable, unless that im on the team lobby before being set to the players team and then spawning in the void.

If it works under normal conditions, it might just be a simple bug from one of your scripts.

Try making sure you’re teaming first and then spawning their character. Just follow the line of logic whenever you are teamed to Players and are supposed to be spawning to one of the locations.

(Also if your script is teaming the player to Players then of course, make sure it’s teaming them correctly)

Yes im teaming before spawning. Since you told me it might be a bug from my script i tried to fix my script nothing was weird but i figured that if i stopped deleting the lobby’s team spawnlocation my character doesnt spawns in the void anymore but in the lobby team as he’s in the Players team which is illogical. I might be glitched.

The last idea I have with all context provided is:

Are you loading the map on the client only? Spawns need to be known by the server as that whole system is done serversided. The player must be teamed by the server, the spawnlocation must be created or moved by the server, any updates to that spawnlocation must also be done by the server, etc.

So for example, if you’re changing the teamcolor of the spawn via the client, then make sure the server does that instead.

Im loading them with a server script sadly not my solution. I guess i’ll have to search into the scripts as i was trying to fix it by the proprieties, thank you for your patience.

No problem, sorry I couldn’t help. I’ve never had spawning issues but I’m certain it has something to do with the scripts. Hopefully you find the solution, post it here so I can have some peace tomorrow or whenever you find it!

(I noticed you get teamed after you press Play, like I said before make sure the server is teaming by the way!)

Haha, i’ll do it with pleasure if i dont turn crazy. Have a great day.

you could try to use Player.RespawnLocation by looping through all the spawns in the game, and check the team’s colour to check if it is equal to the player’s team colour

Okay, this might sound silly, but I had an issue long ago where invisible no collide part fell out of the world because I didn’t anchor it. Maybe you forgot to anchor your spawn locations?

If nothing helps try implementing a custom spawn system by checking off “AutoLoadCharacter” (if i remember correctly) property in Players service. Then :LoadCharacter() and :PivotTo(desired cframe) players trying to spawn.

The solution was simple, i just had to make the script that changes the player’s team to a server script.

Glad you solved it!

Not sure if you seen before, but I mentioned to make sure the server was teaming the player haha.
Hopefully it didn’t take too long to find out.

Dang i didnt notice, im marking it as the solution. thank you again!