Me and a friend have been working on a new project, we had this cool idea where players spawned inside the roof of a building and fell through an arch to the ground to spawn. However, instead of spawning inside they are spawning on top despite the amount of room provided.
As you can tell in the picture above, players spawn on the roof of said building instead of inside.
Just to confirm there is enough space I have included this image showing a player inside the roof of the building.
We’ve tried different methods of resolving this including moving the parts and using meshes with offsets but players are still placed ~12 studs above the actual spawn.
What I am confused about is why players are spawning so far above the spawn instead of on the spawn, especially when we’ve provided enough room. I am assuming for this reason it’s a bug and have hence filed this as a bug report and would either like a solution (without changing the building) or to confirm this is a bug.
I created a whole new spawn system just to fix this + have the character aligned towards the spawn and not due north (although, this is the default behavior of spawns now). I can give you that custom spawn code if you’d like, but yeah – would appreciate if this was fixed. If there’s enough room for a character, they should spawn there.
ROBLOX’s spawn system doesn’t act immediately so when you move the character when they spawn to your custom spawn the ROBLOX spawn system moves them back to where it thinks they should be. You end up having to do some hacky things to get around this.
And then again, a whole custom spawn system just because ROBLOX doesn’t spawn the character where it should? This is something that belongs in bug reports.
I think it uses the axis aligned bounding box to determine if there is room. So if you have off-axis parts nearby their bounding box might overlap the spawn point even though the part itself does not.