Making a horror game, tried making a script to make you hold items like you are holding a box in Amnesia. (Take a look)

script.Parent.MouseClick:connect(function(player)
    local Mouse = player:GetMouse()
    script.Parent.Parent.Parent = player.Character
    while true do
    wait()
        script.Parent.Parent.CFrame = CFrame.new(Mouse.Hit.X,Mouse.Hit.Y,Mouse.Hit.Z)
    end
end)

When you see it, it looks like this: http://imgur.com/S1tYHgP

When you click it, it twitches a lot and looks like this: http://imgur.com/EyLWDFV

Can anyone help me with this?

2 comments

0

I think you need to weld all the parts of the crate together so the frames of the crate move with the rest. But I'm not entirely sure.

0

It is welded