#Looking for help
1 messages · Page 1 of 1 (latest)
what steps have you already tried to fix it?
Nothing is am trying to figure out why it will spawn just not on path
did you write this code yourself?
*ai does not count, copying from a tutorial does not count unless you majorly modified it
Then nvm
** You are now Level 1! **
the point of that question is to best know what advice to give you - if you didn't write the code then giving you code advice isn't going to help.
tbh it just sounds like you haven't set the spawning position, or like the spawn position is based on a part and you haven't moved it to the right place
I have it at the right spot and I can send you the code it should be spawning correctly
can take a look
Send it 
?
position is not set on spawn ```lua
local function SpawnNPC()
local NPC = ChooseRandomNPC()
local NPCModel = NPC:Clone()
-- where is set npcmodel position?
NPCModel.Parent = workspace
local SpecificNPCFolder = NPCFolder[NPCModel.NPCName.Value]
NPCModel.Head.InfoGUI.PriceTextLabel.Text = "$"..SpecificNPCFolder.Price.Value
NPCModel.Head.InfoGUI.NameTextLabel.Text = SpecificNPCFolder.Name
NPCModel.Head.InfoGUI.RarityTextLabel.Text = SpecificNPCFolder.Rarity.Value
NPCModel.Head.InfoGUI.MoneyPerSecondTextLabel.Text = "$"..SpecificNPCFolder.MoneyPerSecond.Value.."/s"
end```
your npc pathfinding is also wrong, it immediately pathfinds to the final checkpoint. i'm not going to fix it for you, that's your job. here's how to do pathfinding properly: https://create.roblox.com/docs/characters/pathfinding
at least your weighted random is done correctly 
Well, i'm not sure how to make it that
Well, i'm not sure how to set it to swarm
Spawn
shame about no datastores on your leaderstats, again i'm not here to do it for you only offer some insight and guidance along the way, so here's how to use datastores: https://create.roblox.com/docs/cloud-services/data-stores you can probably find a tutorial online to make something with it, roblox has one too: https://create.roblox.com/docs/tutorials/use-case-tutorials/data-storage/save-player-data
probably something google/ai can help you with. be sure to ask it what it is changing and why
not often will i say ai can help you with stuff. it can help you with the position. fat chance on getting it to do pathfinding correctly 
it might be able to add datastores for your leaderstats, that combo is very common and all beginners make at least one of them, it's pretty simple to do a very basic one.
or you could try to learn and add it in yourself : https://create.roblox.com/docs/tutorials/fundamentals/coding-1/coding-fundamentals