I know that there are other topics like this, but I really just didn’t understand.
Code i have so far:
local randomnpcs
randomnpcs = {}
I want to put specific models inside of server storage listed on this table
I know that there are other topics like this, but I really just didn’t understand.
Code i have so far:
local randomnpcs
randomnpcs = {}
I want to put specific models inside of server storage listed on this table
Just put the instance inside the table.
Just loop through a table, and parent everything to server storage:
for_, i in randomnpcs do
i.Parent = game:GetService("ServerStorage")
end
no no you dont understand, this script is in workspace and im not parenting stuff to server storage because its already there
So you want to put models from a server storage into the table?
Then just simply do this:
local randomnpcs
randomnpcs = {}
for _, i in game.ServerStorage:GetChildren() do
table.insert(randomnpcs, i)
end
print(randomnpcs)
could i just do
local randomnpcs
local sst = game.ServerStorage
randomnpcs = {
sst.Dummy1,
sst.Dummy2
}
instead so my pea brain will understand it easier
Yes ofcourse, I thought you wanted all the childs to be in the table