Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Script should work, it keeps saying Oreintation is not a Valid member of Model?

--@SilverBunny_Gd

local CityPath = workspace:WaitForChild("City")
local Data = CityPath:GetChildren()

local Pos = nil
local Model = "Model"

local Storage = workspace:WaitForChild("Storage")

local CityModel = Instance.new(Model,workspace)
CityModel.Name = "CityPath"

for Number,DataObject in pairs(Data) do
	if DataObject then
		DataObject:Clone().Parent = Storage
		for Number,DataObj in pairs(Storage:GetChildren()) do
			DataObj.Parent = CityModel
			for Number,DataObj in ipairs(CityModel:GetChildren()) do
				DataObj.Orientation = DataObj.Orientation + Vector3.new(100,0,0)
			end
		end
	end
end

function Organize()
	
end

2 answers

It says that because orientation is actually no valid member of model. You would have to change the orientation of every single child of the model. Feel free to accept my answer if this helped you.

5 comments

0

Yeah ^

0

Yeah ^

0

but i used getChildren

0

GetChildren()

0

You must have tried to set the orientation of a model somewhere in the script.

But i Used GetChildren() read the code pls

2 comments

0

Could be that one of the children in GetChildren() is a model. You did not use :IsA("BasePart".

0

Please do not post a new answer replying to a different answer.

This discussion is preserved as it was. New answers, comments, and votes are closed.