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

I have an error I need help with?

local function createPart(location)
	local car = game.ReplicatedStorage.Assets.Car
	car:clone()
	car.Parent = game.Workspace
	car.CFrame = spawnblock.CFrame
end

When I use test this script I get "CFrame is not a valid member of Model" error.

Does anybody know how to fix this?

1 answer

This error is referring to the class, in this case "Model" which does not have the property CFame.

You will need to use the Models functions SetPrimaryPartCFrame as this will also move all of the models children using the CFrame provided.

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