-- Sets the position of the falling object
-- This function checks if the object is a Part or a Model, as those are positioned differently

local function positionFallingObject(object)

    local objectCFrame = getRandomCFrameInVolume(dropZone)
    if object:IsA("BasePart") then
        object.CFrame = objectCFrame
    elseif object:IsA("Model") then
        if not object.PrimaryPart then
            object.PrimaryPart = object:FindFirstChildWhichIsA("BasePart", true)
        end		
        object.PrimaryPart.CFrame = objectCFrame
    end
    object.Parent = game.Workspace
end
