#Looking for help

1 messages · Page 1 of 1 (latest)

ripe ember
#

Would anyone be able to help me on my steal a __ game the units are spawning but not on the path

languid hull
#

what steps have you already tried to fix it?

ripe ember
languid hull
#

did you write this code yourself?

#

*ai does not count, copying from a tutorial does not count unless you majorly modified it

languid berryBOT
#

studio** You are now Level 1! **studio

languid hull
# ripe ember Then nvm

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

ripe ember
languid hull
#

can take a look

stuck dust
#

Send it Takeitback

ripe ember
ripe ember
languid hull
# ripe ember

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```

#

at least your weighted random is done correctly Thumbs

ripe ember
#

Well, i'm not sure how to make it that

ripe ember
#

Spawn

languid hull
#

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

How to implement data stores to store persistent data.

Create basic data stores to save, store, and load player data.

languid hull
#

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 hehe

#

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.