Basically I want to update an old map I already remodeled most of the buildings but changing every single of them will be a bit time consuming is there an better way to replace them?
Maybe you could do new materials/colors or minor changes?
It’s an old place I made some buildings in blender and wanted to switch those from like 2014 to remaster my game
Well if you really want to do it, your going to have to do it. I don’t see anyway around it
You can use the Command Bar to write a script that will make the new model’s CFrame the old model’s CFrame. Then, you can delete the old model.
for i,v in pairs(--location of the folder:GetChildren())do
v.Material = --something
v.--etc
end
--Put everything old in that folder
So, in my case I should use for example
Local oldpos = v.Cframe
And clone the new model and replace like
Newmodel.Cframe = oldpos
?
Of course I would have to get a primary part on the models
i did that
for i,v in pairs (game.workspace.castelo:GetChildren()) do
local oldpos = v:GetPrimaryPartCFrame()
print(oldpos)
local Newmodel = game.workspace.CasteloM.Model:Clone()
Newmodel.PrimaryPart.CFrame = CFrame.new(oldpos)
Newmodel.Parent = game.CasteloN
end
but now im getting a error with the vector3 since it requires a vector3 value instead of the cframe one, is there a way to use the Cframe value?
doesnt do anything and i know it returns a cframe value
you didnt got the question
i asked if there was an way to use that Cframe Value to change the position of the PrimaryPart
Fixed by using a SetPrimaryPartCframe Value