I am trying to make a tool that clones a model but I get an error saying CFrame is not a valid member of Model
My code
local item = script.Parent local printer = game.Workspace["Test Printer"] script.Parent.Activated:Connect(function() local newprinter = printer:Clone() newprinter.Name = "Printer" newprinter.Parent = game.Workspace newprinter.CFrame = script.Parent.Handle.Position + Vector3.new(10, 0, 0) newprinter.Getmony.GetCash.Disabled = false script.Parent:Destroy() end)
Edit: I fixed it by changing Cframe to SetPrimaryPartCframe
newprinter:MoveTo(script.Parent.Handle.Position + Vector3.new(10, 0, 0))
That Might do it :)
I fixed it. I was using cframe instead of setprimarypartcframe
local item = script.Parent local printer = game.Workspace["Test Printer"] script.Parent.Activated:Connect(function() local newprinter = printer:Clone() newprinter.Name = "Printer" newprinter.Parent = game.Workspace newprinter:SetPrimaryPartCFrame(CFrame.new(script.Parent.Handle.Position)) newprinter.Getmony.GetCash.Disabled = false script.Parent:Destroy() end)