So i've been working on a test to move items where you mouse is

local player = game.Players.LocalPlayer
local character = script.Parent.Parent.Name
local mouse = player:GetMouse()
local item = 'Bed'


mouse.Button1Down:connect(function()
    game.ReplicatedStorage[item]:Clone().Parent = game.Workspace[character]
    for i,v in pairs(game.Workspace[character][item]:GetChildren()) do
                v.CFrame=CFrame.new(mouse.Target.Position.x, mouse.Target.Position.y, mouse.Target.Position.z)
        end
end)

gives error

CFrame is not a valid member of Model and its not suppost to look and move the model but instead the parts

4 comments

0

Models don't have CFrames. Parts do.

0

Also, you don't need to do [""..character], you can just do [character].

0

Oh and it looks for parts not model

0

You can make the model as a union and use it as like if it was a model. Unions have CFrames.