Why are the NPCS in my map not spawning?

Ok, so I have this game with NPCs in the game and whenever I place them in a position, they either will not spawn at all or they will spawn in a random area that I did not intend for them to spawn.
Screenshot 2023-03-18 sdds
Uploading: Screenshot 2023-03-18 095552.png…

![sda|658x482](upload://4lNgrCvciFmqgACHX1veuOq0yqz.png)
![Screenshot 2023-03-18 095639|658x482](upload://x6HRgyY0dEE4GAF0u6szAOAJhi3.png)

I need an immediate response as to why this is happening. I have a major update coming today and I need it done.

1 Like

1 Like

What’s happening?
Script maybe?
Elaborate?

Ok so basically I will have a NPC that I put into the map in my game right? Positioning I checked and everything and it is how I want it to be, but when I test the game the NPC is either gone or in a random position. I have been trying to solve this for several hours and still have no clue what is happening. I will give you an example of what im saying.


(see this? That is an NPC i spawned in but when I test… this is the picture of what happens afterwards;

We can’t do much without having a script…
Could you show us?

there is a lot of scripts in this NPC but I guess I can show you all of them if you give me a sec…

I think we only need the one that places the NPC and not the rest

Here is it then:









What does each script do?
Also please post it in DevForum format or else my eyes will die, simply add ``` before and after the script and it should be like:

--Hi! I’m an example of a Lua block! To write me simply add ``` before and after the script! Cool right?

They are the same script but it is so long and takes forever to read

Okay, please please copy-pasted it in DevForum format or else it’s unreadable please

1 Like

Yeah i will later im busy right now