For example, I have a Part in game.ReplicatedStorage.Folder , and I have a table. I want to put the exact position the Part is in(game.ReplicatedStorage.Part) into the table. How am I able to get that exact position and how am I able to put it in the table without turning it into "Part"?
(Just one Part in Folder) Script =
local Parts = {} -- table
local APart = game.ReplicatedStorage.Anotherpart
for i,mds in pairs(game.ReplicatedStorage.Folder:GetChildren()) do
if mds then
table.insert(Parts,game.ReplicatedStorage.Folder..mds) --(Attempt) insert the location of the part
APart = Models[i] --Changes the APart value into the value in Models (just to test)
print(APart) -- while outputting "Part", I cant get the location of Part.
APart:SetPrimaryPartCFrame(CFrame.new(PosX, PosY, PosZ))
end
end

1 comment
I'm sorry but this isn't what I meant. I meant the place the object is in (game.Workspace.Folder.Part), not the xyz coordinates