I am trying to make a tool that spawns a model but it gives me an error. How to fix?
Asked by
4 years ago Edited 4 years ago
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
01 | local item = script.Parent |
02 | local printer = game.Workspace [ "Test Printer" ] |
04 | script.Parent.Activated:Connect( function () |
05 | local newprinter = printer:Clone() |
06 | newprinter.Name = "Printer" |
07 | newprinter.Parent = game.Workspace |
08 | newprinter.CFrame = script.Parent.Handle.Position + Vector 3. new( 10 , 0 , 0 ) |
09 | newprinter.Getmony.GetCash.Disabled = false |
11 | script.Parent:Destroy() |
Edit: I fixed it by changing Cframe to SetPrimaryPartCframe